1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: fcp/protos/federated_api.proto
3 
4 #include "fcp/protos/federated_api.pb.h"
5 
6 #include <algorithm>
7 #include <cstdint>
8 
9 #include <google/protobuf/io/coded_stream.h>
10 #include <google/protobuf/extension_set.h>
11 #include <google/protobuf/wire_format_lite.h>
12 #include <google/protobuf/io/zero_copy_stream_impl_lite.h>
13 // @@protoc_insertion_point(includes)
14 #include <google/protobuf/port_def.inc>
15 
16 PROTOBUF_PRAGMA_INIT_SEG
17 
18 namespace _pb = ::PROTOBUF_NAMESPACE_ID;
19 namespace _pbi = _pb::internal;
20 
21 namespace google {
22 namespace internal {
23 namespace federatedml {
24 namespace v2 {
ClientStreamMessage(::_pbi::ConstantInitialized)25 PROTOBUF_CONSTEXPR ClientStreamMessage::ClientStreamMessage(
26     ::_pbi::ConstantInitialized): _impl_{
27     /*decltype(_impl_.serialized_side_channel_event_)*/{}
28   , /*decltype(_impl_.internal_client_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
29   , /*decltype(_impl_.secure_aggregation_client_message_)*/nullptr
30   , /*decltype(_impl_.kind_)*/{}
31   , /*decltype(_impl_._cached_size_)*/{}
32   , /*decltype(_impl_._oneof_case_)*/{}} {}
33 struct ClientStreamMessageDefaultTypeInternal {
ClientStreamMessageDefaultTypeInternalgoogle::internal::federatedml::v2::ClientStreamMessageDefaultTypeInternal34   PROTOBUF_CONSTEXPR ClientStreamMessageDefaultTypeInternal()
35       : _instance(::_pbi::ConstantInitialized{}) {}
~ClientStreamMessageDefaultTypeInternalgoogle::internal::federatedml::v2::ClientStreamMessageDefaultTypeInternal36   ~ClientStreamMessageDefaultTypeInternal() {}
37   union {  // NOLINT(misc-non-private-member-variables-in-classes)
38     ClientStreamMessage _instance;
39   };
40 };
41 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ClientStreamMessageDefaultTypeInternal _ClientStreamMessage_default_instance_;
ServerStreamMessage(::_pbi::ConstantInitialized)42 PROTOBUF_CONSTEXPR ServerStreamMessage::ServerStreamMessage(
43     ::_pbi::ConstantInitialized): _impl_{
44     /*decltype(_impl_.secure_aggregation_server_message_)*/nullptr
45   , /*decltype(_impl_.kind_)*/{}
46   , /*decltype(_impl_._cached_size_)*/{}
47   , /*decltype(_impl_._oneof_case_)*/{}} {}
48 struct ServerStreamMessageDefaultTypeInternal {
ServerStreamMessageDefaultTypeInternalgoogle::internal::federatedml::v2::ServerStreamMessageDefaultTypeInternal49   PROTOBUF_CONSTEXPR ServerStreamMessageDefaultTypeInternal()
50       : _instance(::_pbi::ConstantInitialized{}) {}
~ServerStreamMessageDefaultTypeInternalgoogle::internal::federatedml::v2::ServerStreamMessageDefaultTypeInternal51   ~ServerStreamMessageDefaultTypeInternal() {}
52   union {  // NOLINT(misc-non-private-member-variables-in-classes)
53     ServerStreamMessage _instance;
54   };
55 };
56 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ServerStreamMessageDefaultTypeInternal _ServerStreamMessage_default_instance_;
CheckinRequest(::_pbi::ConstantInitialized)57 PROTOBUF_CONSTEXPR CheckinRequest::CheckinRequest(
58     ::_pbi::ConstantInitialized): _impl_{
59     /*decltype(_impl_.population_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
60   , /*decltype(_impl_.retry_token_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
61   , /*decltype(_impl_.attestation_measurement_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
62   , /*decltype(_impl_.client_version_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
63   , /*decltype(_impl_.protocol_options_request_)*/nullptr
64   , /*decltype(_impl_.task_eligibility_info_)*/nullptr
65   , /*decltype(_impl_._cached_size_)*/{}} {}
66 struct CheckinRequestDefaultTypeInternal {
CheckinRequestDefaultTypeInternalgoogle::internal::federatedml::v2::CheckinRequestDefaultTypeInternal67   PROTOBUF_CONSTEXPR CheckinRequestDefaultTypeInternal()
68       : _instance(::_pbi::ConstantInitialized{}) {}
~CheckinRequestDefaultTypeInternalgoogle::internal::federatedml::v2::CheckinRequestDefaultTypeInternal69   ~CheckinRequestDefaultTypeInternal() {}
70   union {  // NOLINT(misc-non-private-member-variables-in-classes)
71     CheckinRequest _instance;
72   };
73 };
74 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CheckinRequestDefaultTypeInternal _CheckinRequest_default_instance_;
TaskEligibilityInfo(::_pbi::ConstantInitialized)75 PROTOBUF_CONSTEXPR TaskEligibilityInfo::TaskEligibilityInfo(
76     ::_pbi::ConstantInitialized): _impl_{
77     /*decltype(_impl_.task_weights_)*/{}
78   , /*decltype(_impl_.version_)*/::int64_t{0}
79   , /*decltype(_impl_._cached_size_)*/{}} {}
80 struct TaskEligibilityInfoDefaultTypeInternal {
TaskEligibilityInfoDefaultTypeInternalgoogle::internal::federatedml::v2::TaskEligibilityInfoDefaultTypeInternal81   PROTOBUF_CONSTEXPR TaskEligibilityInfoDefaultTypeInternal()
82       : _instance(::_pbi::ConstantInitialized{}) {}
~TaskEligibilityInfoDefaultTypeInternalgoogle::internal::federatedml::v2::TaskEligibilityInfoDefaultTypeInternal83   ~TaskEligibilityInfoDefaultTypeInternal() {}
84   union {  // NOLINT(misc-non-private-member-variables-in-classes)
85     TaskEligibilityInfo _instance;
86   };
87 };
88 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TaskEligibilityInfoDefaultTypeInternal _TaskEligibilityInfo_default_instance_;
TaskWeight(::_pbi::ConstantInitialized)89 PROTOBUF_CONSTEXPR TaskWeight::TaskWeight(
90     ::_pbi::ConstantInitialized): _impl_{
91     /*decltype(_impl_.task_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
92   , /*decltype(_impl_.weight_)*/0
93   , /*decltype(_impl_._cached_size_)*/{}} {}
94 struct TaskWeightDefaultTypeInternal {
TaskWeightDefaultTypeInternalgoogle::internal::federatedml::v2::TaskWeightDefaultTypeInternal95   PROTOBUF_CONSTEXPR TaskWeightDefaultTypeInternal()
96       : _instance(::_pbi::ConstantInitialized{}) {}
~TaskWeightDefaultTypeInternalgoogle::internal::federatedml::v2::TaskWeightDefaultTypeInternal97   ~TaskWeightDefaultTypeInternal() {}
98   union {  // NOLINT(misc-non-private-member-variables-in-classes)
99     TaskWeight _instance;
100   };
101 };
102 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TaskWeightDefaultTypeInternal _TaskWeight_default_instance_;
CheckinResponse(::_pbi::ConstantInitialized)103 PROTOBUF_CONSTEXPR CheckinResponse::CheckinResponse(
104     ::_pbi::ConstantInitialized): _impl_{
105     /*decltype(_impl_.protocol_options_response_)*/nullptr
106   , /*decltype(_impl_.checkin_result_)*/{}
107   , /*decltype(_impl_._cached_size_)*/{}
108   , /*decltype(_impl_._oneof_case_)*/{}} {}
109 struct CheckinResponseDefaultTypeInternal {
CheckinResponseDefaultTypeInternalgoogle::internal::federatedml::v2::CheckinResponseDefaultTypeInternal110   PROTOBUF_CONSTEXPR CheckinResponseDefaultTypeInternal()
111       : _instance(::_pbi::ConstantInitialized{}) {}
~CheckinResponseDefaultTypeInternalgoogle::internal::federatedml::v2::CheckinResponseDefaultTypeInternal112   ~CheckinResponseDefaultTypeInternal() {}
113   union {  // NOLINT(misc-non-private-member-variables-in-classes)
114     CheckinResponse _instance;
115   };
116 };
117 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CheckinResponseDefaultTypeInternal _CheckinResponse_default_instance_;
CheckinRequestAck(::_pbi::ConstantInitialized)118 PROTOBUF_CONSTEXPR CheckinRequestAck::CheckinRequestAck(
119     ::_pbi::ConstantInitialized): _impl_{
120     /*decltype(_impl_.retry_window_if_accepted_)*/nullptr
121   , /*decltype(_impl_.retry_window_if_rejected_)*/nullptr
122   , /*decltype(_impl_._cached_size_)*/{}} {}
123 struct CheckinRequestAckDefaultTypeInternal {
CheckinRequestAckDefaultTypeInternalgoogle::internal::federatedml::v2::CheckinRequestAckDefaultTypeInternal124   PROTOBUF_CONSTEXPR CheckinRequestAckDefaultTypeInternal()
125       : _instance(::_pbi::ConstantInitialized{}) {}
~CheckinRequestAckDefaultTypeInternalgoogle::internal::federatedml::v2::CheckinRequestAckDefaultTypeInternal126   ~CheckinRequestAckDefaultTypeInternal() {}
127   union {  // NOLINT(misc-non-private-member-variables-in-classes)
128     CheckinRequestAck _instance;
129   };
130 };
131 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CheckinRequestAckDefaultTypeInternal _CheckinRequestAck_default_instance_;
EligibilityEvalCheckinRequest(::_pbi::ConstantInitialized)132 PROTOBUF_CONSTEXPR EligibilityEvalCheckinRequest::EligibilityEvalCheckinRequest(
133     ::_pbi::ConstantInitialized): _impl_{
134     /*decltype(_impl_.population_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
135   , /*decltype(_impl_.retry_token_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
136   , /*decltype(_impl_.attestation_measurement_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
137   , /*decltype(_impl_.client_version_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
138   , /*decltype(_impl_.protocol_options_request_)*/nullptr
139   , /*decltype(_impl_.eligibility_eval_task_capabilities_)*/nullptr
140   , /*decltype(_impl_._cached_size_)*/{}} {}
141 struct EligibilityEvalCheckinRequestDefaultTypeInternal {
EligibilityEvalCheckinRequestDefaultTypeInternalgoogle::internal::federatedml::v2::EligibilityEvalCheckinRequestDefaultTypeInternal142   PROTOBUF_CONSTEXPR EligibilityEvalCheckinRequestDefaultTypeInternal()
143       : _instance(::_pbi::ConstantInitialized{}) {}
~EligibilityEvalCheckinRequestDefaultTypeInternalgoogle::internal::federatedml::v2::EligibilityEvalCheckinRequestDefaultTypeInternal144   ~EligibilityEvalCheckinRequestDefaultTypeInternal() {}
145   union {  // NOLINT(misc-non-private-member-variables-in-classes)
146     EligibilityEvalCheckinRequest _instance;
147   };
148 };
149 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EligibilityEvalCheckinRequestDefaultTypeInternal _EligibilityEvalCheckinRequest_default_instance_;
EligibilityEvalTaskCapabilities(::_pbi::ConstantInitialized)150 PROTOBUF_CONSTEXPR EligibilityEvalTaskCapabilities::EligibilityEvalTaskCapabilities(
151     ::_pbi::ConstantInitialized): _impl_{
152     /*decltype(_impl_.supports_multiple_task_assignment_)*/false
153   , /*decltype(_impl_._cached_size_)*/{}} {}
154 struct EligibilityEvalTaskCapabilitiesDefaultTypeInternal {
EligibilityEvalTaskCapabilitiesDefaultTypeInternalgoogle::internal::federatedml::v2::EligibilityEvalTaskCapabilitiesDefaultTypeInternal155   PROTOBUF_CONSTEXPR EligibilityEvalTaskCapabilitiesDefaultTypeInternal()
156       : _instance(::_pbi::ConstantInitialized{}) {}
~EligibilityEvalTaskCapabilitiesDefaultTypeInternalgoogle::internal::federatedml::v2::EligibilityEvalTaskCapabilitiesDefaultTypeInternal157   ~EligibilityEvalTaskCapabilitiesDefaultTypeInternal() {}
158   union {  // NOLINT(misc-non-private-member-variables-in-classes)
159     EligibilityEvalTaskCapabilities _instance;
160   };
161 };
162 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EligibilityEvalTaskCapabilitiesDefaultTypeInternal _EligibilityEvalTaskCapabilities_default_instance_;
EligibilityEvalCheckinResponse(::_pbi::ConstantInitialized)163 PROTOBUF_CONSTEXPR EligibilityEvalCheckinResponse::EligibilityEvalCheckinResponse(
164     ::_pbi::ConstantInitialized): _impl_{
165     /*decltype(_impl_.protocol_options_response_)*/nullptr
166   , /*decltype(_impl_.checkin_result_)*/{}
167   , /*decltype(_impl_._cached_size_)*/{}
168   , /*decltype(_impl_._oneof_case_)*/{}} {}
169 struct EligibilityEvalCheckinResponseDefaultTypeInternal {
EligibilityEvalCheckinResponseDefaultTypeInternalgoogle::internal::federatedml::v2::EligibilityEvalCheckinResponseDefaultTypeInternal170   PROTOBUF_CONSTEXPR EligibilityEvalCheckinResponseDefaultTypeInternal()
171       : _instance(::_pbi::ConstantInitialized{}) {}
~EligibilityEvalCheckinResponseDefaultTypeInternalgoogle::internal::federatedml::v2::EligibilityEvalCheckinResponseDefaultTypeInternal172   ~EligibilityEvalCheckinResponseDefaultTypeInternal() {}
173   union {  // NOLINT(misc-non-private-member-variables-in-classes)
174     EligibilityEvalCheckinResponse _instance;
175   };
176 };
177 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EligibilityEvalCheckinResponseDefaultTypeInternal _EligibilityEvalCheckinResponse_default_instance_;
EligibilityEvalPayload(::_pbi::ConstantInitialized)178 PROTOBUF_CONSTEXPR EligibilityEvalPayload::EligibilityEvalPayload(
179     ::_pbi::ConstantInitialized): _impl_{
180     /*decltype(_impl_.execution_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
181   , /*decltype(_impl_.init_checkpoint_type_)*/{}
182   , /*decltype(_impl_.plan_type_)*/{}
183   , /*decltype(_impl_.population_eligibility_spec_type_)*/{}
184   , /*decltype(_impl_._cached_size_)*/{}
185   , /*decltype(_impl_._oneof_case_)*/{}} {}
186 struct EligibilityEvalPayloadDefaultTypeInternal {
EligibilityEvalPayloadDefaultTypeInternalgoogle::internal::federatedml::v2::EligibilityEvalPayloadDefaultTypeInternal187   PROTOBUF_CONSTEXPR EligibilityEvalPayloadDefaultTypeInternal()
188       : _instance(::_pbi::ConstantInitialized{}) {}
~EligibilityEvalPayloadDefaultTypeInternalgoogle::internal::federatedml::v2::EligibilityEvalPayloadDefaultTypeInternal189   ~EligibilityEvalPayloadDefaultTypeInternal() {}
190   union {  // NOLINT(misc-non-private-member-variables-in-classes)
191     EligibilityEvalPayload _instance;
192   };
193 };
194 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EligibilityEvalPayloadDefaultTypeInternal _EligibilityEvalPayload_default_instance_;
NoEligibilityEvalConfigured(::_pbi::ConstantInitialized)195 PROTOBUF_CONSTEXPR NoEligibilityEvalConfigured::NoEligibilityEvalConfigured(
196     ::_pbi::ConstantInitialized): _impl_{
197     /*decltype(_impl_._cached_size_)*/{}} {}
198 struct NoEligibilityEvalConfiguredDefaultTypeInternal {
NoEligibilityEvalConfiguredDefaultTypeInternalgoogle::internal::federatedml::v2::NoEligibilityEvalConfiguredDefaultTypeInternal199   PROTOBUF_CONSTEXPR NoEligibilityEvalConfiguredDefaultTypeInternal()
200       : _instance(::_pbi::ConstantInitialized{}) {}
~NoEligibilityEvalConfiguredDefaultTypeInternalgoogle::internal::federatedml::v2::NoEligibilityEvalConfiguredDefaultTypeInternal201   ~NoEligibilityEvalConfiguredDefaultTypeInternal() {}
202   union {  // NOLINT(misc-non-private-member-variables-in-classes)
203     NoEligibilityEvalConfigured _instance;
204   };
205 };
206 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NoEligibilityEvalConfiguredDefaultTypeInternal _NoEligibilityEvalConfigured_default_instance_;
SideChannelExecutionInfo_SecureAggregandExecutionInfo(::_pbi::ConstantInitialized)207 PROTOBUF_CONSTEXPR SideChannelExecutionInfo_SecureAggregandExecutionInfo::SideChannelExecutionInfo_SecureAggregandExecutionInfo(
208     ::_pbi::ConstantInitialized): _impl_{
209     /*decltype(_impl_.modulus_)*/::uint64_t{0u}
210   , /*decltype(_impl_.output_bitwidth_)*/0
211   , /*decltype(_impl_._cached_size_)*/{}} {}
212 struct SideChannelExecutionInfo_SecureAggregandExecutionInfoDefaultTypeInternal {
SideChannelExecutionInfo_SecureAggregandExecutionInfoDefaultTypeInternalgoogle::internal::federatedml::v2::SideChannelExecutionInfo_SecureAggregandExecutionInfoDefaultTypeInternal213   PROTOBUF_CONSTEXPR SideChannelExecutionInfo_SecureAggregandExecutionInfoDefaultTypeInternal()
214       : _instance(::_pbi::ConstantInitialized{}) {}
~SideChannelExecutionInfo_SecureAggregandExecutionInfoDefaultTypeInternalgoogle::internal::federatedml::v2::SideChannelExecutionInfo_SecureAggregandExecutionInfoDefaultTypeInternal215   ~SideChannelExecutionInfo_SecureAggregandExecutionInfoDefaultTypeInternal() {}
216   union {  // NOLINT(misc-non-private-member-variables-in-classes)
217     SideChannelExecutionInfo_SecureAggregandExecutionInfo _instance;
218   };
219 };
220 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SideChannelExecutionInfo_SecureAggregandExecutionInfoDefaultTypeInternal _SideChannelExecutionInfo_SecureAggregandExecutionInfo_default_instance_;
SideChannelExecutionInfo(::_pbi::ConstantInitialized)221 PROTOBUF_CONSTEXPR SideChannelExecutionInfo::SideChannelExecutionInfo(
222     ::_pbi::ConstantInitialized): _impl_{
223     /*decltype(_impl_.type_)*/{}
224   , /*decltype(_impl_._cached_size_)*/{}
225   , /*decltype(_impl_._oneof_case_)*/{}} {}
226 struct SideChannelExecutionInfoDefaultTypeInternal {
SideChannelExecutionInfoDefaultTypeInternalgoogle::internal::federatedml::v2::SideChannelExecutionInfoDefaultTypeInternal227   PROTOBUF_CONSTEXPR SideChannelExecutionInfoDefaultTypeInternal()
228       : _instance(::_pbi::ConstantInitialized{}) {}
~SideChannelExecutionInfoDefaultTypeInternalgoogle::internal::federatedml::v2::SideChannelExecutionInfoDefaultTypeInternal229   ~SideChannelExecutionInfoDefaultTypeInternal() {}
230   union {  // NOLINT(misc-non-private-member-variables-in-classes)
231     SideChannelExecutionInfo _instance;
232   };
233 };
234 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SideChannelExecutionInfoDefaultTypeInternal _SideChannelExecutionInfo_default_instance_;
SideChannelProtocolOptionsRequest_SecureAggregation(::_pbi::ConstantInitialized)235 PROTOBUF_CONSTEXPR SideChannelProtocolOptionsRequest_SecureAggregation::SideChannelProtocolOptionsRequest_SecureAggregation(
236     ::_pbi::ConstantInitialized): _impl_{
237     /*decltype(_impl_.client_variant_)*/{}
238   , /*decltype(_impl_._client_variant_cached_byte_size_)*/{0}
239   , /*decltype(_impl_._cached_size_)*/{}} {}
240 struct SideChannelProtocolOptionsRequest_SecureAggregationDefaultTypeInternal {
SideChannelProtocolOptionsRequest_SecureAggregationDefaultTypeInternalgoogle::internal::federatedml::v2::SideChannelProtocolOptionsRequest_SecureAggregationDefaultTypeInternal241   PROTOBUF_CONSTEXPR SideChannelProtocolOptionsRequest_SecureAggregationDefaultTypeInternal()
242       : _instance(::_pbi::ConstantInitialized{}) {}
~SideChannelProtocolOptionsRequest_SecureAggregationDefaultTypeInternalgoogle::internal::federatedml::v2::SideChannelProtocolOptionsRequest_SecureAggregationDefaultTypeInternal243   ~SideChannelProtocolOptionsRequest_SecureAggregationDefaultTypeInternal() {}
244   union {  // NOLINT(misc-non-private-member-variables-in-classes)
245     SideChannelProtocolOptionsRequest_SecureAggregation _instance;
246   };
247 };
248 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SideChannelProtocolOptionsRequest_SecureAggregationDefaultTypeInternal _SideChannelProtocolOptionsRequest_SecureAggregation_default_instance_;
SideChannelProtocolOptionsRequest(::_pbi::ConstantInitialized)249 PROTOBUF_CONSTEXPR SideChannelProtocolOptionsRequest::SideChannelProtocolOptionsRequest(
250     ::_pbi::ConstantInitialized): _impl_{
251     /*decltype(_impl_.secure_aggregation_)*/nullptr
252   , /*decltype(_impl_._cached_size_)*/{}} {}
253 struct SideChannelProtocolOptionsRequestDefaultTypeInternal {
SideChannelProtocolOptionsRequestDefaultTypeInternalgoogle::internal::federatedml::v2::SideChannelProtocolOptionsRequestDefaultTypeInternal254   PROTOBUF_CONSTEXPR SideChannelProtocolOptionsRequestDefaultTypeInternal()
255       : _instance(::_pbi::ConstantInitialized{}) {}
~SideChannelProtocolOptionsRequestDefaultTypeInternalgoogle::internal::federatedml::v2::SideChannelProtocolOptionsRequestDefaultTypeInternal256   ~SideChannelProtocolOptionsRequestDefaultTypeInternal() {}
257   union {  // NOLINT(misc-non-private-member-variables-in-classes)
258     SideChannelProtocolOptionsRequest _instance;
259   };
260 };
261 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SideChannelProtocolOptionsRequestDefaultTypeInternal _SideChannelProtocolOptionsRequest_default_instance_;
SideChannelProtocolOptionsResponse_SecureAggregation(::_pbi::ConstantInitialized)262 PROTOBUF_CONSTEXPR SideChannelProtocolOptionsResponse_SecureAggregation::SideChannelProtocolOptionsResponse_SecureAggregation(
263     ::_pbi::ConstantInitialized): _impl_{
264     /*decltype(_impl_.client_variant_)*/0
265   , /*decltype(_impl_._cached_size_)*/{}} {}
266 struct SideChannelProtocolOptionsResponse_SecureAggregationDefaultTypeInternal {
SideChannelProtocolOptionsResponse_SecureAggregationDefaultTypeInternalgoogle::internal::federatedml::v2::SideChannelProtocolOptionsResponse_SecureAggregationDefaultTypeInternal267   PROTOBUF_CONSTEXPR SideChannelProtocolOptionsResponse_SecureAggregationDefaultTypeInternal()
268       : _instance(::_pbi::ConstantInitialized{}) {}
~SideChannelProtocolOptionsResponse_SecureAggregationDefaultTypeInternalgoogle::internal::federatedml::v2::SideChannelProtocolOptionsResponse_SecureAggregationDefaultTypeInternal269   ~SideChannelProtocolOptionsResponse_SecureAggregationDefaultTypeInternal() {}
270   union {  // NOLINT(misc-non-private-member-variables-in-classes)
271     SideChannelProtocolOptionsResponse_SecureAggregation _instance;
272   };
273 };
274 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SideChannelProtocolOptionsResponse_SecureAggregationDefaultTypeInternal _SideChannelProtocolOptionsResponse_SecureAggregation_default_instance_;
SideChannelProtocolOptionsResponse(::_pbi::ConstantInitialized)275 PROTOBUF_CONSTEXPR SideChannelProtocolOptionsResponse::SideChannelProtocolOptionsResponse(
276     ::_pbi::ConstantInitialized): _impl_{
277     /*decltype(_impl_.secure_aggregation_)*/nullptr
278   , /*decltype(_impl_._cached_size_)*/{}} {}
279 struct SideChannelProtocolOptionsResponseDefaultTypeInternal {
SideChannelProtocolOptionsResponseDefaultTypeInternalgoogle::internal::federatedml::v2::SideChannelProtocolOptionsResponseDefaultTypeInternal280   PROTOBUF_CONSTEXPR SideChannelProtocolOptionsResponseDefaultTypeInternal()
281       : _instance(::_pbi::ConstantInitialized{}) {}
~SideChannelProtocolOptionsResponseDefaultTypeInternalgoogle::internal::federatedml::v2::SideChannelProtocolOptionsResponseDefaultTypeInternal282   ~SideChannelProtocolOptionsResponseDefaultTypeInternal() {}
283   union {  // NOLINT(misc-non-private-member-variables-in-classes)
284     SideChannelProtocolOptionsResponse _instance;
285   };
286 };
287 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SideChannelProtocolOptionsResponseDefaultTypeInternal _SideChannelProtocolOptionsResponse_default_instance_;
SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo(::_pbi::ConstantInitialized)288 PROTOBUF_CONSTEXPR SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo::SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo(
289     ::_pbi::ConstantInitialized): _impl_{
290     /*decltype(_impl_.expected_number_of_clients_)*/0
291   , /*decltype(_impl_.minimum_surviving_clients_for_reconstruction_)*/0
292   , /*decltype(_impl_.minimum_clients_in_server_visible_aggregate_)*/0
293   , /*decltype(_impl_._cached_size_)*/{}} {}
294 struct SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfoDefaultTypeInternal {
SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfoDefaultTypeInternalgoogle::internal::federatedml::v2::SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfoDefaultTypeInternal295   PROTOBUF_CONSTEXPR SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfoDefaultTypeInternal()
296       : _instance(::_pbi::ConstantInitialized{}) {}
~SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfoDefaultTypeInternalgoogle::internal::federatedml::v2::SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfoDefaultTypeInternal297   ~SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfoDefaultTypeInternal() {}
298   union {  // NOLINT(misc-non-private-member-variables-in-classes)
299     SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo _instance;
300   };
301 };
302 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfoDefaultTypeInternal _SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo_default_instance_;
SideChannelProtocolExecutionInfo(::_pbi::ConstantInitialized)303 PROTOBUF_CONSTEXPR SideChannelProtocolExecutionInfo::SideChannelProtocolExecutionInfo(
304     ::_pbi::ConstantInitialized): _impl_{
305     /*decltype(_impl_.secure_aggregation_)*/nullptr
306   , /*decltype(_impl_._cached_size_)*/{}} {}
307 struct SideChannelProtocolExecutionInfoDefaultTypeInternal {
SideChannelProtocolExecutionInfoDefaultTypeInternalgoogle::internal::federatedml::v2::SideChannelProtocolExecutionInfoDefaultTypeInternal308   PROTOBUF_CONSTEXPR SideChannelProtocolExecutionInfoDefaultTypeInternal()
309       : _instance(::_pbi::ConstantInitialized{}) {}
~SideChannelProtocolExecutionInfoDefaultTypeInternalgoogle::internal::federatedml::v2::SideChannelProtocolExecutionInfoDefaultTypeInternal310   ~SideChannelProtocolExecutionInfoDefaultTypeInternal() {}
311   union {  // NOLINT(misc-non-private-member-variables-in-classes)
312     SideChannelProtocolExecutionInfo _instance;
313   };
314 };
315 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SideChannelProtocolExecutionInfoDefaultTypeInternal _SideChannelProtocolExecutionInfo_default_instance_;
UriResource(::_pbi::ConstantInitialized)316 PROTOBUF_CONSTEXPR UriResource::UriResource(
317     ::_pbi::ConstantInitialized): _impl_{
318     /*decltype(_impl_.uri_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
319   , /*decltype(_impl_.client_cache_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
320   , /*decltype(_impl_.max_age_)*/nullptr
321   , /*decltype(_impl_._cached_size_)*/{}} {}
322 struct UriResourceDefaultTypeInternal {
UriResourceDefaultTypeInternalgoogle::internal::federatedml::v2::UriResourceDefaultTypeInternal323   PROTOBUF_CONSTEXPR UriResourceDefaultTypeInternal()
324       : _instance(::_pbi::ConstantInitialized{}) {}
~UriResourceDefaultTypeInternalgoogle::internal::federatedml::v2::UriResourceDefaultTypeInternal325   ~UriResourceDefaultTypeInternal() {}
326   union {  // NOLINT(misc-non-private-member-variables-in-classes)
327     UriResource _instance;
328   };
329 };
330 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UriResourceDefaultTypeInternal _UriResource_default_instance_;
AcceptanceInfo_SideChannelsEntry_DoNotUse(::_pbi::ConstantInitialized)331 PROTOBUF_CONSTEXPR AcceptanceInfo_SideChannelsEntry_DoNotUse::AcceptanceInfo_SideChannelsEntry_DoNotUse(
332     ::_pbi::ConstantInitialized) {}
333 struct AcceptanceInfo_SideChannelsEntry_DoNotUseDefaultTypeInternal {
AcceptanceInfo_SideChannelsEntry_DoNotUseDefaultTypeInternalgoogle::internal::federatedml::v2::AcceptanceInfo_SideChannelsEntry_DoNotUseDefaultTypeInternal334   PROTOBUF_CONSTEXPR AcceptanceInfo_SideChannelsEntry_DoNotUseDefaultTypeInternal()
335       : _instance(::_pbi::ConstantInitialized{}) {}
~AcceptanceInfo_SideChannelsEntry_DoNotUseDefaultTypeInternalgoogle::internal::federatedml::v2::AcceptanceInfo_SideChannelsEntry_DoNotUseDefaultTypeInternal336   ~AcceptanceInfo_SideChannelsEntry_DoNotUseDefaultTypeInternal() {}
337   union {  // NOLINT(misc-non-private-member-variables-in-classes)
338     AcceptanceInfo_SideChannelsEntry_DoNotUse _instance;
339   };
340 };
341 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AcceptanceInfo_SideChannelsEntry_DoNotUseDefaultTypeInternal _AcceptanceInfo_SideChannelsEntry_DoNotUse_default_instance_;
AcceptanceInfo(::_pbi::ConstantInitialized)342 PROTOBUF_CONSTEXPR AcceptanceInfo::AcceptanceInfo(
343     ::_pbi::ConstantInitialized): _impl_{
344     /*decltype(_impl_.side_channels_)*/{}
345   , /*decltype(_impl_.execution_phase_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
346   , /*decltype(_impl_.task_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
347   , /*decltype(_impl_.side_channel_protocol_execution_info_)*/nullptr
348   , /*decltype(_impl_.federated_select_uri_info_)*/nullptr
349   , /*decltype(_impl_.init_checkpoint_type_)*/{}
350   , /*decltype(_impl_.plan_type_)*/{}
351   , /*decltype(_impl_._cached_size_)*/{}
352   , /*decltype(_impl_._oneof_case_)*/{}} {}
353 struct AcceptanceInfoDefaultTypeInternal {
AcceptanceInfoDefaultTypeInternalgoogle::internal::federatedml::v2::AcceptanceInfoDefaultTypeInternal354   PROTOBUF_CONSTEXPR AcceptanceInfoDefaultTypeInternal()
355       : _instance(::_pbi::ConstantInitialized{}) {}
~AcceptanceInfoDefaultTypeInternalgoogle::internal::federatedml::v2::AcceptanceInfoDefaultTypeInternal356   ~AcceptanceInfoDefaultTypeInternal() {}
357   union {  // NOLINT(misc-non-private-member-variables-in-classes)
358     AcceptanceInfo _instance;
359   };
360 };
361 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AcceptanceInfoDefaultTypeInternal _AcceptanceInfo_default_instance_;
FederatedSelectUriInfo(::_pbi::ConstantInitialized)362 PROTOBUF_CONSTEXPR FederatedSelectUriInfo::FederatedSelectUriInfo(
363     ::_pbi::ConstantInitialized): _impl_{
364     /*decltype(_impl_.uri_template_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
365   , /*decltype(_impl_._cached_size_)*/{}} {}
366 struct FederatedSelectUriInfoDefaultTypeInternal {
FederatedSelectUriInfoDefaultTypeInternalgoogle::internal::federatedml::v2::FederatedSelectUriInfoDefaultTypeInternal367   PROTOBUF_CONSTEXPR FederatedSelectUriInfoDefaultTypeInternal()
368       : _instance(::_pbi::ConstantInitialized{}) {}
~FederatedSelectUriInfoDefaultTypeInternalgoogle::internal::federatedml::v2::FederatedSelectUriInfoDefaultTypeInternal369   ~FederatedSelectUriInfoDefaultTypeInternal() {}
370   union {  // NOLINT(misc-non-private-member-variables-in-classes)
371     FederatedSelectUriInfo _instance;
372   };
373 };
374 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FederatedSelectUriInfoDefaultTypeInternal _FederatedSelectUriInfo_default_instance_;
RejectionInfo(::_pbi::ConstantInitialized)375 PROTOBUF_CONSTEXPR RejectionInfo::RejectionInfo(
376     ::_pbi::ConstantInitialized): _impl_{
377     /*decltype(_impl_.retry_window_)*/nullptr
378   , /*decltype(_impl_._cached_size_)*/{}} {}
379 struct RejectionInfoDefaultTypeInternal {
RejectionInfoDefaultTypeInternalgoogle::internal::federatedml::v2::RejectionInfoDefaultTypeInternal380   PROTOBUF_CONSTEXPR RejectionInfoDefaultTypeInternal()
381       : _instance(::_pbi::ConstantInitialized{}) {}
~RejectionInfoDefaultTypeInternalgoogle::internal::federatedml::v2::RejectionInfoDefaultTypeInternal382   ~RejectionInfoDefaultTypeInternal() {}
383   union {  // NOLINT(misc-non-private-member-variables-in-classes)
384     RejectionInfo _instance;
385   };
386 };
387 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RejectionInfoDefaultTypeInternal _RejectionInfo_default_instance_;
ReportRequest(::_pbi::ConstantInitialized)388 PROTOBUF_CONSTEXPR ReportRequest::ReportRequest(
389     ::_pbi::ConstantInitialized): _impl_{
390     /*decltype(_impl_.population_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
391   , /*decltype(_impl_.execution_phase_id_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
392   , /*decltype(_impl_.report_)*/nullptr
393   , /*decltype(_impl_._cached_size_)*/{}} {}
394 struct ReportRequestDefaultTypeInternal {
ReportRequestDefaultTypeInternalgoogle::internal::federatedml::v2::ReportRequestDefaultTypeInternal395   PROTOBUF_CONSTEXPR ReportRequestDefaultTypeInternal()
396       : _instance(::_pbi::ConstantInitialized{}) {}
~ReportRequestDefaultTypeInternalgoogle::internal::federatedml::v2::ReportRequestDefaultTypeInternal397   ~ReportRequestDefaultTypeInternal() {}
398   union {  // NOLINT(misc-non-private-member-variables-in-classes)
399     ReportRequest _instance;
400   };
401 };
402 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReportRequestDefaultTypeInternal _ReportRequest_default_instance_;
ReportResponse(::_pbi::ConstantInitialized)403 PROTOBUF_CONSTEXPR ReportResponse::ReportResponse(
404     ::_pbi::ConstantInitialized): _impl_{
405     /*decltype(_impl_.retry_window_)*/nullptr
406   , /*decltype(_impl_._cached_size_)*/{}} {}
407 struct ReportResponseDefaultTypeInternal {
ReportResponseDefaultTypeInternalgoogle::internal::federatedml::v2::ReportResponseDefaultTypeInternal408   PROTOBUF_CONSTEXPR ReportResponseDefaultTypeInternal()
409       : _instance(::_pbi::ConstantInitialized{}) {}
~ReportResponseDefaultTypeInternalgoogle::internal::federatedml::v2::ReportResponseDefaultTypeInternal410   ~ReportResponseDefaultTypeInternal() {}
411   union {  // NOLINT(misc-non-private-member-variables-in-classes)
412     ReportResponse _instance;
413   };
414 };
415 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReportResponseDefaultTypeInternal _ReportResponse_default_instance_;
Report(::_pbi::ConstantInitialized)416 PROTOBUF_CONSTEXPR Report::Report(
417     ::_pbi::ConstantInitialized): _impl_{
418     /*decltype(_impl_.serialized_train_event_)*/{}
419   , /*decltype(_impl_.update_checkpoint_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
420   , /*decltype(_impl_.status_code_)*/0
421   , /*decltype(_impl_._cached_size_)*/{}} {}
422 struct ReportDefaultTypeInternal {
ReportDefaultTypeInternalgoogle::internal::federatedml::v2::ReportDefaultTypeInternal423   PROTOBUF_CONSTEXPR ReportDefaultTypeInternal()
424       : _instance(::_pbi::ConstantInitialized{}) {}
~ReportDefaultTypeInternalgoogle::internal::federatedml::v2::ReportDefaultTypeInternal425   ~ReportDefaultTypeInternal() {}
426   union {  // NOLINT(misc-non-private-member-variables-in-classes)
427     Report _instance;
428   };
429 };
430 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReportDefaultTypeInternal _Report_default_instance_;
ClientExecutionStats(::_pbi::ConstantInitialized)431 PROTOBUF_CONSTEXPR ClientExecutionStats::ClientExecutionStats(
432     ::_pbi::ConstantInitialized): _impl_{
433     /*decltype(_impl_.duration_)*/nullptr
434   , /*decltype(_impl_._cached_size_)*/{}} {}
435 struct ClientExecutionStatsDefaultTypeInternal {
ClientExecutionStatsDefaultTypeInternalgoogle::internal::federatedml::v2::ClientExecutionStatsDefaultTypeInternal436   PROTOBUF_CONSTEXPR ClientExecutionStatsDefaultTypeInternal()
437       : _instance(::_pbi::ConstantInitialized{}) {}
~ClientExecutionStatsDefaultTypeInternalgoogle::internal::federatedml::v2::ClientExecutionStatsDefaultTypeInternal438   ~ClientExecutionStatsDefaultTypeInternal() {}
439   union {  // NOLINT(misc-non-private-member-variables-in-classes)
440     ClientExecutionStats _instance;
441   };
442 };
443 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ClientExecutionStatsDefaultTypeInternal _ClientExecutionStats_default_instance_;
RetryWindow(::_pbi::ConstantInitialized)444 PROTOBUF_CONSTEXPR RetryWindow::RetryWindow(
445     ::_pbi::ConstantInitialized): _impl_{
446     /*decltype(_impl_.retry_token_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
447   , /*decltype(_impl_.delay_min_)*/nullptr
448   , /*decltype(_impl_.delay_max_)*/nullptr
449   , /*decltype(_impl_._cached_size_)*/{}} {}
450 struct RetryWindowDefaultTypeInternal {
RetryWindowDefaultTypeInternalgoogle::internal::federatedml::v2::RetryWindowDefaultTypeInternal451   PROTOBUF_CONSTEXPR RetryWindowDefaultTypeInternal()
452       : _instance(::_pbi::ConstantInitialized{}) {}
~RetryWindowDefaultTypeInternalgoogle::internal::federatedml::v2::RetryWindowDefaultTypeInternal453   ~RetryWindowDefaultTypeInternal() {}
454   union {  // NOLINT(misc-non-private-member-variables-in-classes)
455     RetryWindow _instance;
456   };
457 };
458 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RetryWindowDefaultTypeInternal _RetryWindow_default_instance_;
Checkpoint_Aggregand(::_pbi::ConstantInitialized)459 PROTOBUF_CONSTEXPR Checkpoint_Aggregand::Checkpoint_Aggregand(
460     ::_pbi::ConstantInitialized): _impl_{
461     /*decltype(_impl_.values_)*/{}
462   , /*decltype(_impl_._values_cached_byte_size_)*/{0}
463   , /*decltype(_impl_.bitwidth_)*/0
464   , /*decltype(_impl_._cached_size_)*/{}} {}
465 struct Checkpoint_AggregandDefaultTypeInternal {
Checkpoint_AggregandDefaultTypeInternalgoogle::internal::federatedml::v2::Checkpoint_AggregandDefaultTypeInternal466   PROTOBUF_CONSTEXPR Checkpoint_AggregandDefaultTypeInternal()
467       : _instance(::_pbi::ConstantInitialized{}) {}
~Checkpoint_AggregandDefaultTypeInternalgoogle::internal::federatedml::v2::Checkpoint_AggregandDefaultTypeInternal468   ~Checkpoint_AggregandDefaultTypeInternal() {}
469   union {  // NOLINT(misc-non-private-member-variables-in-classes)
470     Checkpoint_Aggregand _instance;
471   };
472 };
473 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Checkpoint_AggregandDefaultTypeInternal _Checkpoint_Aggregand_default_instance_;
Checkpoint_AggregandsEntry_DoNotUse(::_pbi::ConstantInitialized)474 PROTOBUF_CONSTEXPR Checkpoint_AggregandsEntry_DoNotUse::Checkpoint_AggregandsEntry_DoNotUse(
475     ::_pbi::ConstantInitialized) {}
476 struct Checkpoint_AggregandsEntry_DoNotUseDefaultTypeInternal {
Checkpoint_AggregandsEntry_DoNotUseDefaultTypeInternalgoogle::internal::federatedml::v2::Checkpoint_AggregandsEntry_DoNotUseDefaultTypeInternal477   PROTOBUF_CONSTEXPR Checkpoint_AggregandsEntry_DoNotUseDefaultTypeInternal()
478       : _instance(::_pbi::ConstantInitialized{}) {}
~Checkpoint_AggregandsEntry_DoNotUseDefaultTypeInternalgoogle::internal::federatedml::v2::Checkpoint_AggregandsEntry_DoNotUseDefaultTypeInternal479   ~Checkpoint_AggregandsEntry_DoNotUseDefaultTypeInternal() {}
480   union {  // NOLINT(misc-non-private-member-variables-in-classes)
481     Checkpoint_AggregandsEntry_DoNotUse _instance;
482   };
483 };
484 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Checkpoint_AggregandsEntry_DoNotUseDefaultTypeInternal _Checkpoint_AggregandsEntry_DoNotUse_default_instance_;
Checkpoint(::_pbi::ConstantInitialized)485 PROTOBUF_CONSTEXPR Checkpoint::Checkpoint(
486     ::_pbi::ConstantInitialized): _impl_{
487     /*decltype(_impl_.aggregands_)*/{}
488   , /*decltype(_impl_._cached_size_)*/{}} {}
489 struct CheckpointDefaultTypeInternal {
CheckpointDefaultTypeInternalgoogle::internal::federatedml::v2::CheckpointDefaultTypeInternal490   PROTOBUF_CONSTEXPR CheckpointDefaultTypeInternal()
491       : _instance(::_pbi::ConstantInitialized{}) {}
~CheckpointDefaultTypeInternalgoogle::internal::federatedml::v2::CheckpointDefaultTypeInternal492   ~CheckpointDefaultTypeInternal() {}
493   union {  // NOLINT(misc-non-private-member-variables-in-classes)
494     Checkpoint _instance;
495   };
496 };
497 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CheckpointDefaultTypeInternal _Checkpoint_default_instance_;
ProtocolOptionsRequest(::_pbi::ConstantInitialized)498 PROTOBUF_CONSTEXPR ProtocolOptionsRequest::ProtocolOptionsRequest(
499     ::_pbi::ConstantInitialized): _impl_{
500     /*decltype(_impl_.supported_compression_levels_)*/{}
501   , /*decltype(_impl_._supported_compression_levels_cached_byte_size_)*/{0}
502   , /*decltype(_impl_.supported_http_compression_formats_)*/{}
503   , /*decltype(_impl_._supported_http_compression_formats_cached_byte_size_)*/{0}
504   , /*decltype(_impl_.side_channels_)*/nullptr
505   , /*decltype(_impl_.supports_chunked_blob_transfer_)*/false
506   , /*decltype(_impl_.should_ack_checkin_)*/false
507   , /*decltype(_impl_.supports_http_download_)*/false
508   , /*decltype(_impl_.supports_eligibility_eval_http_download_)*/false
509   , /*decltype(_impl_._cached_size_)*/{}} {}
510 struct ProtocolOptionsRequestDefaultTypeInternal {
ProtocolOptionsRequestDefaultTypeInternalgoogle::internal::federatedml::v2::ProtocolOptionsRequestDefaultTypeInternal511   PROTOBUF_CONSTEXPR ProtocolOptionsRequestDefaultTypeInternal()
512       : _instance(::_pbi::ConstantInitialized{}) {}
~ProtocolOptionsRequestDefaultTypeInternalgoogle::internal::federatedml::v2::ProtocolOptionsRequestDefaultTypeInternal513   ~ProtocolOptionsRequestDefaultTypeInternal() {}
514   union {  // NOLINT(misc-non-private-member-variables-in-classes)
515     ProtocolOptionsRequest _instance;
516   };
517 };
518 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ProtocolOptionsRequestDefaultTypeInternal _ProtocolOptionsRequest_default_instance_;
ProtocolOptionsResponse(::_pbi::ConstantInitialized)519 PROTOBUF_CONSTEXPR ProtocolOptionsResponse::ProtocolOptionsResponse(
520     ::_pbi::ConstantInitialized): _impl_{
521     /*decltype(_impl_.side_channels_)*/nullptr
522   , /*decltype(_impl_.chunk_size_for_upload_)*/0
523   , /*decltype(_impl_.max_pending_chunks_)*/0
524   , /*decltype(_impl_.compression_level_)*/0
525   , /*decltype(_impl_._cached_size_)*/{}} {}
526 struct ProtocolOptionsResponseDefaultTypeInternal {
ProtocolOptionsResponseDefaultTypeInternalgoogle::internal::federatedml::v2::ProtocolOptionsResponseDefaultTypeInternal527   PROTOBUF_CONSTEXPR ProtocolOptionsResponseDefaultTypeInternal()
528       : _instance(::_pbi::ConstantInitialized{}) {}
~ProtocolOptionsResponseDefaultTypeInternalgoogle::internal::federatedml::v2::ProtocolOptionsResponseDefaultTypeInternal529   ~ProtocolOptionsResponseDefaultTypeInternal() {}
530   union {  // NOLINT(misc-non-private-member-variables-in-classes)
531     ProtocolOptionsResponse _instance;
532   };
533 };
534 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ProtocolOptionsResponseDefaultTypeInternal _ProtocolOptionsResponse_default_instance_;
ChunkedTransferMessage_Start(::_pbi::ConstantInitialized)535 PROTOBUF_CONSTEXPR ChunkedTransferMessage_Start::ChunkedTransferMessage_Start(
536     ::_pbi::ConstantInitialized): _impl_{
537     /*decltype(_impl_.uncompressed_size_)*/0
538   , /*decltype(_impl_.compression_level_)*/0
539   , /*decltype(_impl_.blob_size_bytes_)*/0
540   , /*decltype(_impl_._cached_size_)*/{}} {}
541 struct ChunkedTransferMessage_StartDefaultTypeInternal {
ChunkedTransferMessage_StartDefaultTypeInternalgoogle::internal::federatedml::v2::ChunkedTransferMessage_StartDefaultTypeInternal542   PROTOBUF_CONSTEXPR ChunkedTransferMessage_StartDefaultTypeInternal()
543       : _instance(::_pbi::ConstantInitialized{}) {}
~ChunkedTransferMessage_StartDefaultTypeInternalgoogle::internal::federatedml::v2::ChunkedTransferMessage_StartDefaultTypeInternal544   ~ChunkedTransferMessage_StartDefaultTypeInternal() {}
545   union {  // NOLINT(misc-non-private-member-variables-in-classes)
546     ChunkedTransferMessage_Start _instance;
547   };
548 };
549 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChunkedTransferMessage_StartDefaultTypeInternal _ChunkedTransferMessage_Start_default_instance_;
ChunkedTransferMessage_Data(::_pbi::ConstantInitialized)550 PROTOBUF_CONSTEXPR ChunkedTransferMessage_Data::ChunkedTransferMessage_Data(
551     ::_pbi::ConstantInitialized): _impl_{
552     /*decltype(_impl_.chunk_bytes_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
553   , /*decltype(_impl_.chunk_index_)*/0
554   , /*decltype(_impl_._cached_size_)*/{}} {}
555 struct ChunkedTransferMessage_DataDefaultTypeInternal {
ChunkedTransferMessage_DataDefaultTypeInternalgoogle::internal::federatedml::v2::ChunkedTransferMessage_DataDefaultTypeInternal556   PROTOBUF_CONSTEXPR ChunkedTransferMessage_DataDefaultTypeInternal()
557       : _instance(::_pbi::ConstantInitialized{}) {}
~ChunkedTransferMessage_DataDefaultTypeInternalgoogle::internal::federatedml::v2::ChunkedTransferMessage_DataDefaultTypeInternal558   ~ChunkedTransferMessage_DataDefaultTypeInternal() {}
559   union {  // NOLINT(misc-non-private-member-variables-in-classes)
560     ChunkedTransferMessage_Data _instance;
561   };
562 };
563 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChunkedTransferMessage_DataDefaultTypeInternal _ChunkedTransferMessage_Data_default_instance_;
ChunkedTransferMessage_Ack(::_pbi::ConstantInitialized)564 PROTOBUF_CONSTEXPR ChunkedTransferMessage_Ack::ChunkedTransferMessage_Ack(
565     ::_pbi::ConstantInitialized): _impl_{
566     /*decltype(_impl_.chunk_index_)*/0
567   , /*decltype(_impl_._cached_size_)*/{}} {}
568 struct ChunkedTransferMessage_AckDefaultTypeInternal {
ChunkedTransferMessage_AckDefaultTypeInternalgoogle::internal::federatedml::v2::ChunkedTransferMessage_AckDefaultTypeInternal569   PROTOBUF_CONSTEXPR ChunkedTransferMessage_AckDefaultTypeInternal()
570       : _instance(::_pbi::ConstantInitialized{}) {}
~ChunkedTransferMessage_AckDefaultTypeInternalgoogle::internal::federatedml::v2::ChunkedTransferMessage_AckDefaultTypeInternal571   ~ChunkedTransferMessage_AckDefaultTypeInternal() {}
572   union {  // NOLINT(misc-non-private-member-variables-in-classes)
573     ChunkedTransferMessage_Ack _instance;
574   };
575 };
576 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChunkedTransferMessage_AckDefaultTypeInternal _ChunkedTransferMessage_Ack_default_instance_;
ChunkedTransferMessage_End(::_pbi::ConstantInitialized)577 PROTOBUF_CONSTEXPR ChunkedTransferMessage_End::ChunkedTransferMessage_End(
578     ::_pbi::ConstantInitialized): _impl_{
579     /*decltype(_impl_.chunk_count_)*/0
580   , /*decltype(_impl_._cached_size_)*/{}} {}
581 struct ChunkedTransferMessage_EndDefaultTypeInternal {
ChunkedTransferMessage_EndDefaultTypeInternalgoogle::internal::federatedml::v2::ChunkedTransferMessage_EndDefaultTypeInternal582   PROTOBUF_CONSTEXPR ChunkedTransferMessage_EndDefaultTypeInternal()
583       : _instance(::_pbi::ConstantInitialized{}) {}
~ChunkedTransferMessage_EndDefaultTypeInternalgoogle::internal::federatedml::v2::ChunkedTransferMessage_EndDefaultTypeInternal584   ~ChunkedTransferMessage_EndDefaultTypeInternal() {}
585   union {  // NOLINT(misc-non-private-member-variables-in-classes)
586     ChunkedTransferMessage_End _instance;
587   };
588 };
589 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChunkedTransferMessage_EndDefaultTypeInternal _ChunkedTransferMessage_End_default_instance_;
ChunkedTransferMessage(::_pbi::ConstantInitialized)590 PROTOBUF_CONSTEXPR ChunkedTransferMessage::ChunkedTransferMessage(
591     ::_pbi::ConstantInitialized): _impl_{
592     /*decltype(_impl_.kind_)*/{}
593   , /*decltype(_impl_._cached_size_)*/{}
594   , /*decltype(_impl_._oneof_case_)*/{}} {}
595 struct ChunkedTransferMessageDefaultTypeInternal {
ChunkedTransferMessageDefaultTypeInternalgoogle::internal::federatedml::v2::ChunkedTransferMessageDefaultTypeInternal596   PROTOBUF_CONSTEXPR ChunkedTransferMessageDefaultTypeInternal()
597       : _instance(::_pbi::ConstantInitialized{}) {}
~ChunkedTransferMessageDefaultTypeInternalgoogle::internal::federatedml::v2::ChunkedTransferMessageDefaultTypeInternal598   ~ChunkedTransferMessageDefaultTypeInternal() {}
599   union {  // NOLINT(misc-non-private-member-variables-in-classes)
600     ChunkedTransferMessage _instance;
601   };
602 };
603 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChunkedTransferMessageDefaultTypeInternal _ChunkedTransferMessage_default_instance_;
604 }  // namespace v2
605 }  // namespace federatedml
606 }  // namespace internal
607 }  // namespace google
608 namespace google {
609 namespace internal {
610 namespace federatedml {
611 namespace v2 {
ChunkedTransferMessage_CompressionType_IsValid(int value)612 bool ChunkedTransferMessage_CompressionType_IsValid(int value) {
613   switch (value) {
614     case 0:
615       return true;
616     default:
617       return false;
618   }
619 }
620 
621 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> ChunkedTransferMessage_CompressionType_strings[1] = {};
622 
623 static const char ChunkedTransferMessage_CompressionType_names[] =
624   "UNCOMPRESSED";
625 
626 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ChunkedTransferMessage_CompressionType_entries[] = {
627   { {ChunkedTransferMessage_CompressionType_names + 0, 12}, 0 },
628 };
629 
630 static const int ChunkedTransferMessage_CompressionType_entries_by_number[] = {
631   0, // 0 -> UNCOMPRESSED
632 };
633 
ChunkedTransferMessage_CompressionType_Name(ChunkedTransferMessage_CompressionType value)634 const std::string& ChunkedTransferMessage_CompressionType_Name(
635     ChunkedTransferMessage_CompressionType value) {
636   static const bool dummy =
637       ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
638           ChunkedTransferMessage_CompressionType_entries,
639           ChunkedTransferMessage_CompressionType_entries_by_number,
640           1, ChunkedTransferMessage_CompressionType_strings);
641   (void) dummy;
642   int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
643       ChunkedTransferMessage_CompressionType_entries,
644       ChunkedTransferMessage_CompressionType_entries_by_number,
645       1, value);
646   return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
647                      ChunkedTransferMessage_CompressionType_strings[idx].get();
648 }
ChunkedTransferMessage_CompressionType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,ChunkedTransferMessage_CompressionType * value)649 bool ChunkedTransferMessage_CompressionType_Parse(
650     ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ChunkedTransferMessage_CompressionType* value) {
651   int int_value;
652   bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
653       ChunkedTransferMessage_CompressionType_entries, 1, name, &int_value);
654   if (success) {
655     *value = static_cast<ChunkedTransferMessage_CompressionType>(int_value);
656   }
657   return success;
658 }
659 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
660 constexpr ChunkedTransferMessage_CompressionType ChunkedTransferMessage::UNCOMPRESSED;
661 constexpr ChunkedTransferMessage_CompressionType ChunkedTransferMessage::CompressionType_MIN;
662 constexpr ChunkedTransferMessage_CompressionType ChunkedTransferMessage::CompressionType_MAX;
663 constexpr int ChunkedTransferMessage::CompressionType_ARRAYSIZE;
664 #endif  // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
CompressionLevel_IsValid(int value)665 bool CompressionLevel_IsValid(int value) {
666   switch (value) {
667     case 0:
668     case 1:
669     case 2:
670     case 3:
671       return true;
672     default:
673       return false;
674   }
675 }
676 
677 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> CompressionLevel_strings[4] = {};
678 
679 static const char CompressionLevel_names[] =
680   "UNCOMPRESSED"
681   "ZLIB_BEST_COMPRESSION"
682   "ZLIB_BEST_SPEED"
683   "ZLIB_DEFAULT";
684 
685 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry CompressionLevel_entries[] = {
686   { {CompressionLevel_names + 0, 12}, 0 },
687   { {CompressionLevel_names + 12, 21}, 2 },
688   { {CompressionLevel_names + 33, 15}, 3 },
689   { {CompressionLevel_names + 48, 12}, 1 },
690 };
691 
692 static const int CompressionLevel_entries_by_number[] = {
693   0, // 0 -> UNCOMPRESSED
694   3, // 1 -> ZLIB_DEFAULT
695   1, // 2 -> ZLIB_BEST_COMPRESSION
696   2, // 3 -> ZLIB_BEST_SPEED
697 };
698 
CompressionLevel_Name(CompressionLevel value)699 const std::string& CompressionLevel_Name(
700     CompressionLevel value) {
701   static const bool dummy =
702       ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
703           CompressionLevel_entries,
704           CompressionLevel_entries_by_number,
705           4, CompressionLevel_strings);
706   (void) dummy;
707   int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
708       CompressionLevel_entries,
709       CompressionLevel_entries_by_number,
710       4, value);
711   return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
712                      CompressionLevel_strings[idx].get();
713 }
CompressionLevel_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,CompressionLevel * value)714 bool CompressionLevel_Parse(
715     ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, CompressionLevel* value) {
716   int int_value;
717   bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
718       CompressionLevel_entries, 4, name, &int_value);
719   if (success) {
720     *value = static_cast<CompressionLevel>(int_value);
721   }
722   return success;
723 }
HttpCompressionFormat_IsValid(int value)724 bool HttpCompressionFormat_IsValid(int value) {
725   switch (value) {
726     case 0:
727     case 1:
728       return true;
729     default:
730       return false;
731   }
732 }
733 
734 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> HttpCompressionFormat_strings[2] = {};
735 
736 static const char HttpCompressionFormat_names[] =
737   "HTTP_COMPRESSION_FORMAT_GZIP"
738   "HTTP_COMPRESSION_FORMAT_UNSPECIFIED";
739 
740 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry HttpCompressionFormat_entries[] = {
741   { {HttpCompressionFormat_names + 0, 28}, 1 },
742   { {HttpCompressionFormat_names + 28, 35}, 0 },
743 };
744 
745 static const int HttpCompressionFormat_entries_by_number[] = {
746   1, // 0 -> HTTP_COMPRESSION_FORMAT_UNSPECIFIED
747   0, // 1 -> HTTP_COMPRESSION_FORMAT_GZIP
748 };
749 
HttpCompressionFormat_Name(HttpCompressionFormat value)750 const std::string& HttpCompressionFormat_Name(
751     HttpCompressionFormat value) {
752   static const bool dummy =
753       ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
754           HttpCompressionFormat_entries,
755           HttpCompressionFormat_entries_by_number,
756           2, HttpCompressionFormat_strings);
757   (void) dummy;
758   int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
759       HttpCompressionFormat_entries,
760       HttpCompressionFormat_entries_by_number,
761       2, value);
762   return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
763                      HttpCompressionFormat_strings[idx].get();
764 }
HttpCompressionFormat_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,HttpCompressionFormat * value)765 bool HttpCompressionFormat_Parse(
766     ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, HttpCompressionFormat* value) {
767   int int_value;
768   bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
769       HttpCompressionFormat_entries, 2, name, &int_value);
770   if (success) {
771     *value = static_cast<HttpCompressionFormat>(int_value);
772   }
773   return success;
774 }
775 
776 // ===================================================================
777 
778 class ClientStreamMessage::_Internal {
779  public:
780   static const ::google::internal::federatedml::v2::CheckinRequest& checkin_request(const ClientStreamMessage* msg);
781   static const ::google::internal::federatedml::v2::ReportRequest& report_request(const ClientStreamMessage* msg);
782   static const ::google::internal::federatedml::v2::ChunkedTransferMessage& chunked_transfer(const ClientStreamMessage* msg);
783   static const ::google::internal::federatedml::v2::EligibilityEvalCheckinRequest& eligibility_eval_checkin_request(const ClientStreamMessage* msg);
784   static const ::fcp::secagg::ClientToServerWrapperMessage& secure_aggregation_client_message(const ClientStreamMessage* msg);
785 };
786 
787 const ::google::internal::federatedml::v2::CheckinRequest&
checkin_request(const ClientStreamMessage * msg)788 ClientStreamMessage::_Internal::checkin_request(const ClientStreamMessage* msg) {
789   return *msg->_impl_.kind_.checkin_request_;
790 }
791 const ::google::internal::federatedml::v2::ReportRequest&
report_request(const ClientStreamMessage * msg)792 ClientStreamMessage::_Internal::report_request(const ClientStreamMessage* msg) {
793   return *msg->_impl_.kind_.report_request_;
794 }
795 const ::google::internal::federatedml::v2::ChunkedTransferMessage&
chunked_transfer(const ClientStreamMessage * msg)796 ClientStreamMessage::_Internal::chunked_transfer(const ClientStreamMessage* msg) {
797   return *msg->_impl_.kind_.chunked_transfer_;
798 }
799 const ::google::internal::federatedml::v2::EligibilityEvalCheckinRequest&
eligibility_eval_checkin_request(const ClientStreamMessage * msg)800 ClientStreamMessage::_Internal::eligibility_eval_checkin_request(const ClientStreamMessage* msg) {
801   return *msg->_impl_.kind_.eligibility_eval_checkin_request_;
802 }
803 const ::fcp::secagg::ClientToServerWrapperMessage&
secure_aggregation_client_message(const ClientStreamMessage * msg)804 ClientStreamMessage::_Internal::secure_aggregation_client_message(const ClientStreamMessage* msg) {
805   return *msg->_impl_.secure_aggregation_client_message_;
806 }
set_allocated_checkin_request(::google::internal::federatedml::v2::CheckinRequest * checkin_request)807 void ClientStreamMessage::set_allocated_checkin_request(::google::internal::federatedml::v2::CheckinRequest* checkin_request) {
808   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
809   clear_kind();
810   if (checkin_request) {
811     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
812       ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(checkin_request);
813     if (message_arena != submessage_arena) {
814       checkin_request = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
815           message_arena, checkin_request, submessage_arena);
816     }
817     set_has_checkin_request();
818     _impl_.kind_.checkin_request_ = checkin_request;
819   }
820   // @@protoc_insertion_point(field_set_allocated:google.internal.federatedml.v2.ClientStreamMessage.checkin_request)
821 }
set_allocated_report_request(::google::internal::federatedml::v2::ReportRequest * report_request)822 void ClientStreamMessage::set_allocated_report_request(::google::internal::federatedml::v2::ReportRequest* report_request) {
823   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
824   clear_kind();
825   if (report_request) {
826     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
827       ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(report_request);
828     if (message_arena != submessage_arena) {
829       report_request = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
830           message_arena, report_request, submessage_arena);
831     }
832     set_has_report_request();
833     _impl_.kind_.report_request_ = report_request;
834   }
835   // @@protoc_insertion_point(field_set_allocated:google.internal.federatedml.v2.ClientStreamMessage.report_request)
836 }
set_allocated_chunked_transfer(::google::internal::federatedml::v2::ChunkedTransferMessage * chunked_transfer)837 void ClientStreamMessage::set_allocated_chunked_transfer(::google::internal::federatedml::v2::ChunkedTransferMessage* chunked_transfer) {
838   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
839   clear_kind();
840   if (chunked_transfer) {
841     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
842       ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(chunked_transfer);
843     if (message_arena != submessage_arena) {
844       chunked_transfer = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
845           message_arena, chunked_transfer, submessage_arena);
846     }
847     set_has_chunked_transfer();
848     _impl_.kind_.chunked_transfer_ = chunked_transfer;
849   }
850   // @@protoc_insertion_point(field_set_allocated:google.internal.federatedml.v2.ClientStreamMessage.chunked_transfer)
851 }
set_allocated_eligibility_eval_checkin_request(::google::internal::federatedml::v2::EligibilityEvalCheckinRequest * eligibility_eval_checkin_request)852 void ClientStreamMessage::set_allocated_eligibility_eval_checkin_request(::google::internal::federatedml::v2::EligibilityEvalCheckinRequest* eligibility_eval_checkin_request) {
853   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
854   clear_kind();
855   if (eligibility_eval_checkin_request) {
856     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
857       ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(eligibility_eval_checkin_request);
858     if (message_arena != submessage_arena) {
859       eligibility_eval_checkin_request = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
860           message_arena, eligibility_eval_checkin_request, submessage_arena);
861     }
862     set_has_eligibility_eval_checkin_request();
863     _impl_.kind_.eligibility_eval_checkin_request_ = eligibility_eval_checkin_request;
864   }
865   // @@protoc_insertion_point(field_set_allocated:google.internal.federatedml.v2.ClientStreamMessage.eligibility_eval_checkin_request)
866 }
clear_secure_aggregation_client_message()867 void ClientStreamMessage::clear_secure_aggregation_client_message() {
868   if (GetArenaForAllocation() == nullptr && _impl_.secure_aggregation_client_message_ != nullptr) {
869     delete _impl_.secure_aggregation_client_message_;
870   }
871   _impl_.secure_aggregation_client_message_ = nullptr;
872 }
clear_serialized_side_channel_event()873 void ClientStreamMessage::clear_serialized_side_channel_event() {
874   _impl_.serialized_side_channel_event_.Clear();
875 }
ClientStreamMessage(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)876 ClientStreamMessage::ClientStreamMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena,
877                          bool is_message_owned)
878   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
879   SharedCtor(arena, is_message_owned);
880   // @@protoc_insertion_point(arena_constructor:google.internal.federatedml.v2.ClientStreamMessage)
881 }
ClientStreamMessage(const ClientStreamMessage & from)882 ClientStreamMessage::ClientStreamMessage(const ClientStreamMessage& from)
883   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
884   ClientStreamMessage* const _this = this; (void)_this;
885   new (&_impl_) Impl_{
886       decltype(_impl_.serialized_side_channel_event_){from._impl_.serialized_side_channel_event_}
887     , decltype(_impl_.internal_client_id_){}
888     , decltype(_impl_.secure_aggregation_client_message_){nullptr}
889     , decltype(_impl_.kind_){}
890     , /*decltype(_impl_._cached_size_)*/{}
891     , /*decltype(_impl_._oneof_case_)*/{}};
892 
893   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
894   _impl_.internal_client_id_.InitDefault();
895   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
896     _impl_.internal_client_id_.Set("", GetArenaForAllocation());
897   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
898   if (!from._internal_internal_client_id().empty()) {
899     _this->_impl_.internal_client_id_.Set(from._internal_internal_client_id(),
900       _this->GetArenaForAllocation());
901   }
902   if (from._internal_has_secure_aggregation_client_message()) {
903     _this->_impl_.secure_aggregation_client_message_ = new ::fcp::secagg::ClientToServerWrapperMessage(*from._impl_.secure_aggregation_client_message_);
904   }
905   clear_has_kind();
906   switch (from.kind_case()) {
907     case kCheckinRequest: {
908       _this->_internal_mutable_checkin_request()->::google::internal::federatedml::v2::CheckinRequest::MergeFrom(
909           from._internal_checkin_request());
910       break;
911     }
912     case kReportRequest: {
913       _this->_internal_mutable_report_request()->::google::internal::federatedml::v2::ReportRequest::MergeFrom(
914           from._internal_report_request());
915       break;
916     }
917     case kChunkedTransfer: {
918       _this->_internal_mutable_chunked_transfer()->::google::internal::federatedml::v2::ChunkedTransferMessage::MergeFrom(
919           from._internal_chunked_transfer());
920       break;
921     }
922     case kEligibilityEvalCheckinRequest: {
923       _this->_internal_mutable_eligibility_eval_checkin_request()->::google::internal::federatedml::v2::EligibilityEvalCheckinRequest::MergeFrom(
924           from._internal_eligibility_eval_checkin_request());
925       break;
926     }
927     case KIND_NOT_SET: {
928       break;
929     }
930   }
931   // @@protoc_insertion_point(copy_constructor:google.internal.federatedml.v2.ClientStreamMessage)
932 }
933 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)934 inline void ClientStreamMessage::SharedCtor(
935     ::_pb::Arena* arena, bool is_message_owned) {
936   (void)arena;
937   (void)is_message_owned;
938   new (&_impl_) Impl_{
939       decltype(_impl_.serialized_side_channel_event_){arena}
940     , decltype(_impl_.internal_client_id_){}
941     , decltype(_impl_.secure_aggregation_client_message_){nullptr}
942     , decltype(_impl_.kind_){}
943     , /*decltype(_impl_._cached_size_)*/{}
944     , /*decltype(_impl_._oneof_case_)*/{}
945   };
946   _impl_.internal_client_id_.InitDefault();
947   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
948     _impl_.internal_client_id_.Set("", GetArenaForAllocation());
949   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
950   clear_has_kind();
951 }
952 
~ClientStreamMessage()953 ClientStreamMessage::~ClientStreamMessage() {
954   // @@protoc_insertion_point(destructor:google.internal.federatedml.v2.ClientStreamMessage)
955   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
956   (void)arena;
957     return;
958   }
959   SharedDtor();
960 }
961 
SharedDtor()962 inline void ClientStreamMessage::SharedDtor() {
963   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
964   _impl_.serialized_side_channel_event_.~RepeatedPtrField();
965   _impl_.internal_client_id_.Destroy();
966   if (this != internal_default_instance()) delete _impl_.secure_aggregation_client_message_;
967   if (has_kind()) {
968     clear_kind();
969   }
970 }
971 
SetCachedSize(int size) const972 void ClientStreamMessage::SetCachedSize(int size) const {
973   _impl_._cached_size_.Set(size);
974 }
975 
clear_kind()976 void ClientStreamMessage::clear_kind() {
977 // @@protoc_insertion_point(one_of_clear_start:google.internal.federatedml.v2.ClientStreamMessage)
978   switch (kind_case()) {
979     case kCheckinRequest: {
980       if (GetArenaForAllocation() == nullptr) {
981         delete _impl_.kind_.checkin_request_;
982       }
983       break;
984     }
985     case kReportRequest: {
986       if (GetArenaForAllocation() == nullptr) {
987         delete _impl_.kind_.report_request_;
988       }
989       break;
990     }
991     case kChunkedTransfer: {
992       if (GetArenaForAllocation() == nullptr) {
993         delete _impl_.kind_.chunked_transfer_;
994       }
995       break;
996     }
997     case kEligibilityEvalCheckinRequest: {
998       if (GetArenaForAllocation() == nullptr) {
999         delete _impl_.kind_.eligibility_eval_checkin_request_;
1000       }
1001       break;
1002     }
1003     case KIND_NOT_SET: {
1004       break;
1005     }
1006   }
1007   _impl_._oneof_case_[0] = KIND_NOT_SET;
1008 }
1009 
1010 
Clear()1011 void ClientStreamMessage::Clear() {
1012 // @@protoc_insertion_point(message_clear_start:google.internal.federatedml.v2.ClientStreamMessage)
1013   ::uint32_t cached_has_bits = 0;
1014   // Prevent compiler warnings about cached_has_bits being unused
1015   (void) cached_has_bits;
1016 
1017   _impl_.serialized_side_channel_event_.Clear();
1018   _impl_.internal_client_id_.ClearToEmpty();
1019   if (GetArenaForAllocation() == nullptr && _impl_.secure_aggregation_client_message_ != nullptr) {
1020     delete _impl_.secure_aggregation_client_message_;
1021   }
1022   _impl_.secure_aggregation_client_message_ = nullptr;
1023   clear_kind();
1024   _internal_metadata_.Clear<std::string>();
1025 }
1026 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)1027 const char* ClientStreamMessage::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
1028 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1029   while (!ctx->Done(&ptr)) {
1030     ::uint32_t tag;
1031     ptr = ::_pbi::ReadTag(ptr, &tag);
1032     switch (tag >> 3) {
1033       // .google.internal.federatedml.v2.CheckinRequest checkin_request = 1;
1034       case 1:
1035         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
1036           ptr = ctx->ParseMessage(_internal_mutable_checkin_request(), ptr);
1037           CHK_(ptr);
1038         } else {
1039           goto handle_unusual;
1040         }
1041         continue;
1042       // .google.internal.federatedml.v2.ReportRequest report_request = 2;
1043       case 2:
1044         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
1045           ptr = ctx->ParseMessage(_internal_mutable_report_request(), ptr);
1046           CHK_(ptr);
1047         } else {
1048           goto handle_unusual;
1049         }
1050         continue;
1051       // string internal_client_id = 3 [deprecated = true];
1052       case 3:
1053         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
1054           auto str = _internal_mutable_internal_client_id();
1055           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
1056           CHK_(ptr);
1057           CHK_(::_pbi::VerifyUTF8(str, nullptr));
1058         } else {
1059           goto handle_unusual;
1060         }
1061         continue;
1062       // .fcp.secagg.ClientToServerWrapperMessage secure_aggregation_client_message = 4;
1063       case 4:
1064         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
1065           ptr = ctx->ParseMessage(_internal_mutable_secure_aggregation_client_message(), ptr);
1066           CHK_(ptr);
1067         } else {
1068           goto handle_unusual;
1069         }
1070         continue;
1071       // repeated .google.protobuf.Any serialized_side_channel_event = 5;
1072       case 5:
1073         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
1074           ptr -= 1;
1075           do {
1076             ptr += 1;
1077             ptr = ctx->ParseMessage(_internal_add_serialized_side_channel_event(), ptr);
1078             CHK_(ptr);
1079             if (!ctx->DataAvailable(ptr)) break;
1080           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr));
1081         } else {
1082           goto handle_unusual;
1083         }
1084         continue;
1085       // .google.internal.federatedml.v2.ChunkedTransferMessage chunked_transfer = 6;
1086       case 6:
1087         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) {
1088           ptr = ctx->ParseMessage(_internal_mutable_chunked_transfer(), ptr);
1089           CHK_(ptr);
1090         } else {
1091           goto handle_unusual;
1092         }
1093         continue;
1094       // .google.internal.federatedml.v2.EligibilityEvalCheckinRequest eligibility_eval_checkin_request = 7;
1095       case 7:
1096         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) {
1097           ptr = ctx->ParseMessage(_internal_mutable_eligibility_eval_checkin_request(), ptr);
1098           CHK_(ptr);
1099         } else {
1100           goto handle_unusual;
1101         }
1102         continue;
1103       default:
1104         goto handle_unusual;
1105     }  // switch
1106   handle_unusual:
1107     if ((tag == 0) || ((tag & 7) == 4)) {
1108       CHK_(ptr);
1109       ctx->SetLastTag(tag);
1110       goto message_done;
1111     }
1112     ptr = UnknownFieldParse(
1113         tag,
1114         _internal_metadata_.mutable_unknown_fields<std::string>(),
1115         ptr, ctx);
1116     CHK_(ptr != nullptr);
1117   }  // while
1118 message_done:
1119   return ptr;
1120 failure:
1121   ptr = nullptr;
1122   goto message_done;
1123 #undef CHK_
1124 }
1125 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const1126 ::uint8_t* ClientStreamMessage::_InternalSerialize(
1127     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1128   // @@protoc_insertion_point(serialize_to_array_start:google.internal.federatedml.v2.ClientStreamMessage)
1129   ::uint32_t cached_has_bits = 0;
1130   (void) cached_has_bits;
1131 
1132   // .google.internal.federatedml.v2.CheckinRequest checkin_request = 1;
1133   if (_internal_has_checkin_request()) {
1134     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1135       InternalWriteMessage(1, _Internal::checkin_request(this),
1136         _Internal::checkin_request(this).GetCachedSize(), target, stream);
1137   }
1138 
1139   // .google.internal.federatedml.v2.ReportRequest report_request = 2;
1140   if (_internal_has_report_request()) {
1141     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1142       InternalWriteMessage(2, _Internal::report_request(this),
1143         _Internal::report_request(this).GetCachedSize(), target, stream);
1144   }
1145 
1146   // string internal_client_id = 3 [deprecated = true];
1147   if (!this->_internal_internal_client_id().empty()) {
1148     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1149       this->_internal_internal_client_id().data(), static_cast<int>(this->_internal_internal_client_id().length()),
1150       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1151       "google.internal.federatedml.v2.ClientStreamMessage.internal_client_id");
1152     target = stream->WriteStringMaybeAliased(
1153         3, this->_internal_internal_client_id(), target);
1154   }
1155 
1156   // .fcp.secagg.ClientToServerWrapperMessage secure_aggregation_client_message = 4;
1157   if (this->_internal_has_secure_aggregation_client_message()) {
1158     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1159       InternalWriteMessage(4, _Internal::secure_aggregation_client_message(this),
1160         _Internal::secure_aggregation_client_message(this).GetCachedSize(), target, stream);
1161   }
1162 
1163   // repeated .google.protobuf.Any serialized_side_channel_event = 5;
1164   for (unsigned i = 0,
1165       n = static_cast<unsigned>(this->_internal_serialized_side_channel_event_size()); i < n; i++) {
1166     const auto& repfield = this->_internal_serialized_side_channel_event(i);
1167     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1168         InternalWriteMessage(5, repfield, repfield.GetCachedSize(), target, stream);
1169   }
1170 
1171   // .google.internal.federatedml.v2.ChunkedTransferMessage chunked_transfer = 6;
1172   if (_internal_has_chunked_transfer()) {
1173     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1174       InternalWriteMessage(6, _Internal::chunked_transfer(this),
1175         _Internal::chunked_transfer(this).GetCachedSize(), target, stream);
1176   }
1177 
1178   // .google.internal.federatedml.v2.EligibilityEvalCheckinRequest eligibility_eval_checkin_request = 7;
1179   if (_internal_has_eligibility_eval_checkin_request()) {
1180     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1181       InternalWriteMessage(7, _Internal::eligibility_eval_checkin_request(this),
1182         _Internal::eligibility_eval_checkin_request(this).GetCachedSize(), target, stream);
1183   }
1184 
1185   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1186     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
1187         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
1188   }
1189   // @@protoc_insertion_point(serialize_to_array_end:google.internal.federatedml.v2.ClientStreamMessage)
1190   return target;
1191 }
1192 
ByteSizeLong() const1193 size_t ClientStreamMessage::ByteSizeLong() const {
1194 // @@protoc_insertion_point(message_byte_size_start:google.internal.federatedml.v2.ClientStreamMessage)
1195   size_t total_size = 0;
1196 
1197   ::uint32_t cached_has_bits = 0;
1198   // Prevent compiler warnings about cached_has_bits being unused
1199   (void) cached_has_bits;
1200 
1201   // repeated .google.protobuf.Any serialized_side_channel_event = 5;
1202   total_size += 1UL * this->_internal_serialized_side_channel_event_size();
1203   for (const auto& msg : this->_impl_.serialized_side_channel_event_) {
1204     total_size +=
1205       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1206   }
1207 
1208   // string internal_client_id = 3 [deprecated = true];
1209   if (!this->_internal_internal_client_id().empty()) {
1210     total_size += 1 +
1211       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1212         this->_internal_internal_client_id());
1213   }
1214 
1215   // .fcp.secagg.ClientToServerWrapperMessage secure_aggregation_client_message = 4;
1216   if (this->_internal_has_secure_aggregation_client_message()) {
1217     total_size += 1 +
1218       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1219         *_impl_.secure_aggregation_client_message_);
1220   }
1221 
1222   switch (kind_case()) {
1223     // .google.internal.federatedml.v2.CheckinRequest checkin_request = 1;
1224     case kCheckinRequest: {
1225       total_size += 1 +
1226         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1227           *_impl_.kind_.checkin_request_);
1228       break;
1229     }
1230     // .google.internal.federatedml.v2.ReportRequest report_request = 2;
1231     case kReportRequest: {
1232       total_size += 1 +
1233         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1234           *_impl_.kind_.report_request_);
1235       break;
1236     }
1237     // .google.internal.federatedml.v2.ChunkedTransferMessage chunked_transfer = 6;
1238     case kChunkedTransfer: {
1239       total_size += 1 +
1240         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1241           *_impl_.kind_.chunked_transfer_);
1242       break;
1243     }
1244     // .google.internal.federatedml.v2.EligibilityEvalCheckinRequest eligibility_eval_checkin_request = 7;
1245     case kEligibilityEvalCheckinRequest: {
1246       total_size += 1 +
1247         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1248           *_impl_.kind_.eligibility_eval_checkin_request_);
1249       break;
1250     }
1251     case KIND_NOT_SET: {
1252       break;
1253     }
1254   }
1255   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1256     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
1257   }
1258   int cached_size = ::_pbi::ToCachedSize(total_size);
1259   SetCachedSize(cached_size);
1260   return total_size;
1261 }
1262 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)1263 void ClientStreamMessage::CheckTypeAndMergeFrom(
1264     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
1265   MergeFrom(*::_pbi::DownCast<const ClientStreamMessage*>(
1266       &from));
1267 }
1268 
MergeFrom(const ClientStreamMessage & from)1269 void ClientStreamMessage::MergeFrom(const ClientStreamMessage& from) {
1270   ClientStreamMessage* const _this = this;
1271   // @@protoc_insertion_point(class_specific_merge_from_start:google.internal.federatedml.v2.ClientStreamMessage)
1272   GOOGLE_DCHECK_NE(&from, _this);
1273   ::uint32_t cached_has_bits = 0;
1274   (void) cached_has_bits;
1275 
1276   _this->_impl_.serialized_side_channel_event_.MergeFrom(from._impl_.serialized_side_channel_event_);
1277   if (!from._internal_internal_client_id().empty()) {
1278     _this->_internal_set_internal_client_id(from._internal_internal_client_id());
1279   }
1280   if (from._internal_has_secure_aggregation_client_message()) {
1281     _this->_internal_mutable_secure_aggregation_client_message()->::fcp::secagg::ClientToServerWrapperMessage::MergeFrom(
1282         from._internal_secure_aggregation_client_message());
1283   }
1284   switch (from.kind_case()) {
1285     case kCheckinRequest: {
1286       _this->_internal_mutable_checkin_request()->::google::internal::federatedml::v2::CheckinRequest::MergeFrom(
1287           from._internal_checkin_request());
1288       break;
1289     }
1290     case kReportRequest: {
1291       _this->_internal_mutable_report_request()->::google::internal::federatedml::v2::ReportRequest::MergeFrom(
1292           from._internal_report_request());
1293       break;
1294     }
1295     case kChunkedTransfer: {
1296       _this->_internal_mutable_chunked_transfer()->::google::internal::federatedml::v2::ChunkedTransferMessage::MergeFrom(
1297           from._internal_chunked_transfer());
1298       break;
1299     }
1300     case kEligibilityEvalCheckinRequest: {
1301       _this->_internal_mutable_eligibility_eval_checkin_request()->::google::internal::federatedml::v2::EligibilityEvalCheckinRequest::MergeFrom(
1302           from._internal_eligibility_eval_checkin_request());
1303       break;
1304     }
1305     case KIND_NOT_SET: {
1306       break;
1307     }
1308   }
1309   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
1310 }
1311 
CopyFrom(const ClientStreamMessage & from)1312 void ClientStreamMessage::CopyFrom(const ClientStreamMessage& from) {
1313 // @@protoc_insertion_point(class_specific_copy_from_start:google.internal.federatedml.v2.ClientStreamMessage)
1314   if (&from == this) return;
1315   Clear();
1316   MergeFrom(from);
1317 }
1318 
IsInitialized() const1319 bool ClientStreamMessage::IsInitialized() const {
1320   return true;
1321 }
1322 
InternalSwap(ClientStreamMessage * other)1323 void ClientStreamMessage::InternalSwap(ClientStreamMessage* other) {
1324   using std::swap;
1325   auto* lhs_arena = GetArenaForAllocation();
1326   auto* rhs_arena = other->GetArenaForAllocation();
1327   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1328   _impl_.serialized_side_channel_event_.InternalSwap(&other->_impl_.serialized_side_channel_event_);
1329   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
1330       &_impl_.internal_client_id_, lhs_arena,
1331       &other->_impl_.internal_client_id_, rhs_arena
1332   );
1333   swap(_impl_.secure_aggregation_client_message_, other->_impl_.secure_aggregation_client_message_);
1334   swap(_impl_.kind_, other->_impl_.kind_);
1335   swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
1336 }
1337 
GetTypeName() const1338 std::string ClientStreamMessage::GetTypeName() const {
1339   return "google.internal.federatedml.v2.ClientStreamMessage";
1340 }
1341 
1342 
1343 // ===================================================================
1344 
1345 class ServerStreamMessage::_Internal {
1346  public:
1347   static const ::google::internal::federatedml::v2::CheckinResponse& checkin_response(const ServerStreamMessage* msg);
1348   static const ::google::internal::federatedml::v2::ReportResponse& report_response(const ServerStreamMessage* msg);
1349   static const ::google::internal::federatedml::v2::ChunkedTransferMessage& chunked_transfer(const ServerStreamMessage* msg);
1350   static const ::google::internal::federatedml::v2::CheckinRequestAck& checkin_request_ack(const ServerStreamMessage* msg);
1351   static const ::google::internal::federatedml::v2::EligibilityEvalCheckinResponse& eligibility_eval_checkin_response(const ServerStreamMessage* msg);
1352   static const ::fcp::secagg::ServerToClientWrapperMessage& secure_aggregation_server_message(const ServerStreamMessage* msg);
1353 };
1354 
1355 const ::google::internal::federatedml::v2::CheckinResponse&
checkin_response(const ServerStreamMessage * msg)1356 ServerStreamMessage::_Internal::checkin_response(const ServerStreamMessage* msg) {
1357   return *msg->_impl_.kind_.checkin_response_;
1358 }
1359 const ::google::internal::federatedml::v2::ReportResponse&
report_response(const ServerStreamMessage * msg)1360 ServerStreamMessage::_Internal::report_response(const ServerStreamMessage* msg) {
1361   return *msg->_impl_.kind_.report_response_;
1362 }
1363 const ::google::internal::federatedml::v2::ChunkedTransferMessage&
chunked_transfer(const ServerStreamMessage * msg)1364 ServerStreamMessage::_Internal::chunked_transfer(const ServerStreamMessage* msg) {
1365   return *msg->_impl_.kind_.chunked_transfer_;
1366 }
1367 const ::google::internal::federatedml::v2::CheckinRequestAck&
checkin_request_ack(const ServerStreamMessage * msg)1368 ServerStreamMessage::_Internal::checkin_request_ack(const ServerStreamMessage* msg) {
1369   return *msg->_impl_.kind_.checkin_request_ack_;
1370 }
1371 const ::google::internal::federatedml::v2::EligibilityEvalCheckinResponse&
eligibility_eval_checkin_response(const ServerStreamMessage * msg)1372 ServerStreamMessage::_Internal::eligibility_eval_checkin_response(const ServerStreamMessage* msg) {
1373   return *msg->_impl_.kind_.eligibility_eval_checkin_response_;
1374 }
1375 const ::fcp::secagg::ServerToClientWrapperMessage&
secure_aggregation_server_message(const ServerStreamMessage * msg)1376 ServerStreamMessage::_Internal::secure_aggregation_server_message(const ServerStreamMessage* msg) {
1377   return *msg->_impl_.secure_aggregation_server_message_;
1378 }
set_allocated_checkin_response(::google::internal::federatedml::v2::CheckinResponse * checkin_response)1379 void ServerStreamMessage::set_allocated_checkin_response(::google::internal::federatedml::v2::CheckinResponse* checkin_response) {
1380   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1381   clear_kind();
1382   if (checkin_response) {
1383     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1384       ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(checkin_response);
1385     if (message_arena != submessage_arena) {
1386       checkin_response = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1387           message_arena, checkin_response, submessage_arena);
1388     }
1389     set_has_checkin_response();
1390     _impl_.kind_.checkin_response_ = checkin_response;
1391   }
1392   // @@protoc_insertion_point(field_set_allocated:google.internal.federatedml.v2.ServerStreamMessage.checkin_response)
1393 }
set_allocated_report_response(::google::internal::federatedml::v2::ReportResponse * report_response)1394 void ServerStreamMessage::set_allocated_report_response(::google::internal::federatedml::v2::ReportResponse* report_response) {
1395   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1396   clear_kind();
1397   if (report_response) {
1398     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1399       ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(report_response);
1400     if (message_arena != submessage_arena) {
1401       report_response = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1402           message_arena, report_response, submessage_arena);
1403     }
1404     set_has_report_response();
1405     _impl_.kind_.report_response_ = report_response;
1406   }
1407   // @@protoc_insertion_point(field_set_allocated:google.internal.federatedml.v2.ServerStreamMessage.report_response)
1408 }
set_allocated_chunked_transfer(::google::internal::federatedml::v2::ChunkedTransferMessage * chunked_transfer)1409 void ServerStreamMessage::set_allocated_chunked_transfer(::google::internal::federatedml::v2::ChunkedTransferMessage* chunked_transfer) {
1410   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1411   clear_kind();
1412   if (chunked_transfer) {
1413     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1414       ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(chunked_transfer);
1415     if (message_arena != submessage_arena) {
1416       chunked_transfer = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1417           message_arena, chunked_transfer, submessage_arena);
1418     }
1419     set_has_chunked_transfer();
1420     _impl_.kind_.chunked_transfer_ = chunked_transfer;
1421   }
1422   // @@protoc_insertion_point(field_set_allocated:google.internal.federatedml.v2.ServerStreamMessage.chunked_transfer)
1423 }
set_allocated_checkin_request_ack(::google::internal::federatedml::v2::CheckinRequestAck * checkin_request_ack)1424 void ServerStreamMessage::set_allocated_checkin_request_ack(::google::internal::federatedml::v2::CheckinRequestAck* checkin_request_ack) {
1425   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1426   clear_kind();
1427   if (checkin_request_ack) {
1428     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1429       ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(checkin_request_ack);
1430     if (message_arena != submessage_arena) {
1431       checkin_request_ack = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1432           message_arena, checkin_request_ack, submessage_arena);
1433     }
1434     set_has_checkin_request_ack();
1435     _impl_.kind_.checkin_request_ack_ = checkin_request_ack;
1436   }
1437   // @@protoc_insertion_point(field_set_allocated:google.internal.federatedml.v2.ServerStreamMessage.checkin_request_ack)
1438 }
set_allocated_eligibility_eval_checkin_response(::google::internal::federatedml::v2::EligibilityEvalCheckinResponse * eligibility_eval_checkin_response)1439 void ServerStreamMessage::set_allocated_eligibility_eval_checkin_response(::google::internal::federatedml::v2::EligibilityEvalCheckinResponse* eligibility_eval_checkin_response) {
1440   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1441   clear_kind();
1442   if (eligibility_eval_checkin_response) {
1443     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1444       ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(eligibility_eval_checkin_response);
1445     if (message_arena != submessage_arena) {
1446       eligibility_eval_checkin_response = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1447           message_arena, eligibility_eval_checkin_response, submessage_arena);
1448     }
1449     set_has_eligibility_eval_checkin_response();
1450     _impl_.kind_.eligibility_eval_checkin_response_ = eligibility_eval_checkin_response;
1451   }
1452   // @@protoc_insertion_point(field_set_allocated:google.internal.federatedml.v2.ServerStreamMessage.eligibility_eval_checkin_response)
1453 }
clear_secure_aggregation_server_message()1454 void ServerStreamMessage::clear_secure_aggregation_server_message() {
1455   if (GetArenaForAllocation() == nullptr && _impl_.secure_aggregation_server_message_ != nullptr) {
1456     delete _impl_.secure_aggregation_server_message_;
1457   }
1458   _impl_.secure_aggregation_server_message_ = nullptr;
1459 }
ServerStreamMessage(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)1460 ServerStreamMessage::ServerStreamMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1461                          bool is_message_owned)
1462   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
1463   SharedCtor(arena, is_message_owned);
1464   // @@protoc_insertion_point(arena_constructor:google.internal.federatedml.v2.ServerStreamMessage)
1465 }
ServerStreamMessage(const ServerStreamMessage & from)1466 ServerStreamMessage::ServerStreamMessage(const ServerStreamMessage& from)
1467   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
1468   ServerStreamMessage* const _this = this; (void)_this;
1469   new (&_impl_) Impl_{
1470       decltype(_impl_.secure_aggregation_server_message_){nullptr}
1471     , decltype(_impl_.kind_){}
1472     , /*decltype(_impl_._cached_size_)*/{}
1473     , /*decltype(_impl_._oneof_case_)*/{}};
1474 
1475   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
1476   if (from._internal_has_secure_aggregation_server_message()) {
1477     _this->_impl_.secure_aggregation_server_message_ = new ::fcp::secagg::ServerToClientWrapperMessage(*from._impl_.secure_aggregation_server_message_);
1478   }
1479   clear_has_kind();
1480   switch (from.kind_case()) {
1481     case kCheckinResponse: {
1482       _this->_internal_mutable_checkin_response()->::google::internal::federatedml::v2::CheckinResponse::MergeFrom(
1483           from._internal_checkin_response());
1484       break;
1485     }
1486     case kReportResponse: {
1487       _this->_internal_mutable_report_response()->::google::internal::federatedml::v2::ReportResponse::MergeFrom(
1488           from._internal_report_response());
1489       break;
1490     }
1491     case kChunkedTransfer: {
1492       _this->_internal_mutable_chunked_transfer()->::google::internal::federatedml::v2::ChunkedTransferMessage::MergeFrom(
1493           from._internal_chunked_transfer());
1494       break;
1495     }
1496     case kCheckinRequestAck: {
1497       _this->_internal_mutable_checkin_request_ack()->::google::internal::federatedml::v2::CheckinRequestAck::MergeFrom(
1498           from._internal_checkin_request_ack());
1499       break;
1500     }
1501     case kEligibilityEvalCheckinResponse: {
1502       _this->_internal_mutable_eligibility_eval_checkin_response()->::google::internal::federatedml::v2::EligibilityEvalCheckinResponse::MergeFrom(
1503           from._internal_eligibility_eval_checkin_response());
1504       break;
1505     }
1506     case KIND_NOT_SET: {
1507       break;
1508     }
1509   }
1510   // @@protoc_insertion_point(copy_constructor:google.internal.federatedml.v2.ServerStreamMessage)
1511 }
1512 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)1513 inline void ServerStreamMessage::SharedCtor(
1514     ::_pb::Arena* arena, bool is_message_owned) {
1515   (void)arena;
1516   (void)is_message_owned;
1517   new (&_impl_) Impl_{
1518       decltype(_impl_.secure_aggregation_server_message_){nullptr}
1519     , decltype(_impl_.kind_){}
1520     , /*decltype(_impl_._cached_size_)*/{}
1521     , /*decltype(_impl_._oneof_case_)*/{}
1522   };
1523   clear_has_kind();
1524 }
1525 
~ServerStreamMessage()1526 ServerStreamMessage::~ServerStreamMessage() {
1527   // @@protoc_insertion_point(destructor:google.internal.federatedml.v2.ServerStreamMessage)
1528   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
1529   (void)arena;
1530     return;
1531   }
1532   SharedDtor();
1533 }
1534 
SharedDtor()1535 inline void ServerStreamMessage::SharedDtor() {
1536   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1537   if (this != internal_default_instance()) delete _impl_.secure_aggregation_server_message_;
1538   if (has_kind()) {
1539     clear_kind();
1540   }
1541 }
1542 
SetCachedSize(int size) const1543 void ServerStreamMessage::SetCachedSize(int size) const {
1544   _impl_._cached_size_.Set(size);
1545 }
1546 
clear_kind()1547 void ServerStreamMessage::clear_kind() {
1548 // @@protoc_insertion_point(one_of_clear_start:google.internal.federatedml.v2.ServerStreamMessage)
1549   switch (kind_case()) {
1550     case kCheckinResponse: {
1551       if (GetArenaForAllocation() == nullptr) {
1552         delete _impl_.kind_.checkin_response_;
1553       }
1554       break;
1555     }
1556     case kReportResponse: {
1557       if (GetArenaForAllocation() == nullptr) {
1558         delete _impl_.kind_.report_response_;
1559       }
1560       break;
1561     }
1562     case kChunkedTransfer: {
1563       if (GetArenaForAllocation() == nullptr) {
1564         delete _impl_.kind_.chunked_transfer_;
1565       }
1566       break;
1567     }
1568     case kCheckinRequestAck: {
1569       if (GetArenaForAllocation() == nullptr) {
1570         delete _impl_.kind_.checkin_request_ack_;
1571       }
1572       break;
1573     }
1574     case kEligibilityEvalCheckinResponse: {
1575       if (GetArenaForAllocation() == nullptr) {
1576         delete _impl_.kind_.eligibility_eval_checkin_response_;
1577       }
1578       break;
1579     }
1580     case KIND_NOT_SET: {
1581       break;
1582     }
1583   }
1584   _impl_._oneof_case_[0] = KIND_NOT_SET;
1585 }
1586 
1587 
Clear()1588 void ServerStreamMessage::Clear() {
1589 // @@protoc_insertion_point(message_clear_start:google.internal.federatedml.v2.ServerStreamMessage)
1590   ::uint32_t cached_has_bits = 0;
1591   // Prevent compiler warnings about cached_has_bits being unused
1592   (void) cached_has_bits;
1593 
1594   if (GetArenaForAllocation() == nullptr && _impl_.secure_aggregation_server_message_ != nullptr) {
1595     delete _impl_.secure_aggregation_server_message_;
1596   }
1597   _impl_.secure_aggregation_server_message_ = nullptr;
1598   clear_kind();
1599   _internal_metadata_.Clear<std::string>();
1600 }
1601 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)1602 const char* ServerStreamMessage::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
1603 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1604   while (!ctx->Done(&ptr)) {
1605     ::uint32_t tag;
1606     ptr = ::_pbi::ReadTag(ptr, &tag);
1607     switch (tag >> 3) {
1608       // .google.internal.federatedml.v2.CheckinResponse checkin_response = 1;
1609       case 1:
1610         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
1611           ptr = ctx->ParseMessage(_internal_mutable_checkin_response(), ptr);
1612           CHK_(ptr);
1613         } else {
1614           goto handle_unusual;
1615         }
1616         continue;
1617       // .google.internal.federatedml.v2.ReportResponse report_response = 2;
1618       case 2:
1619         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
1620           ptr = ctx->ParseMessage(_internal_mutable_report_response(), ptr);
1621           CHK_(ptr);
1622         } else {
1623           goto handle_unusual;
1624         }
1625         continue;
1626       // .fcp.secagg.ServerToClientWrapperMessage secure_aggregation_server_message = 3;
1627       case 3:
1628         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
1629           ptr = ctx->ParseMessage(_internal_mutable_secure_aggregation_server_message(), ptr);
1630           CHK_(ptr);
1631         } else {
1632           goto handle_unusual;
1633         }
1634         continue;
1635       // .google.internal.federatedml.v2.ChunkedTransferMessage chunked_transfer = 4;
1636       case 4:
1637         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
1638           ptr = ctx->ParseMessage(_internal_mutable_chunked_transfer(), ptr);
1639           CHK_(ptr);
1640         } else {
1641           goto handle_unusual;
1642         }
1643         continue;
1644       // .google.internal.federatedml.v2.CheckinRequestAck checkin_request_ack = 5;
1645       case 5:
1646         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
1647           ptr = ctx->ParseMessage(_internal_mutable_checkin_request_ack(), ptr);
1648           CHK_(ptr);
1649         } else {
1650           goto handle_unusual;
1651         }
1652         continue;
1653       // .google.internal.federatedml.v2.EligibilityEvalCheckinResponse eligibility_eval_checkin_response = 6;
1654       case 6:
1655         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) {
1656           ptr = ctx->ParseMessage(_internal_mutable_eligibility_eval_checkin_response(), ptr);
1657           CHK_(ptr);
1658         } else {
1659           goto handle_unusual;
1660         }
1661         continue;
1662       default:
1663         goto handle_unusual;
1664     }  // switch
1665   handle_unusual:
1666     if ((tag == 0) || ((tag & 7) == 4)) {
1667       CHK_(ptr);
1668       ctx->SetLastTag(tag);
1669       goto message_done;
1670     }
1671     ptr = UnknownFieldParse(
1672         tag,
1673         _internal_metadata_.mutable_unknown_fields<std::string>(),
1674         ptr, ctx);
1675     CHK_(ptr != nullptr);
1676   }  // while
1677 message_done:
1678   return ptr;
1679 failure:
1680   ptr = nullptr;
1681   goto message_done;
1682 #undef CHK_
1683 }
1684 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const1685 ::uint8_t* ServerStreamMessage::_InternalSerialize(
1686     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1687   // @@protoc_insertion_point(serialize_to_array_start:google.internal.federatedml.v2.ServerStreamMessage)
1688   ::uint32_t cached_has_bits = 0;
1689   (void) cached_has_bits;
1690 
1691   // .google.internal.federatedml.v2.CheckinResponse checkin_response = 1;
1692   if (_internal_has_checkin_response()) {
1693     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1694       InternalWriteMessage(1, _Internal::checkin_response(this),
1695         _Internal::checkin_response(this).GetCachedSize(), target, stream);
1696   }
1697 
1698   // .google.internal.federatedml.v2.ReportResponse report_response = 2;
1699   if (_internal_has_report_response()) {
1700     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1701       InternalWriteMessage(2, _Internal::report_response(this),
1702         _Internal::report_response(this).GetCachedSize(), target, stream);
1703   }
1704 
1705   // .fcp.secagg.ServerToClientWrapperMessage secure_aggregation_server_message = 3;
1706   if (this->_internal_has_secure_aggregation_server_message()) {
1707     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1708       InternalWriteMessage(3, _Internal::secure_aggregation_server_message(this),
1709         _Internal::secure_aggregation_server_message(this).GetCachedSize(), target, stream);
1710   }
1711 
1712   // .google.internal.federatedml.v2.ChunkedTransferMessage chunked_transfer = 4;
1713   if (_internal_has_chunked_transfer()) {
1714     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1715       InternalWriteMessage(4, _Internal::chunked_transfer(this),
1716         _Internal::chunked_transfer(this).GetCachedSize(), target, stream);
1717   }
1718 
1719   // .google.internal.federatedml.v2.CheckinRequestAck checkin_request_ack = 5;
1720   if (_internal_has_checkin_request_ack()) {
1721     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1722       InternalWriteMessage(5, _Internal::checkin_request_ack(this),
1723         _Internal::checkin_request_ack(this).GetCachedSize(), target, stream);
1724   }
1725 
1726   // .google.internal.federatedml.v2.EligibilityEvalCheckinResponse eligibility_eval_checkin_response = 6;
1727   if (_internal_has_eligibility_eval_checkin_response()) {
1728     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1729       InternalWriteMessage(6, _Internal::eligibility_eval_checkin_response(this),
1730         _Internal::eligibility_eval_checkin_response(this).GetCachedSize(), target, stream);
1731   }
1732 
1733   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1734     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
1735         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
1736   }
1737   // @@protoc_insertion_point(serialize_to_array_end:google.internal.federatedml.v2.ServerStreamMessage)
1738   return target;
1739 }
1740 
ByteSizeLong() const1741 size_t ServerStreamMessage::ByteSizeLong() const {
1742 // @@protoc_insertion_point(message_byte_size_start:google.internal.federatedml.v2.ServerStreamMessage)
1743   size_t total_size = 0;
1744 
1745   ::uint32_t cached_has_bits = 0;
1746   // Prevent compiler warnings about cached_has_bits being unused
1747   (void) cached_has_bits;
1748 
1749   // .fcp.secagg.ServerToClientWrapperMessage secure_aggregation_server_message = 3;
1750   if (this->_internal_has_secure_aggregation_server_message()) {
1751     total_size += 1 +
1752       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1753         *_impl_.secure_aggregation_server_message_);
1754   }
1755 
1756   switch (kind_case()) {
1757     // .google.internal.federatedml.v2.CheckinResponse checkin_response = 1;
1758     case kCheckinResponse: {
1759       total_size += 1 +
1760         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1761           *_impl_.kind_.checkin_response_);
1762       break;
1763     }
1764     // .google.internal.federatedml.v2.ReportResponse report_response = 2;
1765     case kReportResponse: {
1766       total_size += 1 +
1767         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1768           *_impl_.kind_.report_response_);
1769       break;
1770     }
1771     // .google.internal.federatedml.v2.ChunkedTransferMessage chunked_transfer = 4;
1772     case kChunkedTransfer: {
1773       total_size += 1 +
1774         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1775           *_impl_.kind_.chunked_transfer_);
1776       break;
1777     }
1778     // .google.internal.federatedml.v2.CheckinRequestAck checkin_request_ack = 5;
1779     case kCheckinRequestAck: {
1780       total_size += 1 +
1781         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1782           *_impl_.kind_.checkin_request_ack_);
1783       break;
1784     }
1785     // .google.internal.federatedml.v2.EligibilityEvalCheckinResponse eligibility_eval_checkin_response = 6;
1786     case kEligibilityEvalCheckinResponse: {
1787       total_size += 1 +
1788         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1789           *_impl_.kind_.eligibility_eval_checkin_response_);
1790       break;
1791     }
1792     case KIND_NOT_SET: {
1793       break;
1794     }
1795   }
1796   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1797     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
1798   }
1799   int cached_size = ::_pbi::ToCachedSize(total_size);
1800   SetCachedSize(cached_size);
1801   return total_size;
1802 }
1803 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)1804 void ServerStreamMessage::CheckTypeAndMergeFrom(
1805     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
1806   MergeFrom(*::_pbi::DownCast<const ServerStreamMessage*>(
1807       &from));
1808 }
1809 
MergeFrom(const ServerStreamMessage & from)1810 void ServerStreamMessage::MergeFrom(const ServerStreamMessage& from) {
1811   ServerStreamMessage* const _this = this;
1812   // @@protoc_insertion_point(class_specific_merge_from_start:google.internal.federatedml.v2.ServerStreamMessage)
1813   GOOGLE_DCHECK_NE(&from, _this);
1814   ::uint32_t cached_has_bits = 0;
1815   (void) cached_has_bits;
1816 
1817   if (from._internal_has_secure_aggregation_server_message()) {
1818     _this->_internal_mutable_secure_aggregation_server_message()->::fcp::secagg::ServerToClientWrapperMessage::MergeFrom(
1819         from._internal_secure_aggregation_server_message());
1820   }
1821   switch (from.kind_case()) {
1822     case kCheckinResponse: {
1823       _this->_internal_mutable_checkin_response()->::google::internal::federatedml::v2::CheckinResponse::MergeFrom(
1824           from._internal_checkin_response());
1825       break;
1826     }
1827     case kReportResponse: {
1828       _this->_internal_mutable_report_response()->::google::internal::federatedml::v2::ReportResponse::MergeFrom(
1829           from._internal_report_response());
1830       break;
1831     }
1832     case kChunkedTransfer: {
1833       _this->_internal_mutable_chunked_transfer()->::google::internal::federatedml::v2::ChunkedTransferMessage::MergeFrom(
1834           from._internal_chunked_transfer());
1835       break;
1836     }
1837     case kCheckinRequestAck: {
1838       _this->_internal_mutable_checkin_request_ack()->::google::internal::federatedml::v2::CheckinRequestAck::MergeFrom(
1839           from._internal_checkin_request_ack());
1840       break;
1841     }
1842     case kEligibilityEvalCheckinResponse: {
1843       _this->_internal_mutable_eligibility_eval_checkin_response()->::google::internal::federatedml::v2::EligibilityEvalCheckinResponse::MergeFrom(
1844           from._internal_eligibility_eval_checkin_response());
1845       break;
1846     }
1847     case KIND_NOT_SET: {
1848       break;
1849     }
1850   }
1851   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
1852 }
1853 
CopyFrom(const ServerStreamMessage & from)1854 void ServerStreamMessage::CopyFrom(const ServerStreamMessage& from) {
1855 // @@protoc_insertion_point(class_specific_copy_from_start:google.internal.federatedml.v2.ServerStreamMessage)
1856   if (&from == this) return;
1857   Clear();
1858   MergeFrom(from);
1859 }
1860 
IsInitialized() const1861 bool ServerStreamMessage::IsInitialized() const {
1862   return true;
1863 }
1864 
InternalSwap(ServerStreamMessage * other)1865 void ServerStreamMessage::InternalSwap(ServerStreamMessage* other) {
1866   using std::swap;
1867   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1868   swap(_impl_.secure_aggregation_server_message_, other->_impl_.secure_aggregation_server_message_);
1869   swap(_impl_.kind_, other->_impl_.kind_);
1870   swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
1871 }
1872 
GetTypeName() const1873 std::string ServerStreamMessage::GetTypeName() const {
1874   return "google.internal.federatedml.v2.ServerStreamMessage";
1875 }
1876 
1877 
1878 // ===================================================================
1879 
1880 class CheckinRequest::_Internal {
1881  public:
1882   static const ::google::internal::federatedml::v2::ProtocolOptionsRequest& protocol_options_request(const CheckinRequest* msg);
1883   static const ::google::internal::federatedml::v2::TaskEligibilityInfo& task_eligibility_info(const CheckinRequest* msg);
1884 };
1885 
1886 const ::google::internal::federatedml::v2::ProtocolOptionsRequest&
protocol_options_request(const CheckinRequest * msg)1887 CheckinRequest::_Internal::protocol_options_request(const CheckinRequest* msg) {
1888   return *msg->_impl_.protocol_options_request_;
1889 }
1890 const ::google::internal::federatedml::v2::TaskEligibilityInfo&
task_eligibility_info(const CheckinRequest * msg)1891 CheckinRequest::_Internal::task_eligibility_info(const CheckinRequest* msg) {
1892   return *msg->_impl_.task_eligibility_info_;
1893 }
CheckinRequest(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)1894 CheckinRequest::CheckinRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1895                          bool is_message_owned)
1896   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
1897   SharedCtor(arena, is_message_owned);
1898   // @@protoc_insertion_point(arena_constructor:google.internal.federatedml.v2.CheckinRequest)
1899 }
CheckinRequest(const CheckinRequest & from)1900 CheckinRequest::CheckinRequest(const CheckinRequest& from)
1901   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
1902   CheckinRequest* const _this = this; (void)_this;
1903   new (&_impl_) Impl_{
1904       decltype(_impl_.population_name_){}
1905     , decltype(_impl_.retry_token_){}
1906     , decltype(_impl_.attestation_measurement_){}
1907     , decltype(_impl_.client_version_){}
1908     , decltype(_impl_.protocol_options_request_){nullptr}
1909     , decltype(_impl_.task_eligibility_info_){nullptr}
1910     , /*decltype(_impl_._cached_size_)*/{}};
1911 
1912   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
1913   _impl_.population_name_.InitDefault();
1914   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1915     _impl_.population_name_.Set("", GetArenaForAllocation());
1916   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1917   if (!from._internal_population_name().empty()) {
1918     _this->_impl_.population_name_.Set(from._internal_population_name(),
1919       _this->GetArenaForAllocation());
1920   }
1921   _impl_.retry_token_.InitDefault();
1922   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1923     _impl_.retry_token_.Set("", GetArenaForAllocation());
1924   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1925   if (!from._internal_retry_token().empty()) {
1926     _this->_impl_.retry_token_.Set(from._internal_retry_token(),
1927       _this->GetArenaForAllocation());
1928   }
1929   _impl_.attestation_measurement_.InitDefault();
1930   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1931     _impl_.attestation_measurement_.Set("", GetArenaForAllocation());
1932   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1933   if (!from._internal_attestation_measurement().empty()) {
1934     _this->_impl_.attestation_measurement_.Set(from._internal_attestation_measurement(),
1935       _this->GetArenaForAllocation());
1936   }
1937   _impl_.client_version_.InitDefault();
1938   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1939     _impl_.client_version_.Set("", GetArenaForAllocation());
1940   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1941   if (!from._internal_client_version().empty()) {
1942     _this->_impl_.client_version_.Set(from._internal_client_version(),
1943       _this->GetArenaForAllocation());
1944   }
1945   if (from._internal_has_protocol_options_request()) {
1946     _this->_impl_.protocol_options_request_ = new ::google::internal::federatedml::v2::ProtocolOptionsRequest(*from._impl_.protocol_options_request_);
1947   }
1948   if (from._internal_has_task_eligibility_info()) {
1949     _this->_impl_.task_eligibility_info_ = new ::google::internal::federatedml::v2::TaskEligibilityInfo(*from._impl_.task_eligibility_info_);
1950   }
1951   // @@protoc_insertion_point(copy_constructor:google.internal.federatedml.v2.CheckinRequest)
1952 }
1953 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)1954 inline void CheckinRequest::SharedCtor(
1955     ::_pb::Arena* arena, bool is_message_owned) {
1956   (void)arena;
1957   (void)is_message_owned;
1958   new (&_impl_) Impl_{
1959       decltype(_impl_.population_name_){}
1960     , decltype(_impl_.retry_token_){}
1961     , decltype(_impl_.attestation_measurement_){}
1962     , decltype(_impl_.client_version_){}
1963     , decltype(_impl_.protocol_options_request_){nullptr}
1964     , decltype(_impl_.task_eligibility_info_){nullptr}
1965     , /*decltype(_impl_._cached_size_)*/{}
1966   };
1967   _impl_.population_name_.InitDefault();
1968   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1969     _impl_.population_name_.Set("", GetArenaForAllocation());
1970   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1971   _impl_.retry_token_.InitDefault();
1972   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1973     _impl_.retry_token_.Set("", GetArenaForAllocation());
1974   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1975   _impl_.attestation_measurement_.InitDefault();
1976   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1977     _impl_.attestation_measurement_.Set("", GetArenaForAllocation());
1978   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1979   _impl_.client_version_.InitDefault();
1980   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1981     _impl_.client_version_.Set("", GetArenaForAllocation());
1982   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1983 }
1984 
~CheckinRequest()1985 CheckinRequest::~CheckinRequest() {
1986   // @@protoc_insertion_point(destructor:google.internal.federatedml.v2.CheckinRequest)
1987   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
1988   (void)arena;
1989     return;
1990   }
1991   SharedDtor();
1992 }
1993 
SharedDtor()1994 inline void CheckinRequest::SharedDtor() {
1995   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1996   _impl_.population_name_.Destroy();
1997   _impl_.retry_token_.Destroy();
1998   _impl_.attestation_measurement_.Destroy();
1999   _impl_.client_version_.Destroy();
2000   if (this != internal_default_instance()) delete _impl_.protocol_options_request_;
2001   if (this != internal_default_instance()) delete _impl_.task_eligibility_info_;
2002 }
2003 
SetCachedSize(int size) const2004 void CheckinRequest::SetCachedSize(int size) const {
2005   _impl_._cached_size_.Set(size);
2006 }
2007 
Clear()2008 void CheckinRequest::Clear() {
2009 // @@protoc_insertion_point(message_clear_start:google.internal.federatedml.v2.CheckinRequest)
2010   ::uint32_t cached_has_bits = 0;
2011   // Prevent compiler warnings about cached_has_bits being unused
2012   (void) cached_has_bits;
2013 
2014   _impl_.population_name_.ClearToEmpty();
2015   _impl_.retry_token_.ClearToEmpty();
2016   _impl_.attestation_measurement_.ClearToEmpty();
2017   _impl_.client_version_.ClearToEmpty();
2018   if (GetArenaForAllocation() == nullptr && _impl_.protocol_options_request_ != nullptr) {
2019     delete _impl_.protocol_options_request_;
2020   }
2021   _impl_.protocol_options_request_ = nullptr;
2022   if (GetArenaForAllocation() == nullptr && _impl_.task_eligibility_info_ != nullptr) {
2023     delete _impl_.task_eligibility_info_;
2024   }
2025   _impl_.task_eligibility_info_ = nullptr;
2026   _internal_metadata_.Clear<std::string>();
2027 }
2028 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)2029 const char* CheckinRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
2030 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2031   while (!ctx->Done(&ptr)) {
2032     ::uint32_t tag;
2033     ptr = ::_pbi::ReadTag(ptr, &tag);
2034     switch (tag >> 3) {
2035       // string population_name = 1;
2036       case 1:
2037         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
2038           auto str = _internal_mutable_population_name();
2039           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
2040           CHK_(ptr);
2041           CHK_(::_pbi::VerifyUTF8(str, nullptr));
2042         } else {
2043           goto handle_unusual;
2044         }
2045         continue;
2046       // string retry_token = 2;
2047       case 2:
2048         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
2049           auto str = _internal_mutable_retry_token();
2050           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
2051           CHK_(ptr);
2052           CHK_(::_pbi::VerifyUTF8(str, nullptr));
2053         } else {
2054           goto handle_unusual;
2055         }
2056         continue;
2057       // string attestation_measurement = 4;
2058       case 4:
2059         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
2060           auto str = _internal_mutable_attestation_measurement();
2061           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
2062           CHK_(ptr);
2063           CHK_(::_pbi::VerifyUTF8(str, nullptr));
2064         } else {
2065           goto handle_unusual;
2066         }
2067         continue;
2068       // .google.internal.federatedml.v2.ProtocolOptionsRequest protocol_options_request = 5;
2069       case 5:
2070         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
2071           ptr = ctx->ParseMessage(_internal_mutable_protocol_options_request(), ptr);
2072           CHK_(ptr);
2073         } else {
2074           goto handle_unusual;
2075         }
2076         continue;
2077       // string client_version = 6;
2078       case 6:
2079         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) {
2080           auto str = _internal_mutable_client_version();
2081           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
2082           CHK_(ptr);
2083           CHK_(::_pbi::VerifyUTF8(str, nullptr));
2084         } else {
2085           goto handle_unusual;
2086         }
2087         continue;
2088       // .google.internal.federatedml.v2.TaskEligibilityInfo task_eligibility_info = 7;
2089       case 7:
2090         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) {
2091           ptr = ctx->ParseMessage(_internal_mutable_task_eligibility_info(), ptr);
2092           CHK_(ptr);
2093         } else {
2094           goto handle_unusual;
2095         }
2096         continue;
2097       default:
2098         goto handle_unusual;
2099     }  // switch
2100   handle_unusual:
2101     if ((tag == 0) || ((tag & 7) == 4)) {
2102       CHK_(ptr);
2103       ctx->SetLastTag(tag);
2104       goto message_done;
2105     }
2106     ptr = UnknownFieldParse(
2107         tag,
2108         _internal_metadata_.mutable_unknown_fields<std::string>(),
2109         ptr, ctx);
2110     CHK_(ptr != nullptr);
2111   }  // while
2112 message_done:
2113   return ptr;
2114 failure:
2115   ptr = nullptr;
2116   goto message_done;
2117 #undef CHK_
2118 }
2119 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const2120 ::uint8_t* CheckinRequest::_InternalSerialize(
2121     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
2122   // @@protoc_insertion_point(serialize_to_array_start:google.internal.federatedml.v2.CheckinRequest)
2123   ::uint32_t cached_has_bits = 0;
2124   (void) cached_has_bits;
2125 
2126   // string population_name = 1;
2127   if (!this->_internal_population_name().empty()) {
2128     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2129       this->_internal_population_name().data(), static_cast<int>(this->_internal_population_name().length()),
2130       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2131       "google.internal.federatedml.v2.CheckinRequest.population_name");
2132     target = stream->WriteStringMaybeAliased(
2133         1, this->_internal_population_name(), target);
2134   }
2135 
2136   // string retry_token = 2;
2137   if (!this->_internal_retry_token().empty()) {
2138     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2139       this->_internal_retry_token().data(), static_cast<int>(this->_internal_retry_token().length()),
2140       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2141       "google.internal.federatedml.v2.CheckinRequest.retry_token");
2142     target = stream->WriteStringMaybeAliased(
2143         2, this->_internal_retry_token(), target);
2144   }
2145 
2146   // string attestation_measurement = 4;
2147   if (!this->_internal_attestation_measurement().empty()) {
2148     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2149       this->_internal_attestation_measurement().data(), static_cast<int>(this->_internal_attestation_measurement().length()),
2150       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2151       "google.internal.federatedml.v2.CheckinRequest.attestation_measurement");
2152     target = stream->WriteStringMaybeAliased(
2153         4, this->_internal_attestation_measurement(), target);
2154   }
2155 
2156   // .google.internal.federatedml.v2.ProtocolOptionsRequest protocol_options_request = 5;
2157   if (this->_internal_has_protocol_options_request()) {
2158     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2159       InternalWriteMessage(5, _Internal::protocol_options_request(this),
2160         _Internal::protocol_options_request(this).GetCachedSize(), target, stream);
2161   }
2162 
2163   // string client_version = 6;
2164   if (!this->_internal_client_version().empty()) {
2165     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2166       this->_internal_client_version().data(), static_cast<int>(this->_internal_client_version().length()),
2167       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2168       "google.internal.federatedml.v2.CheckinRequest.client_version");
2169     target = stream->WriteStringMaybeAliased(
2170         6, this->_internal_client_version(), target);
2171   }
2172 
2173   // .google.internal.federatedml.v2.TaskEligibilityInfo task_eligibility_info = 7;
2174   if (this->_internal_has_task_eligibility_info()) {
2175     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2176       InternalWriteMessage(7, _Internal::task_eligibility_info(this),
2177         _Internal::task_eligibility_info(this).GetCachedSize(), target, stream);
2178   }
2179 
2180   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2181     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
2182         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
2183   }
2184   // @@protoc_insertion_point(serialize_to_array_end:google.internal.federatedml.v2.CheckinRequest)
2185   return target;
2186 }
2187 
ByteSizeLong() const2188 size_t CheckinRequest::ByteSizeLong() const {
2189 // @@protoc_insertion_point(message_byte_size_start:google.internal.federatedml.v2.CheckinRequest)
2190   size_t total_size = 0;
2191 
2192   ::uint32_t cached_has_bits = 0;
2193   // Prevent compiler warnings about cached_has_bits being unused
2194   (void) cached_has_bits;
2195 
2196   // string population_name = 1;
2197   if (!this->_internal_population_name().empty()) {
2198     total_size += 1 +
2199       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2200         this->_internal_population_name());
2201   }
2202 
2203   // string retry_token = 2;
2204   if (!this->_internal_retry_token().empty()) {
2205     total_size += 1 +
2206       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2207         this->_internal_retry_token());
2208   }
2209 
2210   // string attestation_measurement = 4;
2211   if (!this->_internal_attestation_measurement().empty()) {
2212     total_size += 1 +
2213       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2214         this->_internal_attestation_measurement());
2215   }
2216 
2217   // string client_version = 6;
2218   if (!this->_internal_client_version().empty()) {
2219     total_size += 1 +
2220       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2221         this->_internal_client_version());
2222   }
2223 
2224   // .google.internal.federatedml.v2.ProtocolOptionsRequest protocol_options_request = 5;
2225   if (this->_internal_has_protocol_options_request()) {
2226     total_size += 1 +
2227       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2228         *_impl_.protocol_options_request_);
2229   }
2230 
2231   // .google.internal.federatedml.v2.TaskEligibilityInfo task_eligibility_info = 7;
2232   if (this->_internal_has_task_eligibility_info()) {
2233     total_size += 1 +
2234       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2235         *_impl_.task_eligibility_info_);
2236   }
2237 
2238   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2239     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
2240   }
2241   int cached_size = ::_pbi::ToCachedSize(total_size);
2242   SetCachedSize(cached_size);
2243   return total_size;
2244 }
2245 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)2246 void CheckinRequest::CheckTypeAndMergeFrom(
2247     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
2248   MergeFrom(*::_pbi::DownCast<const CheckinRequest*>(
2249       &from));
2250 }
2251 
MergeFrom(const CheckinRequest & from)2252 void CheckinRequest::MergeFrom(const CheckinRequest& from) {
2253   CheckinRequest* const _this = this;
2254   // @@protoc_insertion_point(class_specific_merge_from_start:google.internal.federatedml.v2.CheckinRequest)
2255   GOOGLE_DCHECK_NE(&from, _this);
2256   ::uint32_t cached_has_bits = 0;
2257   (void) cached_has_bits;
2258 
2259   if (!from._internal_population_name().empty()) {
2260     _this->_internal_set_population_name(from._internal_population_name());
2261   }
2262   if (!from._internal_retry_token().empty()) {
2263     _this->_internal_set_retry_token(from._internal_retry_token());
2264   }
2265   if (!from._internal_attestation_measurement().empty()) {
2266     _this->_internal_set_attestation_measurement(from._internal_attestation_measurement());
2267   }
2268   if (!from._internal_client_version().empty()) {
2269     _this->_internal_set_client_version(from._internal_client_version());
2270   }
2271   if (from._internal_has_protocol_options_request()) {
2272     _this->_internal_mutable_protocol_options_request()->::google::internal::federatedml::v2::ProtocolOptionsRequest::MergeFrom(
2273         from._internal_protocol_options_request());
2274   }
2275   if (from._internal_has_task_eligibility_info()) {
2276     _this->_internal_mutable_task_eligibility_info()->::google::internal::federatedml::v2::TaskEligibilityInfo::MergeFrom(
2277         from._internal_task_eligibility_info());
2278   }
2279   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
2280 }
2281 
CopyFrom(const CheckinRequest & from)2282 void CheckinRequest::CopyFrom(const CheckinRequest& from) {
2283 // @@protoc_insertion_point(class_specific_copy_from_start:google.internal.federatedml.v2.CheckinRequest)
2284   if (&from == this) return;
2285   Clear();
2286   MergeFrom(from);
2287 }
2288 
IsInitialized() const2289 bool CheckinRequest::IsInitialized() const {
2290   return true;
2291 }
2292 
InternalSwap(CheckinRequest * other)2293 void CheckinRequest::InternalSwap(CheckinRequest* other) {
2294   using std::swap;
2295   auto* lhs_arena = GetArenaForAllocation();
2296   auto* rhs_arena = other->GetArenaForAllocation();
2297   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2298   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
2299       &_impl_.population_name_, lhs_arena,
2300       &other->_impl_.population_name_, rhs_arena
2301   );
2302   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
2303       &_impl_.retry_token_, lhs_arena,
2304       &other->_impl_.retry_token_, rhs_arena
2305   );
2306   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
2307       &_impl_.attestation_measurement_, lhs_arena,
2308       &other->_impl_.attestation_measurement_, rhs_arena
2309   );
2310   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
2311       &_impl_.client_version_, lhs_arena,
2312       &other->_impl_.client_version_, rhs_arena
2313   );
2314   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
2315       PROTOBUF_FIELD_OFFSET(CheckinRequest, _impl_.task_eligibility_info_)
2316       + sizeof(CheckinRequest::_impl_.task_eligibility_info_)  // NOLINT
2317       - PROTOBUF_FIELD_OFFSET(CheckinRequest, _impl_.protocol_options_request_)>(
2318           reinterpret_cast<char*>(&_impl_.protocol_options_request_),
2319           reinterpret_cast<char*>(&other->_impl_.protocol_options_request_));
2320 }
2321 
GetTypeName() const2322 std::string CheckinRequest::GetTypeName() const {
2323   return "google.internal.federatedml.v2.CheckinRequest";
2324 }
2325 
2326 
2327 // ===================================================================
2328 
2329 class TaskEligibilityInfo::_Internal {
2330  public:
2331 };
2332 
TaskEligibilityInfo(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)2333 TaskEligibilityInfo::TaskEligibilityInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2334                          bool is_message_owned)
2335   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
2336   SharedCtor(arena, is_message_owned);
2337   // @@protoc_insertion_point(arena_constructor:google.internal.federatedml.v2.TaskEligibilityInfo)
2338 }
TaskEligibilityInfo(const TaskEligibilityInfo & from)2339 TaskEligibilityInfo::TaskEligibilityInfo(const TaskEligibilityInfo& from)
2340   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
2341   TaskEligibilityInfo* const _this = this; (void)_this;
2342   new (&_impl_) Impl_{
2343       decltype(_impl_.task_weights_){from._impl_.task_weights_}
2344     , decltype(_impl_.version_){}
2345     , /*decltype(_impl_._cached_size_)*/{}};
2346 
2347   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
2348   _this->_impl_.version_ = from._impl_.version_;
2349   // @@protoc_insertion_point(copy_constructor:google.internal.federatedml.v2.TaskEligibilityInfo)
2350 }
2351 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)2352 inline void TaskEligibilityInfo::SharedCtor(
2353     ::_pb::Arena* arena, bool is_message_owned) {
2354   (void)arena;
2355   (void)is_message_owned;
2356   new (&_impl_) Impl_{
2357       decltype(_impl_.task_weights_){arena}
2358     , decltype(_impl_.version_){::int64_t{0}}
2359     , /*decltype(_impl_._cached_size_)*/{}
2360   };
2361 }
2362 
~TaskEligibilityInfo()2363 TaskEligibilityInfo::~TaskEligibilityInfo() {
2364   // @@protoc_insertion_point(destructor:google.internal.federatedml.v2.TaskEligibilityInfo)
2365   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
2366   (void)arena;
2367     return;
2368   }
2369   SharedDtor();
2370 }
2371 
SharedDtor()2372 inline void TaskEligibilityInfo::SharedDtor() {
2373   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
2374   _impl_.task_weights_.~RepeatedPtrField();
2375 }
2376 
SetCachedSize(int size) const2377 void TaskEligibilityInfo::SetCachedSize(int size) const {
2378   _impl_._cached_size_.Set(size);
2379 }
2380 
Clear()2381 void TaskEligibilityInfo::Clear() {
2382 // @@protoc_insertion_point(message_clear_start:google.internal.federatedml.v2.TaskEligibilityInfo)
2383   ::uint32_t cached_has_bits = 0;
2384   // Prevent compiler warnings about cached_has_bits being unused
2385   (void) cached_has_bits;
2386 
2387   _impl_.task_weights_.Clear();
2388   _impl_.version_ = ::int64_t{0};
2389   _internal_metadata_.Clear<std::string>();
2390 }
2391 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)2392 const char* TaskEligibilityInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
2393 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2394   while (!ctx->Done(&ptr)) {
2395     ::uint32_t tag;
2396     ptr = ::_pbi::ReadTag(ptr, &tag);
2397     switch (tag >> 3) {
2398       // int64 version = 1;
2399       case 1:
2400         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
2401           _impl_.version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
2402           CHK_(ptr);
2403         } else {
2404           goto handle_unusual;
2405         }
2406         continue;
2407       // repeated .google.internal.federatedml.v2.TaskWeight task_weights = 2;
2408       case 2:
2409         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
2410           ptr -= 1;
2411           do {
2412             ptr += 1;
2413             ptr = ctx->ParseMessage(_internal_add_task_weights(), ptr);
2414             CHK_(ptr);
2415             if (!ctx->DataAvailable(ptr)) break;
2416           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
2417         } else {
2418           goto handle_unusual;
2419         }
2420         continue;
2421       default:
2422         goto handle_unusual;
2423     }  // switch
2424   handle_unusual:
2425     if ((tag == 0) || ((tag & 7) == 4)) {
2426       CHK_(ptr);
2427       ctx->SetLastTag(tag);
2428       goto message_done;
2429     }
2430     ptr = UnknownFieldParse(
2431         tag,
2432         _internal_metadata_.mutable_unknown_fields<std::string>(),
2433         ptr, ctx);
2434     CHK_(ptr != nullptr);
2435   }  // while
2436 message_done:
2437   return ptr;
2438 failure:
2439   ptr = nullptr;
2440   goto message_done;
2441 #undef CHK_
2442 }
2443 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const2444 ::uint8_t* TaskEligibilityInfo::_InternalSerialize(
2445     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
2446   // @@protoc_insertion_point(serialize_to_array_start:google.internal.federatedml.v2.TaskEligibilityInfo)
2447   ::uint32_t cached_has_bits = 0;
2448   (void) cached_has_bits;
2449 
2450   // int64 version = 1;
2451   if (this->_internal_version() != 0) {
2452     target = stream->EnsureSpace(target);
2453     target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_version(), target);
2454   }
2455 
2456   // repeated .google.internal.federatedml.v2.TaskWeight task_weights = 2;
2457   for (unsigned i = 0,
2458       n = static_cast<unsigned>(this->_internal_task_weights_size()); i < n; i++) {
2459     const auto& repfield = this->_internal_task_weights(i);
2460     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2461         InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream);
2462   }
2463 
2464   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2465     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
2466         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
2467   }
2468   // @@protoc_insertion_point(serialize_to_array_end:google.internal.federatedml.v2.TaskEligibilityInfo)
2469   return target;
2470 }
2471 
ByteSizeLong() const2472 size_t TaskEligibilityInfo::ByteSizeLong() const {
2473 // @@protoc_insertion_point(message_byte_size_start:google.internal.federatedml.v2.TaskEligibilityInfo)
2474   size_t total_size = 0;
2475 
2476   ::uint32_t cached_has_bits = 0;
2477   // Prevent compiler warnings about cached_has_bits being unused
2478   (void) cached_has_bits;
2479 
2480   // repeated .google.internal.federatedml.v2.TaskWeight task_weights = 2;
2481   total_size += 1UL * this->_internal_task_weights_size();
2482   for (const auto& msg : this->_impl_.task_weights_) {
2483     total_size +=
2484       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
2485   }
2486 
2487   // int64 version = 1;
2488   if (this->_internal_version() != 0) {
2489     total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_version());
2490   }
2491 
2492   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2493     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
2494   }
2495   int cached_size = ::_pbi::ToCachedSize(total_size);
2496   SetCachedSize(cached_size);
2497   return total_size;
2498 }
2499 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)2500 void TaskEligibilityInfo::CheckTypeAndMergeFrom(
2501     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
2502   MergeFrom(*::_pbi::DownCast<const TaskEligibilityInfo*>(
2503       &from));
2504 }
2505 
MergeFrom(const TaskEligibilityInfo & from)2506 void TaskEligibilityInfo::MergeFrom(const TaskEligibilityInfo& from) {
2507   TaskEligibilityInfo* const _this = this;
2508   // @@protoc_insertion_point(class_specific_merge_from_start:google.internal.federatedml.v2.TaskEligibilityInfo)
2509   GOOGLE_DCHECK_NE(&from, _this);
2510   ::uint32_t cached_has_bits = 0;
2511   (void) cached_has_bits;
2512 
2513   _this->_impl_.task_weights_.MergeFrom(from._impl_.task_weights_);
2514   if (from._internal_version() != 0) {
2515     _this->_internal_set_version(from._internal_version());
2516   }
2517   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
2518 }
2519 
CopyFrom(const TaskEligibilityInfo & from)2520 void TaskEligibilityInfo::CopyFrom(const TaskEligibilityInfo& from) {
2521 // @@protoc_insertion_point(class_specific_copy_from_start:google.internal.federatedml.v2.TaskEligibilityInfo)
2522   if (&from == this) return;
2523   Clear();
2524   MergeFrom(from);
2525 }
2526 
IsInitialized() const2527 bool TaskEligibilityInfo::IsInitialized() const {
2528   return true;
2529 }
2530 
InternalSwap(TaskEligibilityInfo * other)2531 void TaskEligibilityInfo::InternalSwap(TaskEligibilityInfo* other) {
2532   using std::swap;
2533   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2534   _impl_.task_weights_.InternalSwap(&other->_impl_.task_weights_);
2535   swap(_impl_.version_, other->_impl_.version_);
2536 }
2537 
GetTypeName() const2538 std::string TaskEligibilityInfo::GetTypeName() const {
2539   return "google.internal.federatedml.v2.TaskEligibilityInfo";
2540 }
2541 
2542 
2543 // ===================================================================
2544 
2545 class TaskWeight::_Internal {
2546  public:
2547 };
2548 
TaskWeight(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)2549 TaskWeight::TaskWeight(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2550                          bool is_message_owned)
2551   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
2552   SharedCtor(arena, is_message_owned);
2553   // @@protoc_insertion_point(arena_constructor:google.internal.federatedml.v2.TaskWeight)
2554 }
TaskWeight(const TaskWeight & from)2555 TaskWeight::TaskWeight(const TaskWeight& from)
2556   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
2557   TaskWeight* const _this = this; (void)_this;
2558   new (&_impl_) Impl_{
2559       decltype(_impl_.task_name_){}
2560     , decltype(_impl_.weight_){}
2561     , /*decltype(_impl_._cached_size_)*/{}};
2562 
2563   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
2564   _impl_.task_name_.InitDefault();
2565   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2566     _impl_.task_name_.Set("", GetArenaForAllocation());
2567   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
2568   if (!from._internal_task_name().empty()) {
2569     _this->_impl_.task_name_.Set(from._internal_task_name(),
2570       _this->GetArenaForAllocation());
2571   }
2572   _this->_impl_.weight_ = from._impl_.weight_;
2573   // @@protoc_insertion_point(copy_constructor:google.internal.federatedml.v2.TaskWeight)
2574 }
2575 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)2576 inline void TaskWeight::SharedCtor(
2577     ::_pb::Arena* arena, bool is_message_owned) {
2578   (void)arena;
2579   (void)is_message_owned;
2580   new (&_impl_) Impl_{
2581       decltype(_impl_.task_name_){}
2582     , decltype(_impl_.weight_){0}
2583     , /*decltype(_impl_._cached_size_)*/{}
2584   };
2585   _impl_.task_name_.InitDefault();
2586   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2587     _impl_.task_name_.Set("", GetArenaForAllocation());
2588   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
2589 }
2590 
~TaskWeight()2591 TaskWeight::~TaskWeight() {
2592   // @@protoc_insertion_point(destructor:google.internal.federatedml.v2.TaskWeight)
2593   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
2594   (void)arena;
2595     return;
2596   }
2597   SharedDtor();
2598 }
2599 
SharedDtor()2600 inline void TaskWeight::SharedDtor() {
2601   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
2602   _impl_.task_name_.Destroy();
2603 }
2604 
SetCachedSize(int size) const2605 void TaskWeight::SetCachedSize(int size) const {
2606   _impl_._cached_size_.Set(size);
2607 }
2608 
Clear()2609 void TaskWeight::Clear() {
2610 // @@protoc_insertion_point(message_clear_start:google.internal.federatedml.v2.TaskWeight)
2611   ::uint32_t cached_has_bits = 0;
2612   // Prevent compiler warnings about cached_has_bits being unused
2613   (void) cached_has_bits;
2614 
2615   _impl_.task_name_.ClearToEmpty();
2616   _impl_.weight_ = 0;
2617   _internal_metadata_.Clear<std::string>();
2618 }
2619 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)2620 const char* TaskWeight::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
2621 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2622   while (!ctx->Done(&ptr)) {
2623     ::uint32_t tag;
2624     ptr = ::_pbi::ReadTag(ptr, &tag);
2625     switch (tag >> 3) {
2626       // string task_name = 1;
2627       case 1:
2628         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
2629           auto str = _internal_mutable_task_name();
2630           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
2631           CHK_(ptr);
2632           CHK_(::_pbi::VerifyUTF8(str, nullptr));
2633         } else {
2634           goto handle_unusual;
2635         }
2636         continue;
2637       // float weight = 2;
2638       case 2:
2639         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 21)) {
2640           _impl_.weight_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
2641           ptr += sizeof(float);
2642         } else {
2643           goto handle_unusual;
2644         }
2645         continue;
2646       default:
2647         goto handle_unusual;
2648     }  // switch
2649   handle_unusual:
2650     if ((tag == 0) || ((tag & 7) == 4)) {
2651       CHK_(ptr);
2652       ctx->SetLastTag(tag);
2653       goto message_done;
2654     }
2655     ptr = UnknownFieldParse(
2656         tag,
2657         _internal_metadata_.mutable_unknown_fields<std::string>(),
2658         ptr, ctx);
2659     CHK_(ptr != nullptr);
2660   }  // while
2661 message_done:
2662   return ptr;
2663 failure:
2664   ptr = nullptr;
2665   goto message_done;
2666 #undef CHK_
2667 }
2668 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const2669 ::uint8_t* TaskWeight::_InternalSerialize(
2670     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
2671   // @@protoc_insertion_point(serialize_to_array_start:google.internal.federatedml.v2.TaskWeight)
2672   ::uint32_t cached_has_bits = 0;
2673   (void) cached_has_bits;
2674 
2675   // string task_name = 1;
2676   if (!this->_internal_task_name().empty()) {
2677     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2678       this->_internal_task_name().data(), static_cast<int>(this->_internal_task_name().length()),
2679       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2680       "google.internal.federatedml.v2.TaskWeight.task_name");
2681     target = stream->WriteStringMaybeAliased(
2682         1, this->_internal_task_name(), target);
2683   }
2684 
2685   // float weight = 2;
2686   static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
2687   float tmp_weight = this->_internal_weight();
2688   ::uint32_t raw_weight;
2689   memcpy(&raw_weight, &tmp_weight, sizeof(tmp_weight));
2690   if (raw_weight != 0) {
2691     target = stream->EnsureSpace(target);
2692     target = ::_pbi::WireFormatLite::WriteFloatToArray(2, this->_internal_weight(), target);
2693   }
2694 
2695   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2696     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
2697         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
2698   }
2699   // @@protoc_insertion_point(serialize_to_array_end:google.internal.federatedml.v2.TaskWeight)
2700   return target;
2701 }
2702 
ByteSizeLong() const2703 size_t TaskWeight::ByteSizeLong() const {
2704 // @@protoc_insertion_point(message_byte_size_start:google.internal.federatedml.v2.TaskWeight)
2705   size_t total_size = 0;
2706 
2707   ::uint32_t cached_has_bits = 0;
2708   // Prevent compiler warnings about cached_has_bits being unused
2709   (void) cached_has_bits;
2710 
2711   // string task_name = 1;
2712   if (!this->_internal_task_name().empty()) {
2713     total_size += 1 +
2714       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2715         this->_internal_task_name());
2716   }
2717 
2718   // float weight = 2;
2719   static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
2720   float tmp_weight = this->_internal_weight();
2721   ::uint32_t raw_weight;
2722   memcpy(&raw_weight, &tmp_weight, sizeof(tmp_weight));
2723   if (raw_weight != 0) {
2724     total_size += 1 + 4;
2725   }
2726 
2727   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2728     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
2729   }
2730   int cached_size = ::_pbi::ToCachedSize(total_size);
2731   SetCachedSize(cached_size);
2732   return total_size;
2733 }
2734 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)2735 void TaskWeight::CheckTypeAndMergeFrom(
2736     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
2737   MergeFrom(*::_pbi::DownCast<const TaskWeight*>(
2738       &from));
2739 }
2740 
MergeFrom(const TaskWeight & from)2741 void TaskWeight::MergeFrom(const TaskWeight& from) {
2742   TaskWeight* const _this = this;
2743   // @@protoc_insertion_point(class_specific_merge_from_start:google.internal.federatedml.v2.TaskWeight)
2744   GOOGLE_DCHECK_NE(&from, _this);
2745   ::uint32_t cached_has_bits = 0;
2746   (void) cached_has_bits;
2747 
2748   if (!from._internal_task_name().empty()) {
2749     _this->_internal_set_task_name(from._internal_task_name());
2750   }
2751   static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes uint32_t and float are the same size.");
2752   float tmp_weight = from._internal_weight();
2753   ::uint32_t raw_weight;
2754   memcpy(&raw_weight, &tmp_weight, sizeof(tmp_weight));
2755   if (raw_weight != 0) {
2756     _this->_internal_set_weight(from._internal_weight());
2757   }
2758   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
2759 }
2760 
CopyFrom(const TaskWeight & from)2761 void TaskWeight::CopyFrom(const TaskWeight& from) {
2762 // @@protoc_insertion_point(class_specific_copy_from_start:google.internal.federatedml.v2.TaskWeight)
2763   if (&from == this) return;
2764   Clear();
2765   MergeFrom(from);
2766 }
2767 
IsInitialized() const2768 bool TaskWeight::IsInitialized() const {
2769   return true;
2770 }
2771 
InternalSwap(TaskWeight * other)2772 void TaskWeight::InternalSwap(TaskWeight* other) {
2773   using std::swap;
2774   auto* lhs_arena = GetArenaForAllocation();
2775   auto* rhs_arena = other->GetArenaForAllocation();
2776   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2777   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
2778       &_impl_.task_name_, lhs_arena,
2779       &other->_impl_.task_name_, rhs_arena
2780   );
2781   swap(_impl_.weight_, other->_impl_.weight_);
2782 }
2783 
GetTypeName() const2784 std::string TaskWeight::GetTypeName() const {
2785   return "google.internal.federatedml.v2.TaskWeight";
2786 }
2787 
2788 
2789 // ===================================================================
2790 
2791 class CheckinResponse::_Internal {
2792  public:
2793   static const ::google::internal::federatedml::v2::AcceptanceInfo& acceptance_info(const CheckinResponse* msg);
2794   static const ::google::internal::federatedml::v2::RejectionInfo& rejection_info(const CheckinResponse* msg);
2795   static const ::google::internal::federatedml::v2::ProtocolOptionsResponse& protocol_options_response(const CheckinResponse* msg);
2796 };
2797 
2798 const ::google::internal::federatedml::v2::AcceptanceInfo&
acceptance_info(const CheckinResponse * msg)2799 CheckinResponse::_Internal::acceptance_info(const CheckinResponse* msg) {
2800   return *msg->_impl_.checkin_result_.acceptance_info_;
2801 }
2802 const ::google::internal::federatedml::v2::RejectionInfo&
rejection_info(const CheckinResponse * msg)2803 CheckinResponse::_Internal::rejection_info(const CheckinResponse* msg) {
2804   return *msg->_impl_.checkin_result_.rejection_info_;
2805 }
2806 const ::google::internal::federatedml::v2::ProtocolOptionsResponse&
protocol_options_response(const CheckinResponse * msg)2807 CheckinResponse::_Internal::protocol_options_response(const CheckinResponse* msg) {
2808   return *msg->_impl_.protocol_options_response_;
2809 }
set_allocated_acceptance_info(::google::internal::federatedml::v2::AcceptanceInfo * acceptance_info)2810 void CheckinResponse::set_allocated_acceptance_info(::google::internal::federatedml::v2::AcceptanceInfo* acceptance_info) {
2811   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
2812   clear_checkin_result();
2813   if (acceptance_info) {
2814     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
2815       ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(acceptance_info);
2816     if (message_arena != submessage_arena) {
2817       acceptance_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
2818           message_arena, acceptance_info, submessage_arena);
2819     }
2820     set_has_acceptance_info();
2821     _impl_.checkin_result_.acceptance_info_ = acceptance_info;
2822   }
2823   // @@protoc_insertion_point(field_set_allocated:google.internal.federatedml.v2.CheckinResponse.acceptance_info)
2824 }
set_allocated_rejection_info(::google::internal::federatedml::v2::RejectionInfo * rejection_info)2825 void CheckinResponse::set_allocated_rejection_info(::google::internal::federatedml::v2::RejectionInfo* rejection_info) {
2826   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
2827   clear_checkin_result();
2828   if (rejection_info) {
2829     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
2830       ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(rejection_info);
2831     if (message_arena != submessage_arena) {
2832       rejection_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
2833           message_arena, rejection_info, submessage_arena);
2834     }
2835     set_has_rejection_info();
2836     _impl_.checkin_result_.rejection_info_ = rejection_info;
2837   }
2838   // @@protoc_insertion_point(field_set_allocated:google.internal.federatedml.v2.CheckinResponse.rejection_info)
2839 }
CheckinResponse(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)2840 CheckinResponse::CheckinResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2841                          bool is_message_owned)
2842   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
2843   SharedCtor(arena, is_message_owned);
2844   // @@protoc_insertion_point(arena_constructor:google.internal.federatedml.v2.CheckinResponse)
2845 }
CheckinResponse(const CheckinResponse & from)2846 CheckinResponse::CheckinResponse(const CheckinResponse& from)
2847   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
2848   CheckinResponse* const _this = this; (void)_this;
2849   new (&_impl_) Impl_{
2850       decltype(_impl_.protocol_options_response_){nullptr}
2851     , decltype(_impl_.checkin_result_){}
2852     , /*decltype(_impl_._cached_size_)*/{}
2853     , /*decltype(_impl_._oneof_case_)*/{}};
2854 
2855   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
2856   if (from._internal_has_protocol_options_response()) {
2857     _this->_impl_.protocol_options_response_ = new ::google::internal::federatedml::v2::ProtocolOptionsResponse(*from._impl_.protocol_options_response_);
2858   }
2859   clear_has_checkin_result();
2860   switch (from.checkin_result_case()) {
2861     case kAcceptanceInfo: {
2862       _this->_internal_mutable_acceptance_info()->::google::internal::federatedml::v2::AcceptanceInfo::MergeFrom(
2863           from._internal_acceptance_info());
2864       break;
2865     }
2866     case kRejectionInfo: {
2867       _this->_internal_mutable_rejection_info()->::google::internal::federatedml::v2::RejectionInfo::MergeFrom(
2868           from._internal_rejection_info());
2869       break;
2870     }
2871     case CHECKIN_RESULT_NOT_SET: {
2872       break;
2873     }
2874   }
2875   // @@protoc_insertion_point(copy_constructor:google.internal.federatedml.v2.CheckinResponse)
2876 }
2877 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)2878 inline void CheckinResponse::SharedCtor(
2879     ::_pb::Arena* arena, bool is_message_owned) {
2880   (void)arena;
2881   (void)is_message_owned;
2882   new (&_impl_) Impl_{
2883       decltype(_impl_.protocol_options_response_){nullptr}
2884     , decltype(_impl_.checkin_result_){}
2885     , /*decltype(_impl_._cached_size_)*/{}
2886     , /*decltype(_impl_._oneof_case_)*/{}
2887   };
2888   clear_has_checkin_result();
2889 }
2890 
~CheckinResponse()2891 CheckinResponse::~CheckinResponse() {
2892   // @@protoc_insertion_point(destructor:google.internal.federatedml.v2.CheckinResponse)
2893   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
2894   (void)arena;
2895     return;
2896   }
2897   SharedDtor();
2898 }
2899 
SharedDtor()2900 inline void CheckinResponse::SharedDtor() {
2901   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
2902   if (this != internal_default_instance()) delete _impl_.protocol_options_response_;
2903   if (has_checkin_result()) {
2904     clear_checkin_result();
2905   }
2906 }
2907 
SetCachedSize(int size) const2908 void CheckinResponse::SetCachedSize(int size) const {
2909   _impl_._cached_size_.Set(size);
2910 }
2911 
clear_checkin_result()2912 void CheckinResponse::clear_checkin_result() {
2913 // @@protoc_insertion_point(one_of_clear_start:google.internal.federatedml.v2.CheckinResponse)
2914   switch (checkin_result_case()) {
2915     case kAcceptanceInfo: {
2916       if (GetArenaForAllocation() == nullptr) {
2917         delete _impl_.checkin_result_.acceptance_info_;
2918       }
2919       break;
2920     }
2921     case kRejectionInfo: {
2922       if (GetArenaForAllocation() == nullptr) {
2923         delete _impl_.checkin_result_.rejection_info_;
2924       }
2925       break;
2926     }
2927     case CHECKIN_RESULT_NOT_SET: {
2928       break;
2929     }
2930   }
2931   _impl_._oneof_case_[0] = CHECKIN_RESULT_NOT_SET;
2932 }
2933 
2934 
Clear()2935 void CheckinResponse::Clear() {
2936 // @@protoc_insertion_point(message_clear_start:google.internal.federatedml.v2.CheckinResponse)
2937   ::uint32_t cached_has_bits = 0;
2938   // Prevent compiler warnings about cached_has_bits being unused
2939   (void) cached_has_bits;
2940 
2941   if (GetArenaForAllocation() == nullptr && _impl_.protocol_options_response_ != nullptr) {
2942     delete _impl_.protocol_options_response_;
2943   }
2944   _impl_.protocol_options_response_ = nullptr;
2945   clear_checkin_result();
2946   _internal_metadata_.Clear<std::string>();
2947 }
2948 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)2949 const char* CheckinResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
2950 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2951   while (!ctx->Done(&ptr)) {
2952     ::uint32_t tag;
2953     ptr = ::_pbi::ReadTag(ptr, &tag);
2954     switch (tag >> 3) {
2955       // .google.internal.federatedml.v2.AcceptanceInfo acceptance_info = 1;
2956       case 1:
2957         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
2958           ptr = ctx->ParseMessage(_internal_mutable_acceptance_info(), ptr);
2959           CHK_(ptr);
2960         } else {
2961           goto handle_unusual;
2962         }
2963         continue;
2964       // .google.internal.federatedml.v2.RejectionInfo rejection_info = 2;
2965       case 2:
2966         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
2967           ptr = ctx->ParseMessage(_internal_mutable_rejection_info(), ptr);
2968           CHK_(ptr);
2969         } else {
2970           goto handle_unusual;
2971         }
2972         continue;
2973       // .google.internal.federatedml.v2.ProtocolOptionsResponse protocol_options_response = 4;
2974       case 4:
2975         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
2976           ptr = ctx->ParseMessage(_internal_mutable_protocol_options_response(), ptr);
2977           CHK_(ptr);
2978         } else {
2979           goto handle_unusual;
2980         }
2981         continue;
2982       default:
2983         goto handle_unusual;
2984     }  // switch
2985   handle_unusual:
2986     if ((tag == 0) || ((tag & 7) == 4)) {
2987       CHK_(ptr);
2988       ctx->SetLastTag(tag);
2989       goto message_done;
2990     }
2991     ptr = UnknownFieldParse(
2992         tag,
2993         _internal_metadata_.mutable_unknown_fields<std::string>(),
2994         ptr, ctx);
2995     CHK_(ptr != nullptr);
2996   }  // while
2997 message_done:
2998   return ptr;
2999 failure:
3000   ptr = nullptr;
3001   goto message_done;
3002 #undef CHK_
3003 }
3004 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const3005 ::uint8_t* CheckinResponse::_InternalSerialize(
3006     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
3007   // @@protoc_insertion_point(serialize_to_array_start:google.internal.federatedml.v2.CheckinResponse)
3008   ::uint32_t cached_has_bits = 0;
3009   (void) cached_has_bits;
3010 
3011   // .google.internal.federatedml.v2.AcceptanceInfo acceptance_info = 1;
3012   if (_internal_has_acceptance_info()) {
3013     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3014       InternalWriteMessage(1, _Internal::acceptance_info(this),
3015         _Internal::acceptance_info(this).GetCachedSize(), target, stream);
3016   }
3017 
3018   // .google.internal.federatedml.v2.RejectionInfo rejection_info = 2;
3019   if (_internal_has_rejection_info()) {
3020     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3021       InternalWriteMessage(2, _Internal::rejection_info(this),
3022         _Internal::rejection_info(this).GetCachedSize(), target, stream);
3023   }
3024 
3025   // .google.internal.federatedml.v2.ProtocolOptionsResponse protocol_options_response = 4;
3026   if (this->_internal_has_protocol_options_response()) {
3027     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3028       InternalWriteMessage(4, _Internal::protocol_options_response(this),
3029         _Internal::protocol_options_response(this).GetCachedSize(), target, stream);
3030   }
3031 
3032   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3033     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
3034         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
3035   }
3036   // @@protoc_insertion_point(serialize_to_array_end:google.internal.federatedml.v2.CheckinResponse)
3037   return target;
3038 }
3039 
ByteSizeLong() const3040 size_t CheckinResponse::ByteSizeLong() const {
3041 // @@protoc_insertion_point(message_byte_size_start:google.internal.federatedml.v2.CheckinResponse)
3042   size_t total_size = 0;
3043 
3044   ::uint32_t cached_has_bits = 0;
3045   // Prevent compiler warnings about cached_has_bits being unused
3046   (void) cached_has_bits;
3047 
3048   // .google.internal.federatedml.v2.ProtocolOptionsResponse protocol_options_response = 4;
3049   if (this->_internal_has_protocol_options_response()) {
3050     total_size += 1 +
3051       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
3052         *_impl_.protocol_options_response_);
3053   }
3054 
3055   switch (checkin_result_case()) {
3056     // .google.internal.federatedml.v2.AcceptanceInfo acceptance_info = 1;
3057     case kAcceptanceInfo: {
3058       total_size += 1 +
3059         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
3060           *_impl_.checkin_result_.acceptance_info_);
3061       break;
3062     }
3063     // .google.internal.federatedml.v2.RejectionInfo rejection_info = 2;
3064     case kRejectionInfo: {
3065       total_size += 1 +
3066         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
3067           *_impl_.checkin_result_.rejection_info_);
3068       break;
3069     }
3070     case CHECKIN_RESULT_NOT_SET: {
3071       break;
3072     }
3073   }
3074   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3075     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
3076   }
3077   int cached_size = ::_pbi::ToCachedSize(total_size);
3078   SetCachedSize(cached_size);
3079   return total_size;
3080 }
3081 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)3082 void CheckinResponse::CheckTypeAndMergeFrom(
3083     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
3084   MergeFrom(*::_pbi::DownCast<const CheckinResponse*>(
3085       &from));
3086 }
3087 
MergeFrom(const CheckinResponse & from)3088 void CheckinResponse::MergeFrom(const CheckinResponse& from) {
3089   CheckinResponse* const _this = this;
3090   // @@protoc_insertion_point(class_specific_merge_from_start:google.internal.federatedml.v2.CheckinResponse)
3091   GOOGLE_DCHECK_NE(&from, _this);
3092   ::uint32_t cached_has_bits = 0;
3093   (void) cached_has_bits;
3094 
3095   if (from._internal_has_protocol_options_response()) {
3096     _this->_internal_mutable_protocol_options_response()->::google::internal::federatedml::v2::ProtocolOptionsResponse::MergeFrom(
3097         from._internal_protocol_options_response());
3098   }
3099   switch (from.checkin_result_case()) {
3100     case kAcceptanceInfo: {
3101       _this->_internal_mutable_acceptance_info()->::google::internal::federatedml::v2::AcceptanceInfo::MergeFrom(
3102           from._internal_acceptance_info());
3103       break;
3104     }
3105     case kRejectionInfo: {
3106       _this->_internal_mutable_rejection_info()->::google::internal::federatedml::v2::RejectionInfo::MergeFrom(
3107           from._internal_rejection_info());
3108       break;
3109     }
3110     case CHECKIN_RESULT_NOT_SET: {
3111       break;
3112     }
3113   }
3114   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
3115 }
3116 
CopyFrom(const CheckinResponse & from)3117 void CheckinResponse::CopyFrom(const CheckinResponse& from) {
3118 // @@protoc_insertion_point(class_specific_copy_from_start:google.internal.federatedml.v2.CheckinResponse)
3119   if (&from == this) return;
3120   Clear();
3121   MergeFrom(from);
3122 }
3123 
IsInitialized() const3124 bool CheckinResponse::IsInitialized() const {
3125   return true;
3126 }
3127 
InternalSwap(CheckinResponse * other)3128 void CheckinResponse::InternalSwap(CheckinResponse* other) {
3129   using std::swap;
3130   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
3131   swap(_impl_.protocol_options_response_, other->_impl_.protocol_options_response_);
3132   swap(_impl_.checkin_result_, other->_impl_.checkin_result_);
3133   swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
3134 }
3135 
GetTypeName() const3136 std::string CheckinResponse::GetTypeName() const {
3137   return "google.internal.federatedml.v2.CheckinResponse";
3138 }
3139 
3140 
3141 // ===================================================================
3142 
3143 class CheckinRequestAck::_Internal {
3144  public:
3145   static const ::google::internal::federatedml::v2::RetryWindow& retry_window_if_accepted(const CheckinRequestAck* msg);
3146   static const ::google::internal::federatedml::v2::RetryWindow& retry_window_if_rejected(const CheckinRequestAck* msg);
3147 };
3148 
3149 const ::google::internal::federatedml::v2::RetryWindow&
retry_window_if_accepted(const CheckinRequestAck * msg)3150 CheckinRequestAck::_Internal::retry_window_if_accepted(const CheckinRequestAck* msg) {
3151   return *msg->_impl_.retry_window_if_accepted_;
3152 }
3153 const ::google::internal::federatedml::v2::RetryWindow&
retry_window_if_rejected(const CheckinRequestAck * msg)3154 CheckinRequestAck::_Internal::retry_window_if_rejected(const CheckinRequestAck* msg) {
3155   return *msg->_impl_.retry_window_if_rejected_;
3156 }
CheckinRequestAck(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)3157 CheckinRequestAck::CheckinRequestAck(::PROTOBUF_NAMESPACE_ID::Arena* arena,
3158                          bool is_message_owned)
3159   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
3160   SharedCtor(arena, is_message_owned);
3161   // @@protoc_insertion_point(arena_constructor:google.internal.federatedml.v2.CheckinRequestAck)
3162 }
CheckinRequestAck(const CheckinRequestAck & from)3163 CheckinRequestAck::CheckinRequestAck(const CheckinRequestAck& from)
3164   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
3165   CheckinRequestAck* const _this = this; (void)_this;
3166   new (&_impl_) Impl_{
3167       decltype(_impl_.retry_window_if_accepted_){nullptr}
3168     , decltype(_impl_.retry_window_if_rejected_){nullptr}
3169     , /*decltype(_impl_._cached_size_)*/{}};
3170 
3171   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
3172   if (from._internal_has_retry_window_if_accepted()) {
3173     _this->_impl_.retry_window_if_accepted_ = new ::google::internal::federatedml::v2::RetryWindow(*from._impl_.retry_window_if_accepted_);
3174   }
3175   if (from._internal_has_retry_window_if_rejected()) {
3176     _this->_impl_.retry_window_if_rejected_ = new ::google::internal::federatedml::v2::RetryWindow(*from._impl_.retry_window_if_rejected_);
3177   }
3178   // @@protoc_insertion_point(copy_constructor:google.internal.federatedml.v2.CheckinRequestAck)
3179 }
3180 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)3181 inline void CheckinRequestAck::SharedCtor(
3182     ::_pb::Arena* arena, bool is_message_owned) {
3183   (void)arena;
3184   (void)is_message_owned;
3185   new (&_impl_) Impl_{
3186       decltype(_impl_.retry_window_if_accepted_){nullptr}
3187     , decltype(_impl_.retry_window_if_rejected_){nullptr}
3188     , /*decltype(_impl_._cached_size_)*/{}
3189   };
3190 }
3191 
~CheckinRequestAck()3192 CheckinRequestAck::~CheckinRequestAck() {
3193   // @@protoc_insertion_point(destructor:google.internal.federatedml.v2.CheckinRequestAck)
3194   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
3195   (void)arena;
3196     return;
3197   }
3198   SharedDtor();
3199 }
3200 
SharedDtor()3201 inline void CheckinRequestAck::SharedDtor() {
3202   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
3203   if (this != internal_default_instance()) delete _impl_.retry_window_if_accepted_;
3204   if (this != internal_default_instance()) delete _impl_.retry_window_if_rejected_;
3205 }
3206 
SetCachedSize(int size) const3207 void CheckinRequestAck::SetCachedSize(int size) const {
3208   _impl_._cached_size_.Set(size);
3209 }
3210 
Clear()3211 void CheckinRequestAck::Clear() {
3212 // @@protoc_insertion_point(message_clear_start:google.internal.federatedml.v2.CheckinRequestAck)
3213   ::uint32_t cached_has_bits = 0;
3214   // Prevent compiler warnings about cached_has_bits being unused
3215   (void) cached_has_bits;
3216 
3217   if (GetArenaForAllocation() == nullptr && _impl_.retry_window_if_accepted_ != nullptr) {
3218     delete _impl_.retry_window_if_accepted_;
3219   }
3220   _impl_.retry_window_if_accepted_ = nullptr;
3221   if (GetArenaForAllocation() == nullptr && _impl_.retry_window_if_rejected_ != nullptr) {
3222     delete _impl_.retry_window_if_rejected_;
3223   }
3224   _impl_.retry_window_if_rejected_ = nullptr;
3225   _internal_metadata_.Clear<std::string>();
3226 }
3227 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)3228 const char* CheckinRequestAck::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
3229 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3230   while (!ctx->Done(&ptr)) {
3231     ::uint32_t tag;
3232     ptr = ::_pbi::ReadTag(ptr, &tag);
3233     switch (tag >> 3) {
3234       // .google.internal.federatedml.v2.RetryWindow retry_window_if_accepted = 1;
3235       case 1:
3236         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
3237           ptr = ctx->ParseMessage(_internal_mutable_retry_window_if_accepted(), ptr);
3238           CHK_(ptr);
3239         } else {
3240           goto handle_unusual;
3241         }
3242         continue;
3243       // .google.internal.federatedml.v2.RetryWindow retry_window_if_rejected = 2;
3244       case 2:
3245         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
3246           ptr = ctx->ParseMessage(_internal_mutable_retry_window_if_rejected(), ptr);
3247           CHK_(ptr);
3248         } else {
3249           goto handle_unusual;
3250         }
3251         continue;
3252       default:
3253         goto handle_unusual;
3254     }  // switch
3255   handle_unusual:
3256     if ((tag == 0) || ((tag & 7) == 4)) {
3257       CHK_(ptr);
3258       ctx->SetLastTag(tag);
3259       goto message_done;
3260     }
3261     ptr = UnknownFieldParse(
3262         tag,
3263         _internal_metadata_.mutable_unknown_fields<std::string>(),
3264         ptr, ctx);
3265     CHK_(ptr != nullptr);
3266   }  // while
3267 message_done:
3268   return ptr;
3269 failure:
3270   ptr = nullptr;
3271   goto message_done;
3272 #undef CHK_
3273 }
3274 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const3275 ::uint8_t* CheckinRequestAck::_InternalSerialize(
3276     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
3277   // @@protoc_insertion_point(serialize_to_array_start:google.internal.federatedml.v2.CheckinRequestAck)
3278   ::uint32_t cached_has_bits = 0;
3279   (void) cached_has_bits;
3280 
3281   // .google.internal.federatedml.v2.RetryWindow retry_window_if_accepted = 1;
3282   if (this->_internal_has_retry_window_if_accepted()) {
3283     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3284       InternalWriteMessage(1, _Internal::retry_window_if_accepted(this),
3285         _Internal::retry_window_if_accepted(this).GetCachedSize(), target, stream);
3286   }
3287 
3288   // .google.internal.federatedml.v2.RetryWindow retry_window_if_rejected = 2;
3289   if (this->_internal_has_retry_window_if_rejected()) {
3290     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3291       InternalWriteMessage(2, _Internal::retry_window_if_rejected(this),
3292         _Internal::retry_window_if_rejected(this).GetCachedSize(), target, stream);
3293   }
3294 
3295   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3296     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
3297         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
3298   }
3299   // @@protoc_insertion_point(serialize_to_array_end:google.internal.federatedml.v2.CheckinRequestAck)
3300   return target;
3301 }
3302 
ByteSizeLong() const3303 size_t CheckinRequestAck::ByteSizeLong() const {
3304 // @@protoc_insertion_point(message_byte_size_start:google.internal.federatedml.v2.CheckinRequestAck)
3305   size_t total_size = 0;
3306 
3307   ::uint32_t cached_has_bits = 0;
3308   // Prevent compiler warnings about cached_has_bits being unused
3309   (void) cached_has_bits;
3310 
3311   // .google.internal.federatedml.v2.RetryWindow retry_window_if_accepted = 1;
3312   if (this->_internal_has_retry_window_if_accepted()) {
3313     total_size += 1 +
3314       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
3315         *_impl_.retry_window_if_accepted_);
3316   }
3317 
3318   // .google.internal.federatedml.v2.RetryWindow retry_window_if_rejected = 2;
3319   if (this->_internal_has_retry_window_if_rejected()) {
3320     total_size += 1 +
3321       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
3322         *_impl_.retry_window_if_rejected_);
3323   }
3324 
3325   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3326     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
3327   }
3328   int cached_size = ::_pbi::ToCachedSize(total_size);
3329   SetCachedSize(cached_size);
3330   return total_size;
3331 }
3332 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)3333 void CheckinRequestAck::CheckTypeAndMergeFrom(
3334     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
3335   MergeFrom(*::_pbi::DownCast<const CheckinRequestAck*>(
3336       &from));
3337 }
3338 
MergeFrom(const CheckinRequestAck & from)3339 void CheckinRequestAck::MergeFrom(const CheckinRequestAck& from) {
3340   CheckinRequestAck* const _this = this;
3341   // @@protoc_insertion_point(class_specific_merge_from_start:google.internal.federatedml.v2.CheckinRequestAck)
3342   GOOGLE_DCHECK_NE(&from, _this);
3343   ::uint32_t cached_has_bits = 0;
3344   (void) cached_has_bits;
3345 
3346   if (from._internal_has_retry_window_if_accepted()) {
3347     _this->_internal_mutable_retry_window_if_accepted()->::google::internal::federatedml::v2::RetryWindow::MergeFrom(
3348         from._internal_retry_window_if_accepted());
3349   }
3350   if (from._internal_has_retry_window_if_rejected()) {
3351     _this->_internal_mutable_retry_window_if_rejected()->::google::internal::federatedml::v2::RetryWindow::MergeFrom(
3352         from._internal_retry_window_if_rejected());
3353   }
3354   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
3355 }
3356 
CopyFrom(const CheckinRequestAck & from)3357 void CheckinRequestAck::CopyFrom(const CheckinRequestAck& from) {
3358 // @@protoc_insertion_point(class_specific_copy_from_start:google.internal.federatedml.v2.CheckinRequestAck)
3359   if (&from == this) return;
3360   Clear();
3361   MergeFrom(from);
3362 }
3363 
IsInitialized() const3364 bool CheckinRequestAck::IsInitialized() const {
3365   return true;
3366 }
3367 
InternalSwap(CheckinRequestAck * other)3368 void CheckinRequestAck::InternalSwap(CheckinRequestAck* other) {
3369   using std::swap;
3370   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
3371   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
3372       PROTOBUF_FIELD_OFFSET(CheckinRequestAck, _impl_.retry_window_if_rejected_)
3373       + sizeof(CheckinRequestAck::_impl_.retry_window_if_rejected_)  // NOLINT
3374       - PROTOBUF_FIELD_OFFSET(CheckinRequestAck, _impl_.retry_window_if_accepted_)>(
3375           reinterpret_cast<char*>(&_impl_.retry_window_if_accepted_),
3376           reinterpret_cast<char*>(&other->_impl_.retry_window_if_accepted_));
3377 }
3378 
GetTypeName() const3379 std::string CheckinRequestAck::GetTypeName() const {
3380   return "google.internal.federatedml.v2.CheckinRequestAck";
3381 }
3382 
3383 
3384 // ===================================================================
3385 
3386 class EligibilityEvalCheckinRequest::_Internal {
3387  public:
3388   static const ::google::internal::federatedml::v2::ProtocolOptionsRequest& protocol_options_request(const EligibilityEvalCheckinRequest* msg);
3389   static const ::google::internal::federatedml::v2::EligibilityEvalTaskCapabilities& eligibility_eval_task_capabilities(const EligibilityEvalCheckinRequest* msg);
3390 };
3391 
3392 const ::google::internal::federatedml::v2::ProtocolOptionsRequest&
protocol_options_request(const EligibilityEvalCheckinRequest * msg)3393 EligibilityEvalCheckinRequest::_Internal::protocol_options_request(const EligibilityEvalCheckinRequest* msg) {
3394   return *msg->_impl_.protocol_options_request_;
3395 }
3396 const ::google::internal::federatedml::v2::EligibilityEvalTaskCapabilities&
eligibility_eval_task_capabilities(const EligibilityEvalCheckinRequest * msg)3397 EligibilityEvalCheckinRequest::_Internal::eligibility_eval_task_capabilities(const EligibilityEvalCheckinRequest* msg) {
3398   return *msg->_impl_.eligibility_eval_task_capabilities_;
3399 }
EligibilityEvalCheckinRequest(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)3400 EligibilityEvalCheckinRequest::EligibilityEvalCheckinRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
3401                          bool is_message_owned)
3402   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
3403   SharedCtor(arena, is_message_owned);
3404   // @@protoc_insertion_point(arena_constructor:google.internal.federatedml.v2.EligibilityEvalCheckinRequest)
3405 }
EligibilityEvalCheckinRequest(const EligibilityEvalCheckinRequest & from)3406 EligibilityEvalCheckinRequest::EligibilityEvalCheckinRequest(const EligibilityEvalCheckinRequest& from)
3407   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
3408   EligibilityEvalCheckinRequest* const _this = this; (void)_this;
3409   new (&_impl_) Impl_{
3410       decltype(_impl_.population_name_){}
3411     , decltype(_impl_.retry_token_){}
3412     , decltype(_impl_.attestation_measurement_){}
3413     , decltype(_impl_.client_version_){}
3414     , decltype(_impl_.protocol_options_request_){nullptr}
3415     , decltype(_impl_.eligibility_eval_task_capabilities_){nullptr}
3416     , /*decltype(_impl_._cached_size_)*/{}};
3417 
3418   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
3419   _impl_.population_name_.InitDefault();
3420   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3421     _impl_.population_name_.Set("", GetArenaForAllocation());
3422   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3423   if (!from._internal_population_name().empty()) {
3424     _this->_impl_.population_name_.Set(from._internal_population_name(),
3425       _this->GetArenaForAllocation());
3426   }
3427   _impl_.retry_token_.InitDefault();
3428   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3429     _impl_.retry_token_.Set("", GetArenaForAllocation());
3430   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3431   if (!from._internal_retry_token().empty()) {
3432     _this->_impl_.retry_token_.Set(from._internal_retry_token(),
3433       _this->GetArenaForAllocation());
3434   }
3435   _impl_.attestation_measurement_.InitDefault();
3436   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3437     _impl_.attestation_measurement_.Set("", GetArenaForAllocation());
3438   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3439   if (!from._internal_attestation_measurement().empty()) {
3440     _this->_impl_.attestation_measurement_.Set(from._internal_attestation_measurement(),
3441       _this->GetArenaForAllocation());
3442   }
3443   _impl_.client_version_.InitDefault();
3444   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3445     _impl_.client_version_.Set("", GetArenaForAllocation());
3446   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3447   if (!from._internal_client_version().empty()) {
3448     _this->_impl_.client_version_.Set(from._internal_client_version(),
3449       _this->GetArenaForAllocation());
3450   }
3451   if (from._internal_has_protocol_options_request()) {
3452     _this->_impl_.protocol_options_request_ = new ::google::internal::federatedml::v2::ProtocolOptionsRequest(*from._impl_.protocol_options_request_);
3453   }
3454   if (from._internal_has_eligibility_eval_task_capabilities()) {
3455     _this->_impl_.eligibility_eval_task_capabilities_ = new ::google::internal::federatedml::v2::EligibilityEvalTaskCapabilities(*from._impl_.eligibility_eval_task_capabilities_);
3456   }
3457   // @@protoc_insertion_point(copy_constructor:google.internal.federatedml.v2.EligibilityEvalCheckinRequest)
3458 }
3459 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)3460 inline void EligibilityEvalCheckinRequest::SharedCtor(
3461     ::_pb::Arena* arena, bool is_message_owned) {
3462   (void)arena;
3463   (void)is_message_owned;
3464   new (&_impl_) Impl_{
3465       decltype(_impl_.population_name_){}
3466     , decltype(_impl_.retry_token_){}
3467     , decltype(_impl_.attestation_measurement_){}
3468     , decltype(_impl_.client_version_){}
3469     , decltype(_impl_.protocol_options_request_){nullptr}
3470     , decltype(_impl_.eligibility_eval_task_capabilities_){nullptr}
3471     , /*decltype(_impl_._cached_size_)*/{}
3472   };
3473   _impl_.population_name_.InitDefault();
3474   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3475     _impl_.population_name_.Set("", GetArenaForAllocation());
3476   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3477   _impl_.retry_token_.InitDefault();
3478   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3479     _impl_.retry_token_.Set("", GetArenaForAllocation());
3480   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3481   _impl_.attestation_measurement_.InitDefault();
3482   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3483     _impl_.attestation_measurement_.Set("", GetArenaForAllocation());
3484   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3485   _impl_.client_version_.InitDefault();
3486   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3487     _impl_.client_version_.Set("", GetArenaForAllocation());
3488   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3489 }
3490 
~EligibilityEvalCheckinRequest()3491 EligibilityEvalCheckinRequest::~EligibilityEvalCheckinRequest() {
3492   // @@protoc_insertion_point(destructor:google.internal.federatedml.v2.EligibilityEvalCheckinRequest)
3493   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
3494   (void)arena;
3495     return;
3496   }
3497   SharedDtor();
3498 }
3499 
SharedDtor()3500 inline void EligibilityEvalCheckinRequest::SharedDtor() {
3501   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
3502   _impl_.population_name_.Destroy();
3503   _impl_.retry_token_.Destroy();
3504   _impl_.attestation_measurement_.Destroy();
3505   _impl_.client_version_.Destroy();
3506   if (this != internal_default_instance()) delete _impl_.protocol_options_request_;
3507   if (this != internal_default_instance()) delete _impl_.eligibility_eval_task_capabilities_;
3508 }
3509 
SetCachedSize(int size) const3510 void EligibilityEvalCheckinRequest::SetCachedSize(int size) const {
3511   _impl_._cached_size_.Set(size);
3512 }
3513 
Clear()3514 void EligibilityEvalCheckinRequest::Clear() {
3515 // @@protoc_insertion_point(message_clear_start:google.internal.federatedml.v2.EligibilityEvalCheckinRequest)
3516   ::uint32_t cached_has_bits = 0;
3517   // Prevent compiler warnings about cached_has_bits being unused
3518   (void) cached_has_bits;
3519 
3520   _impl_.population_name_.ClearToEmpty();
3521   _impl_.retry_token_.ClearToEmpty();
3522   _impl_.attestation_measurement_.ClearToEmpty();
3523   _impl_.client_version_.ClearToEmpty();
3524   if (GetArenaForAllocation() == nullptr && _impl_.protocol_options_request_ != nullptr) {
3525     delete _impl_.protocol_options_request_;
3526   }
3527   _impl_.protocol_options_request_ = nullptr;
3528   if (GetArenaForAllocation() == nullptr && _impl_.eligibility_eval_task_capabilities_ != nullptr) {
3529     delete _impl_.eligibility_eval_task_capabilities_;
3530   }
3531   _impl_.eligibility_eval_task_capabilities_ = nullptr;
3532   _internal_metadata_.Clear<std::string>();
3533 }
3534 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)3535 const char* EligibilityEvalCheckinRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
3536 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3537   while (!ctx->Done(&ptr)) {
3538     ::uint32_t tag;
3539     ptr = ::_pbi::ReadTag(ptr, &tag);
3540     switch (tag >> 3) {
3541       // string population_name = 1;
3542       case 1:
3543         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
3544           auto str = _internal_mutable_population_name();
3545           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
3546           CHK_(ptr);
3547           CHK_(::_pbi::VerifyUTF8(str, nullptr));
3548         } else {
3549           goto handle_unusual;
3550         }
3551         continue;
3552       // string retry_token = 2;
3553       case 2:
3554         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
3555           auto str = _internal_mutable_retry_token();
3556           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
3557           CHK_(ptr);
3558           CHK_(::_pbi::VerifyUTF8(str, nullptr));
3559         } else {
3560           goto handle_unusual;
3561         }
3562         continue;
3563       // string attestation_measurement = 4;
3564       case 4:
3565         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
3566           auto str = _internal_mutable_attestation_measurement();
3567           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
3568           CHK_(ptr);
3569           CHK_(::_pbi::VerifyUTF8(str, nullptr));
3570         } else {
3571           goto handle_unusual;
3572         }
3573         continue;
3574       // .google.internal.federatedml.v2.ProtocolOptionsRequest protocol_options_request = 5;
3575       case 5:
3576         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
3577           ptr = ctx->ParseMessage(_internal_mutable_protocol_options_request(), ptr);
3578           CHK_(ptr);
3579         } else {
3580           goto handle_unusual;
3581         }
3582         continue;
3583       // string client_version = 6;
3584       case 6:
3585         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) {
3586           auto str = _internal_mutable_client_version();
3587           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
3588           CHK_(ptr);
3589           CHK_(::_pbi::VerifyUTF8(str, nullptr));
3590         } else {
3591           goto handle_unusual;
3592         }
3593         continue;
3594       // .google.internal.federatedml.v2.EligibilityEvalTaskCapabilities eligibility_eval_task_capabilities = 7;
3595       case 7:
3596         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) {
3597           ptr = ctx->ParseMessage(_internal_mutable_eligibility_eval_task_capabilities(), ptr);
3598           CHK_(ptr);
3599         } else {
3600           goto handle_unusual;
3601         }
3602         continue;
3603       default:
3604         goto handle_unusual;
3605     }  // switch
3606   handle_unusual:
3607     if ((tag == 0) || ((tag & 7) == 4)) {
3608       CHK_(ptr);
3609       ctx->SetLastTag(tag);
3610       goto message_done;
3611     }
3612     ptr = UnknownFieldParse(
3613         tag,
3614         _internal_metadata_.mutable_unknown_fields<std::string>(),
3615         ptr, ctx);
3616     CHK_(ptr != nullptr);
3617   }  // while
3618 message_done:
3619   return ptr;
3620 failure:
3621   ptr = nullptr;
3622   goto message_done;
3623 #undef CHK_
3624 }
3625 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const3626 ::uint8_t* EligibilityEvalCheckinRequest::_InternalSerialize(
3627     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
3628   // @@protoc_insertion_point(serialize_to_array_start:google.internal.federatedml.v2.EligibilityEvalCheckinRequest)
3629   ::uint32_t cached_has_bits = 0;
3630   (void) cached_has_bits;
3631 
3632   // string population_name = 1;
3633   if (!this->_internal_population_name().empty()) {
3634     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3635       this->_internal_population_name().data(), static_cast<int>(this->_internal_population_name().length()),
3636       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
3637       "google.internal.federatedml.v2.EligibilityEvalCheckinRequest.population_name");
3638     target = stream->WriteStringMaybeAliased(
3639         1, this->_internal_population_name(), target);
3640   }
3641 
3642   // string retry_token = 2;
3643   if (!this->_internal_retry_token().empty()) {
3644     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3645       this->_internal_retry_token().data(), static_cast<int>(this->_internal_retry_token().length()),
3646       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
3647       "google.internal.federatedml.v2.EligibilityEvalCheckinRequest.retry_token");
3648     target = stream->WriteStringMaybeAliased(
3649         2, this->_internal_retry_token(), target);
3650   }
3651 
3652   // string attestation_measurement = 4;
3653   if (!this->_internal_attestation_measurement().empty()) {
3654     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3655       this->_internal_attestation_measurement().data(), static_cast<int>(this->_internal_attestation_measurement().length()),
3656       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
3657       "google.internal.federatedml.v2.EligibilityEvalCheckinRequest.attestation_measurement");
3658     target = stream->WriteStringMaybeAliased(
3659         4, this->_internal_attestation_measurement(), target);
3660   }
3661 
3662   // .google.internal.federatedml.v2.ProtocolOptionsRequest protocol_options_request = 5;
3663   if (this->_internal_has_protocol_options_request()) {
3664     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3665       InternalWriteMessage(5, _Internal::protocol_options_request(this),
3666         _Internal::protocol_options_request(this).GetCachedSize(), target, stream);
3667   }
3668 
3669   // string client_version = 6;
3670   if (!this->_internal_client_version().empty()) {
3671     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3672       this->_internal_client_version().data(), static_cast<int>(this->_internal_client_version().length()),
3673       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
3674       "google.internal.federatedml.v2.EligibilityEvalCheckinRequest.client_version");
3675     target = stream->WriteStringMaybeAliased(
3676         6, this->_internal_client_version(), target);
3677   }
3678 
3679   // .google.internal.federatedml.v2.EligibilityEvalTaskCapabilities eligibility_eval_task_capabilities = 7;
3680   if (this->_internal_has_eligibility_eval_task_capabilities()) {
3681     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3682       InternalWriteMessage(7, _Internal::eligibility_eval_task_capabilities(this),
3683         _Internal::eligibility_eval_task_capabilities(this).GetCachedSize(), target, stream);
3684   }
3685 
3686   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3687     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
3688         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
3689   }
3690   // @@protoc_insertion_point(serialize_to_array_end:google.internal.federatedml.v2.EligibilityEvalCheckinRequest)
3691   return target;
3692 }
3693 
ByteSizeLong() const3694 size_t EligibilityEvalCheckinRequest::ByteSizeLong() const {
3695 // @@protoc_insertion_point(message_byte_size_start:google.internal.federatedml.v2.EligibilityEvalCheckinRequest)
3696   size_t total_size = 0;
3697 
3698   ::uint32_t cached_has_bits = 0;
3699   // Prevent compiler warnings about cached_has_bits being unused
3700   (void) cached_has_bits;
3701 
3702   // string population_name = 1;
3703   if (!this->_internal_population_name().empty()) {
3704     total_size += 1 +
3705       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
3706         this->_internal_population_name());
3707   }
3708 
3709   // string retry_token = 2;
3710   if (!this->_internal_retry_token().empty()) {
3711     total_size += 1 +
3712       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
3713         this->_internal_retry_token());
3714   }
3715 
3716   // string attestation_measurement = 4;
3717   if (!this->_internal_attestation_measurement().empty()) {
3718     total_size += 1 +
3719       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
3720         this->_internal_attestation_measurement());
3721   }
3722 
3723   // string client_version = 6;
3724   if (!this->_internal_client_version().empty()) {
3725     total_size += 1 +
3726       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
3727         this->_internal_client_version());
3728   }
3729 
3730   // .google.internal.federatedml.v2.ProtocolOptionsRequest protocol_options_request = 5;
3731   if (this->_internal_has_protocol_options_request()) {
3732     total_size += 1 +
3733       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
3734         *_impl_.protocol_options_request_);
3735   }
3736 
3737   // .google.internal.federatedml.v2.EligibilityEvalTaskCapabilities eligibility_eval_task_capabilities = 7;
3738   if (this->_internal_has_eligibility_eval_task_capabilities()) {
3739     total_size += 1 +
3740       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
3741         *_impl_.eligibility_eval_task_capabilities_);
3742   }
3743 
3744   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3745     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
3746   }
3747   int cached_size = ::_pbi::ToCachedSize(total_size);
3748   SetCachedSize(cached_size);
3749   return total_size;
3750 }
3751 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)3752 void EligibilityEvalCheckinRequest::CheckTypeAndMergeFrom(
3753     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
3754   MergeFrom(*::_pbi::DownCast<const EligibilityEvalCheckinRequest*>(
3755       &from));
3756 }
3757 
MergeFrom(const EligibilityEvalCheckinRequest & from)3758 void EligibilityEvalCheckinRequest::MergeFrom(const EligibilityEvalCheckinRequest& from) {
3759   EligibilityEvalCheckinRequest* const _this = this;
3760   // @@protoc_insertion_point(class_specific_merge_from_start:google.internal.federatedml.v2.EligibilityEvalCheckinRequest)
3761   GOOGLE_DCHECK_NE(&from, _this);
3762   ::uint32_t cached_has_bits = 0;
3763   (void) cached_has_bits;
3764 
3765   if (!from._internal_population_name().empty()) {
3766     _this->_internal_set_population_name(from._internal_population_name());
3767   }
3768   if (!from._internal_retry_token().empty()) {
3769     _this->_internal_set_retry_token(from._internal_retry_token());
3770   }
3771   if (!from._internal_attestation_measurement().empty()) {
3772     _this->_internal_set_attestation_measurement(from._internal_attestation_measurement());
3773   }
3774   if (!from._internal_client_version().empty()) {
3775     _this->_internal_set_client_version(from._internal_client_version());
3776   }
3777   if (from._internal_has_protocol_options_request()) {
3778     _this->_internal_mutable_protocol_options_request()->::google::internal::federatedml::v2::ProtocolOptionsRequest::MergeFrom(
3779         from._internal_protocol_options_request());
3780   }
3781   if (from._internal_has_eligibility_eval_task_capabilities()) {
3782     _this->_internal_mutable_eligibility_eval_task_capabilities()->::google::internal::federatedml::v2::EligibilityEvalTaskCapabilities::MergeFrom(
3783         from._internal_eligibility_eval_task_capabilities());
3784   }
3785   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
3786 }
3787 
CopyFrom(const EligibilityEvalCheckinRequest & from)3788 void EligibilityEvalCheckinRequest::CopyFrom(const EligibilityEvalCheckinRequest& from) {
3789 // @@protoc_insertion_point(class_specific_copy_from_start:google.internal.federatedml.v2.EligibilityEvalCheckinRequest)
3790   if (&from == this) return;
3791   Clear();
3792   MergeFrom(from);
3793 }
3794 
IsInitialized() const3795 bool EligibilityEvalCheckinRequest::IsInitialized() const {
3796   return true;
3797 }
3798 
InternalSwap(EligibilityEvalCheckinRequest * other)3799 void EligibilityEvalCheckinRequest::InternalSwap(EligibilityEvalCheckinRequest* other) {
3800   using std::swap;
3801   auto* lhs_arena = GetArenaForAllocation();
3802   auto* rhs_arena = other->GetArenaForAllocation();
3803   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
3804   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
3805       &_impl_.population_name_, lhs_arena,
3806       &other->_impl_.population_name_, rhs_arena
3807   );
3808   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
3809       &_impl_.retry_token_, lhs_arena,
3810       &other->_impl_.retry_token_, rhs_arena
3811   );
3812   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
3813       &_impl_.attestation_measurement_, lhs_arena,
3814       &other->_impl_.attestation_measurement_, rhs_arena
3815   );
3816   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
3817       &_impl_.client_version_, lhs_arena,
3818       &other->_impl_.client_version_, rhs_arena
3819   );
3820   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
3821       PROTOBUF_FIELD_OFFSET(EligibilityEvalCheckinRequest, _impl_.eligibility_eval_task_capabilities_)
3822       + sizeof(EligibilityEvalCheckinRequest::_impl_.eligibility_eval_task_capabilities_)  // NOLINT
3823       - PROTOBUF_FIELD_OFFSET(EligibilityEvalCheckinRequest, _impl_.protocol_options_request_)>(
3824           reinterpret_cast<char*>(&_impl_.protocol_options_request_),
3825           reinterpret_cast<char*>(&other->_impl_.protocol_options_request_));
3826 }
3827 
GetTypeName() const3828 std::string EligibilityEvalCheckinRequest::GetTypeName() const {
3829   return "google.internal.federatedml.v2.EligibilityEvalCheckinRequest";
3830 }
3831 
3832 
3833 // ===================================================================
3834 
3835 class EligibilityEvalTaskCapabilities::_Internal {
3836  public:
3837 };
3838 
EligibilityEvalTaskCapabilities(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)3839 EligibilityEvalTaskCapabilities::EligibilityEvalTaskCapabilities(::PROTOBUF_NAMESPACE_ID::Arena* arena,
3840                          bool is_message_owned)
3841   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
3842   SharedCtor(arena, is_message_owned);
3843   // @@protoc_insertion_point(arena_constructor:google.internal.federatedml.v2.EligibilityEvalTaskCapabilities)
3844 }
EligibilityEvalTaskCapabilities(const EligibilityEvalTaskCapabilities & from)3845 EligibilityEvalTaskCapabilities::EligibilityEvalTaskCapabilities(const EligibilityEvalTaskCapabilities& from)
3846   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
3847   EligibilityEvalTaskCapabilities* const _this = this; (void)_this;
3848   new (&_impl_) Impl_{
3849       decltype(_impl_.supports_multiple_task_assignment_){}
3850     , /*decltype(_impl_._cached_size_)*/{}};
3851 
3852   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
3853   _this->_impl_.supports_multiple_task_assignment_ = from._impl_.supports_multiple_task_assignment_;
3854   // @@protoc_insertion_point(copy_constructor:google.internal.federatedml.v2.EligibilityEvalTaskCapabilities)
3855 }
3856 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)3857 inline void EligibilityEvalTaskCapabilities::SharedCtor(
3858     ::_pb::Arena* arena, bool is_message_owned) {
3859   (void)arena;
3860   (void)is_message_owned;
3861   new (&_impl_) Impl_{
3862       decltype(_impl_.supports_multiple_task_assignment_){false}
3863     , /*decltype(_impl_._cached_size_)*/{}
3864   };
3865 }
3866 
~EligibilityEvalTaskCapabilities()3867 EligibilityEvalTaskCapabilities::~EligibilityEvalTaskCapabilities() {
3868   // @@protoc_insertion_point(destructor:google.internal.federatedml.v2.EligibilityEvalTaskCapabilities)
3869   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
3870   (void)arena;
3871     return;
3872   }
3873   SharedDtor();
3874 }
3875 
SharedDtor()3876 inline void EligibilityEvalTaskCapabilities::SharedDtor() {
3877   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
3878 }
3879 
SetCachedSize(int size) const3880 void EligibilityEvalTaskCapabilities::SetCachedSize(int size) const {
3881   _impl_._cached_size_.Set(size);
3882 }
3883 
Clear()3884 void EligibilityEvalTaskCapabilities::Clear() {
3885 // @@protoc_insertion_point(message_clear_start:google.internal.federatedml.v2.EligibilityEvalTaskCapabilities)
3886   ::uint32_t cached_has_bits = 0;
3887   // Prevent compiler warnings about cached_has_bits being unused
3888   (void) cached_has_bits;
3889 
3890   _impl_.supports_multiple_task_assignment_ = false;
3891   _internal_metadata_.Clear<std::string>();
3892 }
3893 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)3894 const char* EligibilityEvalTaskCapabilities::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
3895 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3896   while (!ctx->Done(&ptr)) {
3897     ::uint32_t tag;
3898     ptr = ::_pbi::ReadTag(ptr, &tag);
3899     switch (tag >> 3) {
3900       // bool supports_multiple_task_assignment = 1;
3901       case 1:
3902         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
3903           _impl_.supports_multiple_task_assignment_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
3904           CHK_(ptr);
3905         } else {
3906           goto handle_unusual;
3907         }
3908         continue;
3909       default:
3910         goto handle_unusual;
3911     }  // switch
3912   handle_unusual:
3913     if ((tag == 0) || ((tag & 7) == 4)) {
3914       CHK_(ptr);
3915       ctx->SetLastTag(tag);
3916       goto message_done;
3917     }
3918     ptr = UnknownFieldParse(
3919         tag,
3920         _internal_metadata_.mutable_unknown_fields<std::string>(),
3921         ptr, ctx);
3922     CHK_(ptr != nullptr);
3923   }  // while
3924 message_done:
3925   return ptr;
3926 failure:
3927   ptr = nullptr;
3928   goto message_done;
3929 #undef CHK_
3930 }
3931 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const3932 ::uint8_t* EligibilityEvalTaskCapabilities::_InternalSerialize(
3933     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
3934   // @@protoc_insertion_point(serialize_to_array_start:google.internal.federatedml.v2.EligibilityEvalTaskCapabilities)
3935   ::uint32_t cached_has_bits = 0;
3936   (void) cached_has_bits;
3937 
3938   // bool supports_multiple_task_assignment = 1;
3939   if (this->_internal_supports_multiple_task_assignment() != 0) {
3940     target = stream->EnsureSpace(target);
3941     target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_supports_multiple_task_assignment(), target);
3942   }
3943 
3944   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3945     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
3946         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
3947   }
3948   // @@protoc_insertion_point(serialize_to_array_end:google.internal.federatedml.v2.EligibilityEvalTaskCapabilities)
3949   return target;
3950 }
3951 
ByteSizeLong() const3952 size_t EligibilityEvalTaskCapabilities::ByteSizeLong() const {
3953 // @@protoc_insertion_point(message_byte_size_start:google.internal.federatedml.v2.EligibilityEvalTaskCapabilities)
3954   size_t total_size = 0;
3955 
3956   ::uint32_t cached_has_bits = 0;
3957   // Prevent compiler warnings about cached_has_bits being unused
3958   (void) cached_has_bits;
3959 
3960   // bool supports_multiple_task_assignment = 1;
3961   if (this->_internal_supports_multiple_task_assignment() != 0) {
3962     total_size += 1 + 1;
3963   }
3964 
3965   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3966     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
3967   }
3968   int cached_size = ::_pbi::ToCachedSize(total_size);
3969   SetCachedSize(cached_size);
3970   return total_size;
3971 }
3972 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)3973 void EligibilityEvalTaskCapabilities::CheckTypeAndMergeFrom(
3974     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
3975   MergeFrom(*::_pbi::DownCast<const EligibilityEvalTaskCapabilities*>(
3976       &from));
3977 }
3978 
MergeFrom(const EligibilityEvalTaskCapabilities & from)3979 void EligibilityEvalTaskCapabilities::MergeFrom(const EligibilityEvalTaskCapabilities& from) {
3980   EligibilityEvalTaskCapabilities* const _this = this;
3981   // @@protoc_insertion_point(class_specific_merge_from_start:google.internal.federatedml.v2.EligibilityEvalTaskCapabilities)
3982   GOOGLE_DCHECK_NE(&from, _this);
3983   ::uint32_t cached_has_bits = 0;
3984   (void) cached_has_bits;
3985 
3986   if (from._internal_supports_multiple_task_assignment() != 0) {
3987     _this->_internal_set_supports_multiple_task_assignment(from._internal_supports_multiple_task_assignment());
3988   }
3989   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
3990 }
3991 
CopyFrom(const EligibilityEvalTaskCapabilities & from)3992 void EligibilityEvalTaskCapabilities::CopyFrom(const EligibilityEvalTaskCapabilities& from) {
3993 // @@protoc_insertion_point(class_specific_copy_from_start:google.internal.federatedml.v2.EligibilityEvalTaskCapabilities)
3994   if (&from == this) return;
3995   Clear();
3996   MergeFrom(from);
3997 }
3998 
IsInitialized() const3999 bool EligibilityEvalTaskCapabilities::IsInitialized() const {
4000   return true;
4001 }
4002 
InternalSwap(EligibilityEvalTaskCapabilities * other)4003 void EligibilityEvalTaskCapabilities::InternalSwap(EligibilityEvalTaskCapabilities* other) {
4004   using std::swap;
4005   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
4006   swap(_impl_.supports_multiple_task_assignment_, other->_impl_.supports_multiple_task_assignment_);
4007 }
4008 
GetTypeName() const4009 std::string EligibilityEvalTaskCapabilities::GetTypeName() const {
4010   return "google.internal.federatedml.v2.EligibilityEvalTaskCapabilities";
4011 }
4012 
4013 
4014 // ===================================================================
4015 
4016 class EligibilityEvalCheckinResponse::_Internal {
4017  public:
4018   static const ::google::internal::federatedml::v2::EligibilityEvalPayload& eligibility_eval_payload(const EligibilityEvalCheckinResponse* msg);
4019   static const ::google::internal::federatedml::v2::NoEligibilityEvalConfigured& no_eligibility_eval_configured(const EligibilityEvalCheckinResponse* msg);
4020   static const ::google::internal::federatedml::v2::RejectionInfo& rejection_info(const EligibilityEvalCheckinResponse* msg);
4021   static const ::google::internal::federatedml::v2::ProtocolOptionsResponse& protocol_options_response(const EligibilityEvalCheckinResponse* msg);
4022 };
4023 
4024 const ::google::internal::federatedml::v2::EligibilityEvalPayload&
eligibility_eval_payload(const EligibilityEvalCheckinResponse * msg)4025 EligibilityEvalCheckinResponse::_Internal::eligibility_eval_payload(const EligibilityEvalCheckinResponse* msg) {
4026   return *msg->_impl_.checkin_result_.eligibility_eval_payload_;
4027 }
4028 const ::google::internal::federatedml::v2::NoEligibilityEvalConfigured&
no_eligibility_eval_configured(const EligibilityEvalCheckinResponse * msg)4029 EligibilityEvalCheckinResponse::_Internal::no_eligibility_eval_configured(const EligibilityEvalCheckinResponse* msg) {
4030   return *msg->_impl_.checkin_result_.no_eligibility_eval_configured_;
4031 }
4032 const ::google::internal::federatedml::v2::RejectionInfo&
rejection_info(const EligibilityEvalCheckinResponse * msg)4033 EligibilityEvalCheckinResponse::_Internal::rejection_info(const EligibilityEvalCheckinResponse* msg) {
4034   return *msg->_impl_.checkin_result_.rejection_info_;
4035 }
4036 const ::google::internal::federatedml::v2::ProtocolOptionsResponse&
protocol_options_response(const EligibilityEvalCheckinResponse * msg)4037 EligibilityEvalCheckinResponse::_Internal::protocol_options_response(const EligibilityEvalCheckinResponse* msg) {
4038   return *msg->_impl_.protocol_options_response_;
4039 }
set_allocated_eligibility_eval_payload(::google::internal::federatedml::v2::EligibilityEvalPayload * eligibility_eval_payload)4040 void EligibilityEvalCheckinResponse::set_allocated_eligibility_eval_payload(::google::internal::federatedml::v2::EligibilityEvalPayload* eligibility_eval_payload) {
4041   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
4042   clear_checkin_result();
4043   if (eligibility_eval_payload) {
4044     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
4045       ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(eligibility_eval_payload);
4046     if (message_arena != submessage_arena) {
4047       eligibility_eval_payload = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
4048           message_arena, eligibility_eval_payload, submessage_arena);
4049     }
4050     set_has_eligibility_eval_payload();
4051     _impl_.checkin_result_.eligibility_eval_payload_ = eligibility_eval_payload;
4052   }
4053   // @@protoc_insertion_point(field_set_allocated:google.internal.federatedml.v2.EligibilityEvalCheckinResponse.eligibility_eval_payload)
4054 }
set_allocated_no_eligibility_eval_configured(::google::internal::federatedml::v2::NoEligibilityEvalConfigured * no_eligibility_eval_configured)4055 void EligibilityEvalCheckinResponse::set_allocated_no_eligibility_eval_configured(::google::internal::federatedml::v2::NoEligibilityEvalConfigured* no_eligibility_eval_configured) {
4056   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
4057   clear_checkin_result();
4058   if (no_eligibility_eval_configured) {
4059     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
4060       ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(no_eligibility_eval_configured);
4061     if (message_arena != submessage_arena) {
4062       no_eligibility_eval_configured = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
4063           message_arena, no_eligibility_eval_configured, submessage_arena);
4064     }
4065     set_has_no_eligibility_eval_configured();
4066     _impl_.checkin_result_.no_eligibility_eval_configured_ = no_eligibility_eval_configured;
4067   }
4068   // @@protoc_insertion_point(field_set_allocated:google.internal.federatedml.v2.EligibilityEvalCheckinResponse.no_eligibility_eval_configured)
4069 }
set_allocated_rejection_info(::google::internal::federatedml::v2::RejectionInfo * rejection_info)4070 void EligibilityEvalCheckinResponse::set_allocated_rejection_info(::google::internal::federatedml::v2::RejectionInfo* rejection_info) {
4071   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
4072   clear_checkin_result();
4073   if (rejection_info) {
4074     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
4075       ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(rejection_info);
4076     if (message_arena != submessage_arena) {
4077       rejection_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
4078           message_arena, rejection_info, submessage_arena);
4079     }
4080     set_has_rejection_info();
4081     _impl_.checkin_result_.rejection_info_ = rejection_info;
4082   }
4083   // @@protoc_insertion_point(field_set_allocated:google.internal.federatedml.v2.EligibilityEvalCheckinResponse.rejection_info)
4084 }
EligibilityEvalCheckinResponse(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)4085 EligibilityEvalCheckinResponse::EligibilityEvalCheckinResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena,
4086                          bool is_message_owned)
4087   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
4088   SharedCtor(arena, is_message_owned);
4089   // @@protoc_insertion_point(arena_constructor:google.internal.federatedml.v2.EligibilityEvalCheckinResponse)
4090 }
EligibilityEvalCheckinResponse(const EligibilityEvalCheckinResponse & from)4091 EligibilityEvalCheckinResponse::EligibilityEvalCheckinResponse(const EligibilityEvalCheckinResponse& from)
4092   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
4093   EligibilityEvalCheckinResponse* const _this = this; (void)_this;
4094   new (&_impl_) Impl_{
4095       decltype(_impl_.protocol_options_response_){nullptr}
4096     , decltype(_impl_.checkin_result_){}
4097     , /*decltype(_impl_._cached_size_)*/{}
4098     , /*decltype(_impl_._oneof_case_)*/{}};
4099 
4100   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
4101   if (from._internal_has_protocol_options_response()) {
4102     _this->_impl_.protocol_options_response_ = new ::google::internal::federatedml::v2::ProtocolOptionsResponse(*from._impl_.protocol_options_response_);
4103   }
4104   clear_has_checkin_result();
4105   switch (from.checkin_result_case()) {
4106     case kEligibilityEvalPayload: {
4107       _this->_internal_mutable_eligibility_eval_payload()->::google::internal::federatedml::v2::EligibilityEvalPayload::MergeFrom(
4108           from._internal_eligibility_eval_payload());
4109       break;
4110     }
4111     case kNoEligibilityEvalConfigured: {
4112       _this->_internal_mutable_no_eligibility_eval_configured()->::google::internal::federatedml::v2::NoEligibilityEvalConfigured::MergeFrom(
4113           from._internal_no_eligibility_eval_configured());
4114       break;
4115     }
4116     case kRejectionInfo: {
4117       _this->_internal_mutable_rejection_info()->::google::internal::federatedml::v2::RejectionInfo::MergeFrom(
4118           from._internal_rejection_info());
4119       break;
4120     }
4121     case CHECKIN_RESULT_NOT_SET: {
4122       break;
4123     }
4124   }
4125   // @@protoc_insertion_point(copy_constructor:google.internal.federatedml.v2.EligibilityEvalCheckinResponse)
4126 }
4127 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)4128 inline void EligibilityEvalCheckinResponse::SharedCtor(
4129     ::_pb::Arena* arena, bool is_message_owned) {
4130   (void)arena;
4131   (void)is_message_owned;
4132   new (&_impl_) Impl_{
4133       decltype(_impl_.protocol_options_response_){nullptr}
4134     , decltype(_impl_.checkin_result_){}
4135     , /*decltype(_impl_._cached_size_)*/{}
4136     , /*decltype(_impl_._oneof_case_)*/{}
4137   };
4138   clear_has_checkin_result();
4139 }
4140 
~EligibilityEvalCheckinResponse()4141 EligibilityEvalCheckinResponse::~EligibilityEvalCheckinResponse() {
4142   // @@protoc_insertion_point(destructor:google.internal.federatedml.v2.EligibilityEvalCheckinResponse)
4143   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
4144   (void)arena;
4145     return;
4146   }
4147   SharedDtor();
4148 }
4149 
SharedDtor()4150 inline void EligibilityEvalCheckinResponse::SharedDtor() {
4151   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
4152   if (this != internal_default_instance()) delete _impl_.protocol_options_response_;
4153   if (has_checkin_result()) {
4154     clear_checkin_result();
4155   }
4156 }
4157 
SetCachedSize(int size) const4158 void EligibilityEvalCheckinResponse::SetCachedSize(int size) const {
4159   _impl_._cached_size_.Set(size);
4160 }
4161 
clear_checkin_result()4162 void EligibilityEvalCheckinResponse::clear_checkin_result() {
4163 // @@protoc_insertion_point(one_of_clear_start:google.internal.federatedml.v2.EligibilityEvalCheckinResponse)
4164   switch (checkin_result_case()) {
4165     case kEligibilityEvalPayload: {
4166       if (GetArenaForAllocation() == nullptr) {
4167         delete _impl_.checkin_result_.eligibility_eval_payload_;
4168       }
4169       break;
4170     }
4171     case kNoEligibilityEvalConfigured: {
4172       if (GetArenaForAllocation() == nullptr) {
4173         delete _impl_.checkin_result_.no_eligibility_eval_configured_;
4174       }
4175       break;
4176     }
4177     case kRejectionInfo: {
4178       if (GetArenaForAllocation() == nullptr) {
4179         delete _impl_.checkin_result_.rejection_info_;
4180       }
4181       break;
4182     }
4183     case CHECKIN_RESULT_NOT_SET: {
4184       break;
4185     }
4186   }
4187   _impl_._oneof_case_[0] = CHECKIN_RESULT_NOT_SET;
4188 }
4189 
4190 
Clear()4191 void EligibilityEvalCheckinResponse::Clear() {
4192 // @@protoc_insertion_point(message_clear_start:google.internal.federatedml.v2.EligibilityEvalCheckinResponse)
4193   ::uint32_t cached_has_bits = 0;
4194   // Prevent compiler warnings about cached_has_bits being unused
4195   (void) cached_has_bits;
4196 
4197   if (GetArenaForAllocation() == nullptr && _impl_.protocol_options_response_ != nullptr) {
4198     delete _impl_.protocol_options_response_;
4199   }
4200   _impl_.protocol_options_response_ = nullptr;
4201   clear_checkin_result();
4202   _internal_metadata_.Clear<std::string>();
4203 }
4204 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)4205 const char* EligibilityEvalCheckinResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
4206 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
4207   while (!ctx->Done(&ptr)) {
4208     ::uint32_t tag;
4209     ptr = ::_pbi::ReadTag(ptr, &tag);
4210     switch (tag >> 3) {
4211       // .google.internal.federatedml.v2.EligibilityEvalPayload eligibility_eval_payload = 1;
4212       case 1:
4213         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
4214           ptr = ctx->ParseMessage(_internal_mutable_eligibility_eval_payload(), ptr);
4215           CHK_(ptr);
4216         } else {
4217           goto handle_unusual;
4218         }
4219         continue;
4220       // .google.internal.federatedml.v2.NoEligibilityEvalConfigured no_eligibility_eval_configured = 2;
4221       case 2:
4222         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
4223           ptr = ctx->ParseMessage(_internal_mutable_no_eligibility_eval_configured(), ptr);
4224           CHK_(ptr);
4225         } else {
4226           goto handle_unusual;
4227         }
4228         continue;
4229       // .google.internal.federatedml.v2.RejectionInfo rejection_info = 3;
4230       case 3:
4231         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
4232           ptr = ctx->ParseMessage(_internal_mutable_rejection_info(), ptr);
4233           CHK_(ptr);
4234         } else {
4235           goto handle_unusual;
4236         }
4237         continue;
4238       // .google.internal.federatedml.v2.ProtocolOptionsResponse protocol_options_response = 4;
4239       case 4:
4240         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
4241           ptr = ctx->ParseMessage(_internal_mutable_protocol_options_response(), ptr);
4242           CHK_(ptr);
4243         } else {
4244           goto handle_unusual;
4245         }
4246         continue;
4247       default:
4248         goto handle_unusual;
4249     }  // switch
4250   handle_unusual:
4251     if ((tag == 0) || ((tag & 7) == 4)) {
4252       CHK_(ptr);
4253       ctx->SetLastTag(tag);
4254       goto message_done;
4255     }
4256     ptr = UnknownFieldParse(
4257         tag,
4258         _internal_metadata_.mutable_unknown_fields<std::string>(),
4259         ptr, ctx);
4260     CHK_(ptr != nullptr);
4261   }  // while
4262 message_done:
4263   return ptr;
4264 failure:
4265   ptr = nullptr;
4266   goto message_done;
4267 #undef CHK_
4268 }
4269 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const4270 ::uint8_t* EligibilityEvalCheckinResponse::_InternalSerialize(
4271     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
4272   // @@protoc_insertion_point(serialize_to_array_start:google.internal.federatedml.v2.EligibilityEvalCheckinResponse)
4273   ::uint32_t cached_has_bits = 0;
4274   (void) cached_has_bits;
4275 
4276   // .google.internal.federatedml.v2.EligibilityEvalPayload eligibility_eval_payload = 1;
4277   if (_internal_has_eligibility_eval_payload()) {
4278     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
4279       InternalWriteMessage(1, _Internal::eligibility_eval_payload(this),
4280         _Internal::eligibility_eval_payload(this).GetCachedSize(), target, stream);
4281   }
4282 
4283   // .google.internal.federatedml.v2.NoEligibilityEvalConfigured no_eligibility_eval_configured = 2;
4284   if (_internal_has_no_eligibility_eval_configured()) {
4285     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
4286       InternalWriteMessage(2, _Internal::no_eligibility_eval_configured(this),
4287         _Internal::no_eligibility_eval_configured(this).GetCachedSize(), target, stream);
4288   }
4289 
4290   // .google.internal.federatedml.v2.RejectionInfo rejection_info = 3;
4291   if (_internal_has_rejection_info()) {
4292     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
4293       InternalWriteMessage(3, _Internal::rejection_info(this),
4294         _Internal::rejection_info(this).GetCachedSize(), target, stream);
4295   }
4296 
4297   // .google.internal.federatedml.v2.ProtocolOptionsResponse protocol_options_response = 4;
4298   if (this->_internal_has_protocol_options_response()) {
4299     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
4300       InternalWriteMessage(4, _Internal::protocol_options_response(this),
4301         _Internal::protocol_options_response(this).GetCachedSize(), target, stream);
4302   }
4303 
4304   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4305     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
4306         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
4307   }
4308   // @@protoc_insertion_point(serialize_to_array_end:google.internal.federatedml.v2.EligibilityEvalCheckinResponse)
4309   return target;
4310 }
4311 
ByteSizeLong() const4312 size_t EligibilityEvalCheckinResponse::ByteSizeLong() const {
4313 // @@protoc_insertion_point(message_byte_size_start:google.internal.federatedml.v2.EligibilityEvalCheckinResponse)
4314   size_t total_size = 0;
4315 
4316   ::uint32_t cached_has_bits = 0;
4317   // Prevent compiler warnings about cached_has_bits being unused
4318   (void) cached_has_bits;
4319 
4320   // .google.internal.federatedml.v2.ProtocolOptionsResponse protocol_options_response = 4;
4321   if (this->_internal_has_protocol_options_response()) {
4322     total_size += 1 +
4323       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
4324         *_impl_.protocol_options_response_);
4325   }
4326 
4327   switch (checkin_result_case()) {
4328     // .google.internal.federatedml.v2.EligibilityEvalPayload eligibility_eval_payload = 1;
4329     case kEligibilityEvalPayload: {
4330       total_size += 1 +
4331         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
4332           *_impl_.checkin_result_.eligibility_eval_payload_);
4333       break;
4334     }
4335     // .google.internal.federatedml.v2.NoEligibilityEvalConfigured no_eligibility_eval_configured = 2;
4336     case kNoEligibilityEvalConfigured: {
4337       total_size += 1 +
4338         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
4339           *_impl_.checkin_result_.no_eligibility_eval_configured_);
4340       break;
4341     }
4342     // .google.internal.federatedml.v2.RejectionInfo rejection_info = 3;
4343     case kRejectionInfo: {
4344       total_size += 1 +
4345         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
4346           *_impl_.checkin_result_.rejection_info_);
4347       break;
4348     }
4349     case CHECKIN_RESULT_NOT_SET: {
4350       break;
4351     }
4352   }
4353   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4354     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
4355   }
4356   int cached_size = ::_pbi::ToCachedSize(total_size);
4357   SetCachedSize(cached_size);
4358   return total_size;
4359 }
4360 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)4361 void EligibilityEvalCheckinResponse::CheckTypeAndMergeFrom(
4362     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
4363   MergeFrom(*::_pbi::DownCast<const EligibilityEvalCheckinResponse*>(
4364       &from));
4365 }
4366 
MergeFrom(const EligibilityEvalCheckinResponse & from)4367 void EligibilityEvalCheckinResponse::MergeFrom(const EligibilityEvalCheckinResponse& from) {
4368   EligibilityEvalCheckinResponse* const _this = this;
4369   // @@protoc_insertion_point(class_specific_merge_from_start:google.internal.federatedml.v2.EligibilityEvalCheckinResponse)
4370   GOOGLE_DCHECK_NE(&from, _this);
4371   ::uint32_t cached_has_bits = 0;
4372   (void) cached_has_bits;
4373 
4374   if (from._internal_has_protocol_options_response()) {
4375     _this->_internal_mutable_protocol_options_response()->::google::internal::federatedml::v2::ProtocolOptionsResponse::MergeFrom(
4376         from._internal_protocol_options_response());
4377   }
4378   switch (from.checkin_result_case()) {
4379     case kEligibilityEvalPayload: {
4380       _this->_internal_mutable_eligibility_eval_payload()->::google::internal::federatedml::v2::EligibilityEvalPayload::MergeFrom(
4381           from._internal_eligibility_eval_payload());
4382       break;
4383     }
4384     case kNoEligibilityEvalConfigured: {
4385       _this->_internal_mutable_no_eligibility_eval_configured()->::google::internal::federatedml::v2::NoEligibilityEvalConfigured::MergeFrom(
4386           from._internal_no_eligibility_eval_configured());
4387       break;
4388     }
4389     case kRejectionInfo: {
4390       _this->_internal_mutable_rejection_info()->::google::internal::federatedml::v2::RejectionInfo::MergeFrom(
4391           from._internal_rejection_info());
4392       break;
4393     }
4394     case CHECKIN_RESULT_NOT_SET: {
4395       break;
4396     }
4397   }
4398   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
4399 }
4400 
CopyFrom(const EligibilityEvalCheckinResponse & from)4401 void EligibilityEvalCheckinResponse::CopyFrom(const EligibilityEvalCheckinResponse& from) {
4402 // @@protoc_insertion_point(class_specific_copy_from_start:google.internal.federatedml.v2.EligibilityEvalCheckinResponse)
4403   if (&from == this) return;
4404   Clear();
4405   MergeFrom(from);
4406 }
4407 
IsInitialized() const4408 bool EligibilityEvalCheckinResponse::IsInitialized() const {
4409   return true;
4410 }
4411 
InternalSwap(EligibilityEvalCheckinResponse * other)4412 void EligibilityEvalCheckinResponse::InternalSwap(EligibilityEvalCheckinResponse* other) {
4413   using std::swap;
4414   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
4415   swap(_impl_.protocol_options_response_, other->_impl_.protocol_options_response_);
4416   swap(_impl_.checkin_result_, other->_impl_.checkin_result_);
4417   swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
4418 }
4419 
GetTypeName() const4420 std::string EligibilityEvalCheckinResponse::GetTypeName() const {
4421   return "google.internal.federatedml.v2.EligibilityEvalCheckinResponse";
4422 }
4423 
4424 
4425 // ===================================================================
4426 
4427 class EligibilityEvalPayload::_Internal {
4428  public:
4429   static const ::google::internal::federatedml::v2::UriResource& init_checkpoint_resource(const EligibilityEvalPayload* msg);
4430   static const ::google::internal::federatedml::v2::UriResource& plan_resource(const EligibilityEvalPayload* msg);
4431   static const ::google::internal::federatedml::v2::UriResource& population_eligibility_spec_resource(const EligibilityEvalPayload* msg);
4432 };
4433 
4434 const ::google::internal::federatedml::v2::UriResource&
init_checkpoint_resource(const EligibilityEvalPayload * msg)4435 EligibilityEvalPayload::_Internal::init_checkpoint_resource(const EligibilityEvalPayload* msg) {
4436   return *msg->_impl_.init_checkpoint_type_.init_checkpoint_resource_;
4437 }
4438 const ::google::internal::federatedml::v2::UriResource&
plan_resource(const EligibilityEvalPayload * msg)4439 EligibilityEvalPayload::_Internal::plan_resource(const EligibilityEvalPayload* msg) {
4440   return *msg->_impl_.plan_type_.plan_resource_;
4441 }
4442 const ::google::internal::federatedml::v2::UriResource&
population_eligibility_spec_resource(const EligibilityEvalPayload * msg)4443 EligibilityEvalPayload::_Internal::population_eligibility_spec_resource(const EligibilityEvalPayload* msg) {
4444   return *msg->_impl_.population_eligibility_spec_type_.population_eligibility_spec_resource_;
4445 }
set_allocated_init_checkpoint_resource(::google::internal::federatedml::v2::UriResource * init_checkpoint_resource)4446 void EligibilityEvalPayload::set_allocated_init_checkpoint_resource(::google::internal::federatedml::v2::UriResource* init_checkpoint_resource) {
4447   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
4448   clear_init_checkpoint_type();
4449   if (init_checkpoint_resource) {
4450     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
4451       ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(init_checkpoint_resource);
4452     if (message_arena != submessage_arena) {
4453       init_checkpoint_resource = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
4454           message_arena, init_checkpoint_resource, submessage_arena);
4455     }
4456     set_has_init_checkpoint_resource();
4457     _impl_.init_checkpoint_type_.init_checkpoint_resource_ = init_checkpoint_resource;
4458   }
4459   // @@protoc_insertion_point(field_set_allocated:google.internal.federatedml.v2.EligibilityEvalPayload.init_checkpoint_resource)
4460 }
set_allocated_plan_resource(::google::internal::federatedml::v2::UriResource * plan_resource)4461 void EligibilityEvalPayload::set_allocated_plan_resource(::google::internal::federatedml::v2::UriResource* plan_resource) {
4462   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
4463   clear_plan_type();
4464   if (plan_resource) {
4465     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
4466       ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(plan_resource);
4467     if (message_arena != submessage_arena) {
4468       plan_resource = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
4469           message_arena, plan_resource, submessage_arena);
4470     }
4471     set_has_plan_resource();
4472     _impl_.plan_type_.plan_resource_ = plan_resource;
4473   }
4474   // @@protoc_insertion_point(field_set_allocated:google.internal.federatedml.v2.EligibilityEvalPayload.plan_resource)
4475 }
set_allocated_population_eligibility_spec_resource(::google::internal::federatedml::v2::UriResource * population_eligibility_spec_resource)4476 void EligibilityEvalPayload::set_allocated_population_eligibility_spec_resource(::google::internal::federatedml::v2::UriResource* population_eligibility_spec_resource) {
4477   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
4478   clear_population_eligibility_spec_type();
4479   if (population_eligibility_spec_resource) {
4480     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
4481       ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(population_eligibility_spec_resource);
4482     if (message_arena != submessage_arena) {
4483       population_eligibility_spec_resource = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
4484           message_arena, population_eligibility_spec_resource, submessage_arena);
4485     }
4486     set_has_population_eligibility_spec_resource();
4487     _impl_.population_eligibility_spec_type_.population_eligibility_spec_resource_ = population_eligibility_spec_resource;
4488   }
4489   // @@protoc_insertion_point(field_set_allocated:google.internal.federatedml.v2.EligibilityEvalPayload.population_eligibility_spec_resource)
4490 }
EligibilityEvalPayload(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)4491 EligibilityEvalPayload::EligibilityEvalPayload(::PROTOBUF_NAMESPACE_ID::Arena* arena,
4492                          bool is_message_owned)
4493   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
4494   SharedCtor(arena, is_message_owned);
4495   // @@protoc_insertion_point(arena_constructor:google.internal.federatedml.v2.EligibilityEvalPayload)
4496 }
EligibilityEvalPayload(const EligibilityEvalPayload & from)4497 EligibilityEvalPayload::EligibilityEvalPayload(const EligibilityEvalPayload& from)
4498   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
4499   EligibilityEvalPayload* const _this = this; (void)_this;
4500   new (&_impl_) Impl_{
4501       decltype(_impl_.execution_id_){}
4502     , decltype(_impl_.init_checkpoint_type_){}
4503     , decltype(_impl_.plan_type_){}
4504     , decltype(_impl_.population_eligibility_spec_type_){}
4505     , /*decltype(_impl_._cached_size_)*/{}
4506     , /*decltype(_impl_._oneof_case_)*/{}};
4507 
4508   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
4509   _impl_.execution_id_.InitDefault();
4510   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4511     _impl_.execution_id_.Set("", GetArenaForAllocation());
4512   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4513   if (!from._internal_execution_id().empty()) {
4514     _this->_impl_.execution_id_.Set(from._internal_execution_id(),
4515       _this->GetArenaForAllocation());
4516   }
4517   clear_has_init_checkpoint_type();
4518   switch (from.init_checkpoint_type_case()) {
4519     case kInitCheckpoint: {
4520       _this->_internal_set_init_checkpoint(from._internal_init_checkpoint());
4521       break;
4522     }
4523     case kInitCheckpointResource: {
4524       _this->_internal_mutable_init_checkpoint_resource()->::google::internal::federatedml::v2::UriResource::MergeFrom(
4525           from._internal_init_checkpoint_resource());
4526       break;
4527     }
4528     case INIT_CHECKPOINT_TYPE_NOT_SET: {
4529       break;
4530     }
4531   }
4532   clear_has_plan_type();
4533   switch (from.plan_type_case()) {
4534     case kPlan: {
4535       _this->_internal_set_plan(from._internal_plan());
4536       break;
4537     }
4538     case kPlanResource: {
4539       _this->_internal_mutable_plan_resource()->::google::internal::federatedml::v2::UriResource::MergeFrom(
4540           from._internal_plan_resource());
4541       break;
4542     }
4543     case PLAN_TYPE_NOT_SET: {
4544       break;
4545     }
4546   }
4547   clear_has_population_eligibility_spec_type();
4548   switch (from.population_eligibility_spec_type_case()) {
4549     case kPopulationEligibilitySpec: {
4550       _this->_internal_set_population_eligibility_spec(from._internal_population_eligibility_spec());
4551       break;
4552     }
4553     case kPopulationEligibilitySpecResource: {
4554       _this->_internal_mutable_population_eligibility_spec_resource()->::google::internal::federatedml::v2::UriResource::MergeFrom(
4555           from._internal_population_eligibility_spec_resource());
4556       break;
4557     }
4558     case POPULATION_ELIGIBILITY_SPEC_TYPE_NOT_SET: {
4559       break;
4560     }
4561   }
4562   // @@protoc_insertion_point(copy_constructor:google.internal.federatedml.v2.EligibilityEvalPayload)
4563 }
4564 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)4565 inline void EligibilityEvalPayload::SharedCtor(
4566     ::_pb::Arena* arena, bool is_message_owned) {
4567   (void)arena;
4568   (void)is_message_owned;
4569   new (&_impl_) Impl_{
4570       decltype(_impl_.execution_id_){}
4571     , decltype(_impl_.init_checkpoint_type_){}
4572     , decltype(_impl_.plan_type_){}
4573     , decltype(_impl_.population_eligibility_spec_type_){}
4574     , /*decltype(_impl_._cached_size_)*/{}
4575     , /*decltype(_impl_._oneof_case_)*/{}
4576   };
4577   _impl_.execution_id_.InitDefault();
4578   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4579     _impl_.execution_id_.Set("", GetArenaForAllocation());
4580   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4581   clear_has_init_checkpoint_type();
4582   clear_has_plan_type();
4583   clear_has_population_eligibility_spec_type();
4584 }
4585 
~EligibilityEvalPayload()4586 EligibilityEvalPayload::~EligibilityEvalPayload() {
4587   // @@protoc_insertion_point(destructor:google.internal.federatedml.v2.EligibilityEvalPayload)
4588   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
4589   (void)arena;
4590     return;
4591   }
4592   SharedDtor();
4593 }
4594 
SharedDtor()4595 inline void EligibilityEvalPayload::SharedDtor() {
4596   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
4597   _impl_.execution_id_.Destroy();
4598   if (has_init_checkpoint_type()) {
4599     clear_init_checkpoint_type();
4600   }
4601   if (has_plan_type()) {
4602     clear_plan_type();
4603   }
4604   if (has_population_eligibility_spec_type()) {
4605     clear_population_eligibility_spec_type();
4606   }
4607 }
4608 
SetCachedSize(int size) const4609 void EligibilityEvalPayload::SetCachedSize(int size) const {
4610   _impl_._cached_size_.Set(size);
4611 }
4612 
clear_init_checkpoint_type()4613 void EligibilityEvalPayload::clear_init_checkpoint_type() {
4614 // @@protoc_insertion_point(one_of_clear_start:google.internal.federatedml.v2.EligibilityEvalPayload)
4615   switch (init_checkpoint_type_case()) {
4616     case kInitCheckpoint: {
4617       _impl_.init_checkpoint_type_.init_checkpoint_.Destroy();
4618       break;
4619     }
4620     case kInitCheckpointResource: {
4621       if (GetArenaForAllocation() == nullptr) {
4622         delete _impl_.init_checkpoint_type_.init_checkpoint_resource_;
4623       }
4624       break;
4625     }
4626     case INIT_CHECKPOINT_TYPE_NOT_SET: {
4627       break;
4628     }
4629   }
4630   _impl_._oneof_case_[0] = INIT_CHECKPOINT_TYPE_NOT_SET;
4631 }
4632 
clear_plan_type()4633 void EligibilityEvalPayload::clear_plan_type() {
4634 // @@protoc_insertion_point(one_of_clear_start:google.internal.federatedml.v2.EligibilityEvalPayload)
4635   switch (plan_type_case()) {
4636     case kPlan: {
4637       _impl_.plan_type_.plan_.Destroy();
4638       break;
4639     }
4640     case kPlanResource: {
4641       if (GetArenaForAllocation() == nullptr) {
4642         delete _impl_.plan_type_.plan_resource_;
4643       }
4644       break;
4645     }
4646     case PLAN_TYPE_NOT_SET: {
4647       break;
4648     }
4649   }
4650   _impl_._oneof_case_[1] = PLAN_TYPE_NOT_SET;
4651 }
4652 
clear_population_eligibility_spec_type()4653 void EligibilityEvalPayload::clear_population_eligibility_spec_type() {
4654 // @@protoc_insertion_point(one_of_clear_start:google.internal.federatedml.v2.EligibilityEvalPayload)
4655   switch (population_eligibility_spec_type_case()) {
4656     case kPopulationEligibilitySpec: {
4657       _impl_.population_eligibility_spec_type_.population_eligibility_spec_.Destroy();
4658       break;
4659     }
4660     case kPopulationEligibilitySpecResource: {
4661       if (GetArenaForAllocation() == nullptr) {
4662         delete _impl_.population_eligibility_spec_type_.population_eligibility_spec_resource_;
4663       }
4664       break;
4665     }
4666     case POPULATION_ELIGIBILITY_SPEC_TYPE_NOT_SET: {
4667       break;
4668     }
4669   }
4670   _impl_._oneof_case_[2] = POPULATION_ELIGIBILITY_SPEC_TYPE_NOT_SET;
4671 }
4672 
4673 
Clear()4674 void EligibilityEvalPayload::Clear() {
4675 // @@protoc_insertion_point(message_clear_start:google.internal.federatedml.v2.EligibilityEvalPayload)
4676   ::uint32_t cached_has_bits = 0;
4677   // Prevent compiler warnings about cached_has_bits being unused
4678   (void) cached_has_bits;
4679 
4680   _impl_.execution_id_.ClearToEmpty();
4681   clear_init_checkpoint_type();
4682   clear_plan_type();
4683   clear_population_eligibility_spec_type();
4684   _internal_metadata_.Clear<std::string>();
4685 }
4686 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)4687 const char* EligibilityEvalPayload::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
4688 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
4689   while (!ctx->Done(&ptr)) {
4690     ::uint32_t tag;
4691     ptr = ::_pbi::ReadTag(ptr, &tag);
4692     switch (tag >> 3) {
4693       // bytes init_checkpoint = 1;
4694       case 1:
4695         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
4696           auto str = _internal_mutable_init_checkpoint();
4697           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
4698           CHK_(ptr);
4699         } else {
4700           goto handle_unusual;
4701         }
4702         continue;
4703       // bytes plan = 2;
4704       case 2:
4705         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
4706           auto str = _internal_mutable_plan();
4707           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
4708           CHK_(ptr);
4709         } else {
4710           goto handle_unusual;
4711         }
4712         continue;
4713       // string execution_id = 3;
4714       case 3:
4715         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
4716           auto str = _internal_mutable_execution_id();
4717           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
4718           CHK_(ptr);
4719           CHK_(::_pbi::VerifyUTF8(str, nullptr));
4720         } else {
4721           goto handle_unusual;
4722         }
4723         continue;
4724       // .google.internal.federatedml.v2.UriResource init_checkpoint_resource = 4;
4725       case 4:
4726         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
4727           ptr = ctx->ParseMessage(_internal_mutable_init_checkpoint_resource(), ptr);
4728           CHK_(ptr);
4729         } else {
4730           goto handle_unusual;
4731         }
4732         continue;
4733       // .google.internal.federatedml.v2.UriResource plan_resource = 5;
4734       case 5:
4735         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
4736           ptr = ctx->ParseMessage(_internal_mutable_plan_resource(), ptr);
4737           CHK_(ptr);
4738         } else {
4739           goto handle_unusual;
4740         }
4741         continue;
4742       // bytes population_eligibility_spec = 6;
4743       case 6:
4744         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) {
4745           auto str = _internal_mutable_population_eligibility_spec();
4746           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
4747           CHK_(ptr);
4748         } else {
4749           goto handle_unusual;
4750         }
4751         continue;
4752       // .google.internal.federatedml.v2.UriResource population_eligibility_spec_resource = 7;
4753       case 7:
4754         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) {
4755           ptr = ctx->ParseMessage(_internal_mutable_population_eligibility_spec_resource(), ptr);
4756           CHK_(ptr);
4757         } else {
4758           goto handle_unusual;
4759         }
4760         continue;
4761       default:
4762         goto handle_unusual;
4763     }  // switch
4764   handle_unusual:
4765     if ((tag == 0) || ((tag & 7) == 4)) {
4766       CHK_(ptr);
4767       ctx->SetLastTag(tag);
4768       goto message_done;
4769     }
4770     ptr = UnknownFieldParse(
4771         tag,
4772         _internal_metadata_.mutable_unknown_fields<std::string>(),
4773         ptr, ctx);
4774     CHK_(ptr != nullptr);
4775   }  // while
4776 message_done:
4777   return ptr;
4778 failure:
4779   ptr = nullptr;
4780   goto message_done;
4781 #undef CHK_
4782 }
4783 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const4784 ::uint8_t* EligibilityEvalPayload::_InternalSerialize(
4785     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
4786   // @@protoc_insertion_point(serialize_to_array_start:google.internal.federatedml.v2.EligibilityEvalPayload)
4787   ::uint32_t cached_has_bits = 0;
4788   (void) cached_has_bits;
4789 
4790   // bytes init_checkpoint = 1;
4791   if (_internal_has_init_checkpoint()) {
4792     target = stream->WriteBytesMaybeAliased(
4793         1, this->_internal_init_checkpoint(), target);
4794   }
4795 
4796   // bytes plan = 2;
4797   if (_internal_has_plan()) {
4798     target = stream->WriteBytesMaybeAliased(
4799         2, this->_internal_plan(), target);
4800   }
4801 
4802   // string execution_id = 3;
4803   if (!this->_internal_execution_id().empty()) {
4804     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
4805       this->_internal_execution_id().data(), static_cast<int>(this->_internal_execution_id().length()),
4806       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
4807       "google.internal.federatedml.v2.EligibilityEvalPayload.execution_id");
4808     target = stream->WriteStringMaybeAliased(
4809         3, this->_internal_execution_id(), target);
4810   }
4811 
4812   // .google.internal.federatedml.v2.UriResource init_checkpoint_resource = 4;
4813   if (_internal_has_init_checkpoint_resource()) {
4814     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
4815       InternalWriteMessage(4, _Internal::init_checkpoint_resource(this),
4816         _Internal::init_checkpoint_resource(this).GetCachedSize(), target, stream);
4817   }
4818 
4819   // .google.internal.federatedml.v2.UriResource plan_resource = 5;
4820   if (_internal_has_plan_resource()) {
4821     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
4822       InternalWriteMessage(5, _Internal::plan_resource(this),
4823         _Internal::plan_resource(this).GetCachedSize(), target, stream);
4824   }
4825 
4826   // bytes population_eligibility_spec = 6;
4827   if (_internal_has_population_eligibility_spec()) {
4828     target = stream->WriteBytesMaybeAliased(
4829         6, this->_internal_population_eligibility_spec(), target);
4830   }
4831 
4832   // .google.internal.federatedml.v2.UriResource population_eligibility_spec_resource = 7;
4833   if (_internal_has_population_eligibility_spec_resource()) {
4834     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
4835       InternalWriteMessage(7, _Internal::population_eligibility_spec_resource(this),
4836         _Internal::population_eligibility_spec_resource(this).GetCachedSize(), target, stream);
4837   }
4838 
4839   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4840     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
4841         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
4842   }
4843   // @@protoc_insertion_point(serialize_to_array_end:google.internal.federatedml.v2.EligibilityEvalPayload)
4844   return target;
4845 }
4846 
ByteSizeLong() const4847 size_t EligibilityEvalPayload::ByteSizeLong() const {
4848 // @@protoc_insertion_point(message_byte_size_start:google.internal.federatedml.v2.EligibilityEvalPayload)
4849   size_t total_size = 0;
4850 
4851   ::uint32_t cached_has_bits = 0;
4852   // Prevent compiler warnings about cached_has_bits being unused
4853   (void) cached_has_bits;
4854 
4855   // string execution_id = 3;
4856   if (!this->_internal_execution_id().empty()) {
4857     total_size += 1 +
4858       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4859         this->_internal_execution_id());
4860   }
4861 
4862   switch (init_checkpoint_type_case()) {
4863     // bytes init_checkpoint = 1;
4864     case kInitCheckpoint: {
4865       total_size += 1 +
4866         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
4867           this->_internal_init_checkpoint());
4868       break;
4869     }
4870     // .google.internal.federatedml.v2.UriResource init_checkpoint_resource = 4;
4871     case kInitCheckpointResource: {
4872       total_size += 1 +
4873         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
4874           *_impl_.init_checkpoint_type_.init_checkpoint_resource_);
4875       break;
4876     }
4877     case INIT_CHECKPOINT_TYPE_NOT_SET: {
4878       break;
4879     }
4880   }
4881   switch (plan_type_case()) {
4882     // bytes plan = 2;
4883     case kPlan: {
4884       total_size += 1 +
4885         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
4886           this->_internal_plan());
4887       break;
4888     }
4889     // .google.internal.federatedml.v2.UriResource plan_resource = 5;
4890     case kPlanResource: {
4891       total_size += 1 +
4892         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
4893           *_impl_.plan_type_.plan_resource_);
4894       break;
4895     }
4896     case PLAN_TYPE_NOT_SET: {
4897       break;
4898     }
4899   }
4900   switch (population_eligibility_spec_type_case()) {
4901     // bytes population_eligibility_spec = 6;
4902     case kPopulationEligibilitySpec: {
4903       total_size += 1 +
4904         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
4905           this->_internal_population_eligibility_spec());
4906       break;
4907     }
4908     // .google.internal.federatedml.v2.UriResource population_eligibility_spec_resource = 7;
4909     case kPopulationEligibilitySpecResource: {
4910       total_size += 1 +
4911         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
4912           *_impl_.population_eligibility_spec_type_.population_eligibility_spec_resource_);
4913       break;
4914     }
4915     case POPULATION_ELIGIBILITY_SPEC_TYPE_NOT_SET: {
4916       break;
4917     }
4918   }
4919   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4920     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
4921   }
4922   int cached_size = ::_pbi::ToCachedSize(total_size);
4923   SetCachedSize(cached_size);
4924   return total_size;
4925 }
4926 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)4927 void EligibilityEvalPayload::CheckTypeAndMergeFrom(
4928     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
4929   MergeFrom(*::_pbi::DownCast<const EligibilityEvalPayload*>(
4930       &from));
4931 }
4932 
MergeFrom(const EligibilityEvalPayload & from)4933 void EligibilityEvalPayload::MergeFrom(const EligibilityEvalPayload& from) {
4934   EligibilityEvalPayload* const _this = this;
4935   // @@protoc_insertion_point(class_specific_merge_from_start:google.internal.federatedml.v2.EligibilityEvalPayload)
4936   GOOGLE_DCHECK_NE(&from, _this);
4937   ::uint32_t cached_has_bits = 0;
4938   (void) cached_has_bits;
4939 
4940   if (!from._internal_execution_id().empty()) {
4941     _this->_internal_set_execution_id(from._internal_execution_id());
4942   }
4943   switch (from.init_checkpoint_type_case()) {
4944     case kInitCheckpoint: {
4945       _this->_internal_set_init_checkpoint(from._internal_init_checkpoint());
4946       break;
4947     }
4948     case kInitCheckpointResource: {
4949       _this->_internal_mutable_init_checkpoint_resource()->::google::internal::federatedml::v2::UriResource::MergeFrom(
4950           from._internal_init_checkpoint_resource());
4951       break;
4952     }
4953     case INIT_CHECKPOINT_TYPE_NOT_SET: {
4954       break;
4955     }
4956   }
4957   switch (from.plan_type_case()) {
4958     case kPlan: {
4959       _this->_internal_set_plan(from._internal_plan());
4960       break;
4961     }
4962     case kPlanResource: {
4963       _this->_internal_mutable_plan_resource()->::google::internal::federatedml::v2::UriResource::MergeFrom(
4964           from._internal_plan_resource());
4965       break;
4966     }
4967     case PLAN_TYPE_NOT_SET: {
4968       break;
4969     }
4970   }
4971   switch (from.population_eligibility_spec_type_case()) {
4972     case kPopulationEligibilitySpec: {
4973       _this->_internal_set_population_eligibility_spec(from._internal_population_eligibility_spec());
4974       break;
4975     }
4976     case kPopulationEligibilitySpecResource: {
4977       _this->_internal_mutable_population_eligibility_spec_resource()->::google::internal::federatedml::v2::UriResource::MergeFrom(
4978           from._internal_population_eligibility_spec_resource());
4979       break;
4980     }
4981     case POPULATION_ELIGIBILITY_SPEC_TYPE_NOT_SET: {
4982       break;
4983     }
4984   }
4985   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
4986 }
4987 
CopyFrom(const EligibilityEvalPayload & from)4988 void EligibilityEvalPayload::CopyFrom(const EligibilityEvalPayload& from) {
4989 // @@protoc_insertion_point(class_specific_copy_from_start:google.internal.federatedml.v2.EligibilityEvalPayload)
4990   if (&from == this) return;
4991   Clear();
4992   MergeFrom(from);
4993 }
4994 
IsInitialized() const4995 bool EligibilityEvalPayload::IsInitialized() const {
4996   return true;
4997 }
4998 
InternalSwap(EligibilityEvalPayload * other)4999 void EligibilityEvalPayload::InternalSwap(EligibilityEvalPayload* other) {
5000   using std::swap;
5001   auto* lhs_arena = GetArenaForAllocation();
5002   auto* rhs_arena = other->GetArenaForAllocation();
5003   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
5004   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
5005       &_impl_.execution_id_, lhs_arena,
5006       &other->_impl_.execution_id_, rhs_arena
5007   );
5008   swap(_impl_.init_checkpoint_type_, other->_impl_.init_checkpoint_type_);
5009   swap(_impl_.plan_type_, other->_impl_.plan_type_);
5010   swap(_impl_.population_eligibility_spec_type_, other->_impl_.population_eligibility_spec_type_);
5011   swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
5012   swap(_impl_._oneof_case_[1], other->_impl_._oneof_case_[1]);
5013   swap(_impl_._oneof_case_[2], other->_impl_._oneof_case_[2]);
5014 }
5015 
GetTypeName() const5016 std::string EligibilityEvalPayload::GetTypeName() const {
5017   return "google.internal.federatedml.v2.EligibilityEvalPayload";
5018 }
5019 
5020 
5021 // ===================================================================
5022 
5023 class NoEligibilityEvalConfigured::_Internal {
5024  public:
5025 };
5026 
NoEligibilityEvalConfigured(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)5027 NoEligibilityEvalConfigured::NoEligibilityEvalConfigured(::PROTOBUF_NAMESPACE_ID::Arena* arena,
5028                          bool is_message_owned)
5029   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
5030   SharedCtor(arena, is_message_owned);
5031   // @@protoc_insertion_point(arena_constructor:google.internal.federatedml.v2.NoEligibilityEvalConfigured)
5032 }
NoEligibilityEvalConfigured(const NoEligibilityEvalConfigured & from)5033 NoEligibilityEvalConfigured::NoEligibilityEvalConfigured(const NoEligibilityEvalConfigured& from)
5034   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
5035   NoEligibilityEvalConfigured* const _this = this; (void)_this;
5036   new (&_impl_) Impl_{
5037       /*decltype(_impl_._cached_size_)*/{}};
5038 
5039   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
5040   // @@protoc_insertion_point(copy_constructor:google.internal.federatedml.v2.NoEligibilityEvalConfigured)
5041 }
5042 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)5043 inline void NoEligibilityEvalConfigured::SharedCtor(
5044     ::_pb::Arena* arena, bool is_message_owned) {
5045   (void)arena;
5046   (void)is_message_owned;
5047   new (&_impl_) Impl_{
5048       /*decltype(_impl_._cached_size_)*/{}
5049   };
5050 }
5051 
~NoEligibilityEvalConfigured()5052 NoEligibilityEvalConfigured::~NoEligibilityEvalConfigured() {
5053   // @@protoc_insertion_point(destructor:google.internal.federatedml.v2.NoEligibilityEvalConfigured)
5054   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
5055   (void)arena;
5056     return;
5057   }
5058   SharedDtor();
5059 }
5060 
SharedDtor()5061 inline void NoEligibilityEvalConfigured::SharedDtor() {
5062   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
5063 }
5064 
SetCachedSize(int size) const5065 void NoEligibilityEvalConfigured::SetCachedSize(int size) const {
5066   _impl_._cached_size_.Set(size);
5067 }
5068 
Clear()5069 void NoEligibilityEvalConfigured::Clear() {
5070 // @@protoc_insertion_point(message_clear_start:google.internal.federatedml.v2.NoEligibilityEvalConfigured)
5071   ::uint32_t cached_has_bits = 0;
5072   // Prevent compiler warnings about cached_has_bits being unused
5073   (void) cached_has_bits;
5074 
5075   _internal_metadata_.Clear<std::string>();
5076 }
5077 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)5078 const char* NoEligibilityEvalConfigured::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
5079 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
5080   while (!ctx->Done(&ptr)) {
5081     ::uint32_t tag;
5082     ptr = ::_pbi::ReadTag(ptr, &tag);
5083     if ((tag == 0) || ((tag & 7) == 4)) {
5084       CHK_(ptr);
5085       ctx->SetLastTag(tag);
5086       goto message_done;
5087     }
5088     ptr = UnknownFieldParse(
5089         tag,
5090         _internal_metadata_.mutable_unknown_fields<std::string>(),
5091         ptr, ctx);
5092     CHK_(ptr != nullptr);
5093   }  // while
5094 message_done:
5095   return ptr;
5096 failure:
5097   ptr = nullptr;
5098   goto message_done;
5099 #undef CHK_
5100 }
5101 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const5102 ::uint8_t* NoEligibilityEvalConfigured::_InternalSerialize(
5103     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
5104   // @@protoc_insertion_point(serialize_to_array_start:google.internal.federatedml.v2.NoEligibilityEvalConfigured)
5105   ::uint32_t cached_has_bits = 0;
5106   (void) cached_has_bits;
5107 
5108   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5109     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
5110         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
5111   }
5112   // @@protoc_insertion_point(serialize_to_array_end:google.internal.federatedml.v2.NoEligibilityEvalConfigured)
5113   return target;
5114 }
5115 
ByteSizeLong() const5116 size_t NoEligibilityEvalConfigured::ByteSizeLong() const {
5117 // @@protoc_insertion_point(message_byte_size_start:google.internal.federatedml.v2.NoEligibilityEvalConfigured)
5118   size_t total_size = 0;
5119 
5120   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5121     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
5122   }
5123   int cached_size = ::_pbi::ToCachedSize(total_size);
5124   SetCachedSize(cached_size);
5125   return total_size;
5126 }
5127 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)5128 void NoEligibilityEvalConfigured::CheckTypeAndMergeFrom(
5129     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
5130   MergeFrom(*::_pbi::DownCast<const NoEligibilityEvalConfigured*>(
5131       &from));
5132 }
5133 
MergeFrom(const NoEligibilityEvalConfigured & from)5134 void NoEligibilityEvalConfigured::MergeFrom(const NoEligibilityEvalConfigured& from) {
5135   NoEligibilityEvalConfigured* const _this = this;
5136   // @@protoc_insertion_point(class_specific_merge_from_start:google.internal.federatedml.v2.NoEligibilityEvalConfigured)
5137   GOOGLE_DCHECK_NE(&from, _this);
5138   ::uint32_t cached_has_bits = 0;
5139   (void) cached_has_bits;
5140 
5141   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
5142 }
5143 
CopyFrom(const NoEligibilityEvalConfigured & from)5144 void NoEligibilityEvalConfigured::CopyFrom(const NoEligibilityEvalConfigured& from) {
5145 // @@protoc_insertion_point(class_specific_copy_from_start:google.internal.federatedml.v2.NoEligibilityEvalConfigured)
5146   if (&from == this) return;
5147   Clear();
5148   MergeFrom(from);
5149 }
5150 
IsInitialized() const5151 bool NoEligibilityEvalConfigured::IsInitialized() const {
5152   return true;
5153 }
5154 
InternalSwap(NoEligibilityEvalConfigured * other)5155 void NoEligibilityEvalConfigured::InternalSwap(NoEligibilityEvalConfigured* other) {
5156   using std::swap;
5157   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
5158 }
5159 
GetTypeName() const5160 std::string NoEligibilityEvalConfigured::GetTypeName() const {
5161   return "google.internal.federatedml.v2.NoEligibilityEvalConfigured";
5162 }
5163 
5164 
5165 // ===================================================================
5166 
5167 class SideChannelExecutionInfo_SecureAggregandExecutionInfo::_Internal {
5168  public:
5169 };
5170 
SideChannelExecutionInfo_SecureAggregandExecutionInfo(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)5171 SideChannelExecutionInfo_SecureAggregandExecutionInfo::SideChannelExecutionInfo_SecureAggregandExecutionInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena,
5172                          bool is_message_owned)
5173   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
5174   SharedCtor(arena, is_message_owned);
5175   // @@protoc_insertion_point(arena_constructor:google.internal.federatedml.v2.SideChannelExecutionInfo.SecureAggregandExecutionInfo)
5176 }
SideChannelExecutionInfo_SecureAggregandExecutionInfo(const SideChannelExecutionInfo_SecureAggregandExecutionInfo & from)5177 SideChannelExecutionInfo_SecureAggregandExecutionInfo::SideChannelExecutionInfo_SecureAggregandExecutionInfo(const SideChannelExecutionInfo_SecureAggregandExecutionInfo& from)
5178   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
5179   SideChannelExecutionInfo_SecureAggregandExecutionInfo* const _this = this; (void)_this;
5180   new (&_impl_) Impl_{
5181       decltype(_impl_.modulus_){}
5182     , decltype(_impl_.output_bitwidth_){}
5183     , /*decltype(_impl_._cached_size_)*/{}};
5184 
5185   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
5186   ::memcpy(&_impl_.modulus_, &from._impl_.modulus_,
5187     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.output_bitwidth_) -
5188     reinterpret_cast<char*>(&_impl_.modulus_)) + sizeof(_impl_.output_bitwidth_));
5189   // @@protoc_insertion_point(copy_constructor:google.internal.federatedml.v2.SideChannelExecutionInfo.SecureAggregandExecutionInfo)
5190 }
5191 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)5192 inline void SideChannelExecutionInfo_SecureAggregandExecutionInfo::SharedCtor(
5193     ::_pb::Arena* arena, bool is_message_owned) {
5194   (void)arena;
5195   (void)is_message_owned;
5196   new (&_impl_) Impl_{
5197       decltype(_impl_.modulus_){::uint64_t{0u}}
5198     , decltype(_impl_.output_bitwidth_){0}
5199     , /*decltype(_impl_._cached_size_)*/{}
5200   };
5201 }
5202 
~SideChannelExecutionInfo_SecureAggregandExecutionInfo()5203 SideChannelExecutionInfo_SecureAggregandExecutionInfo::~SideChannelExecutionInfo_SecureAggregandExecutionInfo() {
5204   // @@protoc_insertion_point(destructor:google.internal.federatedml.v2.SideChannelExecutionInfo.SecureAggregandExecutionInfo)
5205   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
5206   (void)arena;
5207     return;
5208   }
5209   SharedDtor();
5210 }
5211 
SharedDtor()5212 inline void SideChannelExecutionInfo_SecureAggregandExecutionInfo::SharedDtor() {
5213   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
5214 }
5215 
SetCachedSize(int size) const5216 void SideChannelExecutionInfo_SecureAggregandExecutionInfo::SetCachedSize(int size) const {
5217   _impl_._cached_size_.Set(size);
5218 }
5219 
Clear()5220 void SideChannelExecutionInfo_SecureAggregandExecutionInfo::Clear() {
5221 // @@protoc_insertion_point(message_clear_start:google.internal.federatedml.v2.SideChannelExecutionInfo.SecureAggregandExecutionInfo)
5222   ::uint32_t cached_has_bits = 0;
5223   // Prevent compiler warnings about cached_has_bits being unused
5224   (void) cached_has_bits;
5225 
5226   ::memset(&_impl_.modulus_, 0, static_cast<size_t>(
5227       reinterpret_cast<char*>(&_impl_.output_bitwidth_) -
5228       reinterpret_cast<char*>(&_impl_.modulus_)) + sizeof(_impl_.output_bitwidth_));
5229   _internal_metadata_.Clear<std::string>();
5230 }
5231 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)5232 const char* SideChannelExecutionInfo_SecureAggregandExecutionInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
5233 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
5234   while (!ctx->Done(&ptr)) {
5235     ::uint32_t tag;
5236     ptr = ::_pbi::ReadTag(ptr, &tag);
5237     switch (tag >> 3) {
5238       // int32 output_bitwidth = 1 [deprecated = true];
5239       case 1:
5240         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
5241           _impl_.output_bitwidth_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
5242           CHK_(ptr);
5243         } else {
5244           goto handle_unusual;
5245         }
5246         continue;
5247       // uint64 modulus = 2;
5248       case 2:
5249         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
5250           _impl_.modulus_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
5251           CHK_(ptr);
5252         } else {
5253           goto handle_unusual;
5254         }
5255         continue;
5256       default:
5257         goto handle_unusual;
5258     }  // switch
5259   handle_unusual:
5260     if ((tag == 0) || ((tag & 7) == 4)) {
5261       CHK_(ptr);
5262       ctx->SetLastTag(tag);
5263       goto message_done;
5264     }
5265     ptr = UnknownFieldParse(
5266         tag,
5267         _internal_metadata_.mutable_unknown_fields<std::string>(),
5268         ptr, ctx);
5269     CHK_(ptr != nullptr);
5270   }  // while
5271 message_done:
5272   return ptr;
5273 failure:
5274   ptr = nullptr;
5275   goto message_done;
5276 #undef CHK_
5277 }
5278 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const5279 ::uint8_t* SideChannelExecutionInfo_SecureAggregandExecutionInfo::_InternalSerialize(
5280     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
5281   // @@protoc_insertion_point(serialize_to_array_start:google.internal.federatedml.v2.SideChannelExecutionInfo.SecureAggregandExecutionInfo)
5282   ::uint32_t cached_has_bits = 0;
5283   (void) cached_has_bits;
5284 
5285   // int32 output_bitwidth = 1 [deprecated = true];
5286   if (this->_internal_output_bitwidth() != 0) {
5287     target = stream->EnsureSpace(target);
5288     target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_output_bitwidth(), target);
5289   }
5290 
5291   // uint64 modulus = 2;
5292   if (this->_internal_modulus() != 0) {
5293     target = stream->EnsureSpace(target);
5294     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_modulus(), target);
5295   }
5296 
5297   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5298     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
5299         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
5300   }
5301   // @@protoc_insertion_point(serialize_to_array_end:google.internal.federatedml.v2.SideChannelExecutionInfo.SecureAggregandExecutionInfo)
5302   return target;
5303 }
5304 
ByteSizeLong() const5305 size_t SideChannelExecutionInfo_SecureAggregandExecutionInfo::ByteSizeLong() const {
5306 // @@protoc_insertion_point(message_byte_size_start:google.internal.federatedml.v2.SideChannelExecutionInfo.SecureAggregandExecutionInfo)
5307   size_t total_size = 0;
5308 
5309   ::uint32_t cached_has_bits = 0;
5310   // Prevent compiler warnings about cached_has_bits being unused
5311   (void) cached_has_bits;
5312 
5313   // uint64 modulus = 2;
5314   if (this->_internal_modulus() != 0) {
5315     total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_modulus());
5316   }
5317 
5318   // int32 output_bitwidth = 1 [deprecated = true];
5319   if (this->_internal_output_bitwidth() != 0) {
5320     total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_output_bitwidth());
5321   }
5322 
5323   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5324     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
5325   }
5326   int cached_size = ::_pbi::ToCachedSize(total_size);
5327   SetCachedSize(cached_size);
5328   return total_size;
5329 }
5330 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)5331 void SideChannelExecutionInfo_SecureAggregandExecutionInfo::CheckTypeAndMergeFrom(
5332     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
5333   MergeFrom(*::_pbi::DownCast<const SideChannelExecutionInfo_SecureAggregandExecutionInfo*>(
5334       &from));
5335 }
5336 
MergeFrom(const SideChannelExecutionInfo_SecureAggregandExecutionInfo & from)5337 void SideChannelExecutionInfo_SecureAggregandExecutionInfo::MergeFrom(const SideChannelExecutionInfo_SecureAggregandExecutionInfo& from) {
5338   SideChannelExecutionInfo_SecureAggregandExecutionInfo* const _this = this;
5339   // @@protoc_insertion_point(class_specific_merge_from_start:google.internal.federatedml.v2.SideChannelExecutionInfo.SecureAggregandExecutionInfo)
5340   GOOGLE_DCHECK_NE(&from, _this);
5341   ::uint32_t cached_has_bits = 0;
5342   (void) cached_has_bits;
5343 
5344   if (from._internal_modulus() != 0) {
5345     _this->_internal_set_modulus(from._internal_modulus());
5346   }
5347   if (from._internal_output_bitwidth() != 0) {
5348     _this->_internal_set_output_bitwidth(from._internal_output_bitwidth());
5349   }
5350   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
5351 }
5352 
CopyFrom(const SideChannelExecutionInfo_SecureAggregandExecutionInfo & from)5353 void SideChannelExecutionInfo_SecureAggregandExecutionInfo::CopyFrom(const SideChannelExecutionInfo_SecureAggregandExecutionInfo& from) {
5354 // @@protoc_insertion_point(class_specific_copy_from_start:google.internal.federatedml.v2.SideChannelExecutionInfo.SecureAggregandExecutionInfo)
5355   if (&from == this) return;
5356   Clear();
5357   MergeFrom(from);
5358 }
5359 
IsInitialized() const5360 bool SideChannelExecutionInfo_SecureAggregandExecutionInfo::IsInitialized() const {
5361   return true;
5362 }
5363 
InternalSwap(SideChannelExecutionInfo_SecureAggregandExecutionInfo * other)5364 void SideChannelExecutionInfo_SecureAggregandExecutionInfo::InternalSwap(SideChannelExecutionInfo_SecureAggregandExecutionInfo* other) {
5365   using std::swap;
5366   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
5367   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
5368       PROTOBUF_FIELD_OFFSET(SideChannelExecutionInfo_SecureAggregandExecutionInfo, _impl_.output_bitwidth_)
5369       + sizeof(SideChannelExecutionInfo_SecureAggregandExecutionInfo::_impl_.output_bitwidth_)  // NOLINT
5370       - PROTOBUF_FIELD_OFFSET(SideChannelExecutionInfo_SecureAggregandExecutionInfo, _impl_.modulus_)>(
5371           reinterpret_cast<char*>(&_impl_.modulus_),
5372           reinterpret_cast<char*>(&other->_impl_.modulus_));
5373 }
5374 
GetTypeName() const5375 std::string SideChannelExecutionInfo_SecureAggregandExecutionInfo::GetTypeName() const {
5376   return "google.internal.federatedml.v2.SideChannelExecutionInfo.SecureAggregandExecutionInfo";
5377 }
5378 
5379 
5380 // ===================================================================
5381 
5382 class SideChannelExecutionInfo::_Internal {
5383  public:
5384   static const ::google::internal::federatedml::v2::SideChannelExecutionInfo_SecureAggregandExecutionInfo& secure_aggregand(const SideChannelExecutionInfo* msg);
5385 };
5386 
5387 const ::google::internal::federatedml::v2::SideChannelExecutionInfo_SecureAggregandExecutionInfo&
secure_aggregand(const SideChannelExecutionInfo * msg)5388 SideChannelExecutionInfo::_Internal::secure_aggregand(const SideChannelExecutionInfo* msg) {
5389   return *msg->_impl_.type_.secure_aggregand_;
5390 }
set_allocated_secure_aggregand(::google::internal::federatedml::v2::SideChannelExecutionInfo_SecureAggregandExecutionInfo * secure_aggregand)5391 void SideChannelExecutionInfo::set_allocated_secure_aggregand(::google::internal::federatedml::v2::SideChannelExecutionInfo_SecureAggregandExecutionInfo* secure_aggregand) {
5392   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
5393   clear_type();
5394   if (secure_aggregand) {
5395     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
5396       ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(secure_aggregand);
5397     if (message_arena != submessage_arena) {
5398       secure_aggregand = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
5399           message_arena, secure_aggregand, submessage_arena);
5400     }
5401     set_has_secure_aggregand();
5402     _impl_.type_.secure_aggregand_ = secure_aggregand;
5403   }
5404   // @@protoc_insertion_point(field_set_allocated:google.internal.federatedml.v2.SideChannelExecutionInfo.secure_aggregand)
5405 }
SideChannelExecutionInfo(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)5406 SideChannelExecutionInfo::SideChannelExecutionInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena,
5407                          bool is_message_owned)
5408   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
5409   SharedCtor(arena, is_message_owned);
5410   // @@protoc_insertion_point(arena_constructor:google.internal.federatedml.v2.SideChannelExecutionInfo)
5411 }
SideChannelExecutionInfo(const SideChannelExecutionInfo & from)5412 SideChannelExecutionInfo::SideChannelExecutionInfo(const SideChannelExecutionInfo& from)
5413   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
5414   SideChannelExecutionInfo* const _this = this; (void)_this;
5415   new (&_impl_) Impl_{
5416       decltype(_impl_.type_){}
5417     , /*decltype(_impl_._cached_size_)*/{}
5418     , /*decltype(_impl_._oneof_case_)*/{}};
5419 
5420   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
5421   clear_has_type();
5422   switch (from.type_case()) {
5423     case kSecureAggregand: {
5424       _this->_internal_mutable_secure_aggregand()->::google::internal::federatedml::v2::SideChannelExecutionInfo_SecureAggregandExecutionInfo::MergeFrom(
5425           from._internal_secure_aggregand());
5426       break;
5427     }
5428     case TYPE_NOT_SET: {
5429       break;
5430     }
5431   }
5432   // @@protoc_insertion_point(copy_constructor:google.internal.federatedml.v2.SideChannelExecutionInfo)
5433 }
5434 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)5435 inline void SideChannelExecutionInfo::SharedCtor(
5436     ::_pb::Arena* arena, bool is_message_owned) {
5437   (void)arena;
5438   (void)is_message_owned;
5439   new (&_impl_) Impl_{
5440       decltype(_impl_.type_){}
5441     , /*decltype(_impl_._cached_size_)*/{}
5442     , /*decltype(_impl_._oneof_case_)*/{}
5443   };
5444   clear_has_type();
5445 }
5446 
~SideChannelExecutionInfo()5447 SideChannelExecutionInfo::~SideChannelExecutionInfo() {
5448   // @@protoc_insertion_point(destructor:google.internal.federatedml.v2.SideChannelExecutionInfo)
5449   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
5450   (void)arena;
5451     return;
5452   }
5453   SharedDtor();
5454 }
5455 
SharedDtor()5456 inline void SideChannelExecutionInfo::SharedDtor() {
5457   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
5458   if (has_type()) {
5459     clear_type();
5460   }
5461 }
5462 
SetCachedSize(int size) const5463 void SideChannelExecutionInfo::SetCachedSize(int size) const {
5464   _impl_._cached_size_.Set(size);
5465 }
5466 
clear_type()5467 void SideChannelExecutionInfo::clear_type() {
5468 // @@protoc_insertion_point(one_of_clear_start:google.internal.federatedml.v2.SideChannelExecutionInfo)
5469   switch (type_case()) {
5470     case kSecureAggregand: {
5471       if (GetArenaForAllocation() == nullptr) {
5472         delete _impl_.type_.secure_aggregand_;
5473       }
5474       break;
5475     }
5476     case TYPE_NOT_SET: {
5477       break;
5478     }
5479   }
5480   _impl_._oneof_case_[0] = TYPE_NOT_SET;
5481 }
5482 
5483 
Clear()5484 void SideChannelExecutionInfo::Clear() {
5485 // @@protoc_insertion_point(message_clear_start:google.internal.federatedml.v2.SideChannelExecutionInfo)
5486   ::uint32_t cached_has_bits = 0;
5487   // Prevent compiler warnings about cached_has_bits being unused
5488   (void) cached_has_bits;
5489 
5490   clear_type();
5491   _internal_metadata_.Clear<std::string>();
5492 }
5493 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)5494 const char* SideChannelExecutionInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
5495 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
5496   while (!ctx->Done(&ptr)) {
5497     ::uint32_t tag;
5498     ptr = ::_pbi::ReadTag(ptr, &tag);
5499     switch (tag >> 3) {
5500       // .google.internal.federatedml.v2.SideChannelExecutionInfo.SecureAggregandExecutionInfo secure_aggregand = 1;
5501       case 1:
5502         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
5503           ptr = ctx->ParseMessage(_internal_mutable_secure_aggregand(), ptr);
5504           CHK_(ptr);
5505         } else {
5506           goto handle_unusual;
5507         }
5508         continue;
5509       default:
5510         goto handle_unusual;
5511     }  // switch
5512   handle_unusual:
5513     if ((tag == 0) || ((tag & 7) == 4)) {
5514       CHK_(ptr);
5515       ctx->SetLastTag(tag);
5516       goto message_done;
5517     }
5518     ptr = UnknownFieldParse(
5519         tag,
5520         _internal_metadata_.mutable_unknown_fields<std::string>(),
5521         ptr, ctx);
5522     CHK_(ptr != nullptr);
5523   }  // while
5524 message_done:
5525   return ptr;
5526 failure:
5527   ptr = nullptr;
5528   goto message_done;
5529 #undef CHK_
5530 }
5531 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const5532 ::uint8_t* SideChannelExecutionInfo::_InternalSerialize(
5533     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
5534   // @@protoc_insertion_point(serialize_to_array_start:google.internal.federatedml.v2.SideChannelExecutionInfo)
5535   ::uint32_t cached_has_bits = 0;
5536   (void) cached_has_bits;
5537 
5538   // .google.internal.federatedml.v2.SideChannelExecutionInfo.SecureAggregandExecutionInfo secure_aggregand = 1;
5539   if (_internal_has_secure_aggregand()) {
5540     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
5541       InternalWriteMessage(1, _Internal::secure_aggregand(this),
5542         _Internal::secure_aggregand(this).GetCachedSize(), target, stream);
5543   }
5544 
5545   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5546     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
5547         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
5548   }
5549   // @@protoc_insertion_point(serialize_to_array_end:google.internal.federatedml.v2.SideChannelExecutionInfo)
5550   return target;
5551 }
5552 
ByteSizeLong() const5553 size_t SideChannelExecutionInfo::ByteSizeLong() const {
5554 // @@protoc_insertion_point(message_byte_size_start:google.internal.federatedml.v2.SideChannelExecutionInfo)
5555   size_t total_size = 0;
5556 
5557   switch (type_case()) {
5558     // .google.internal.federatedml.v2.SideChannelExecutionInfo.SecureAggregandExecutionInfo secure_aggregand = 1;
5559     case kSecureAggregand: {
5560       total_size += 1 +
5561         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
5562           *_impl_.type_.secure_aggregand_);
5563       break;
5564     }
5565     case TYPE_NOT_SET: {
5566       break;
5567     }
5568   }
5569   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5570     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
5571   }
5572   int cached_size = ::_pbi::ToCachedSize(total_size);
5573   SetCachedSize(cached_size);
5574   return total_size;
5575 }
5576 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)5577 void SideChannelExecutionInfo::CheckTypeAndMergeFrom(
5578     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
5579   MergeFrom(*::_pbi::DownCast<const SideChannelExecutionInfo*>(
5580       &from));
5581 }
5582 
MergeFrom(const SideChannelExecutionInfo & from)5583 void SideChannelExecutionInfo::MergeFrom(const SideChannelExecutionInfo& from) {
5584   SideChannelExecutionInfo* const _this = this;
5585   // @@protoc_insertion_point(class_specific_merge_from_start:google.internal.federatedml.v2.SideChannelExecutionInfo)
5586   GOOGLE_DCHECK_NE(&from, _this);
5587   ::uint32_t cached_has_bits = 0;
5588   (void) cached_has_bits;
5589 
5590   switch (from.type_case()) {
5591     case kSecureAggregand: {
5592       _this->_internal_mutable_secure_aggregand()->::google::internal::federatedml::v2::SideChannelExecutionInfo_SecureAggregandExecutionInfo::MergeFrom(
5593           from._internal_secure_aggregand());
5594       break;
5595     }
5596     case TYPE_NOT_SET: {
5597       break;
5598     }
5599   }
5600   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
5601 }
5602 
CopyFrom(const SideChannelExecutionInfo & from)5603 void SideChannelExecutionInfo::CopyFrom(const SideChannelExecutionInfo& from) {
5604 // @@protoc_insertion_point(class_specific_copy_from_start:google.internal.federatedml.v2.SideChannelExecutionInfo)
5605   if (&from == this) return;
5606   Clear();
5607   MergeFrom(from);
5608 }
5609 
IsInitialized() const5610 bool SideChannelExecutionInfo::IsInitialized() const {
5611   return true;
5612 }
5613 
InternalSwap(SideChannelExecutionInfo * other)5614 void SideChannelExecutionInfo::InternalSwap(SideChannelExecutionInfo* other) {
5615   using std::swap;
5616   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
5617   swap(_impl_.type_, other->_impl_.type_);
5618   swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
5619 }
5620 
GetTypeName() const5621 std::string SideChannelExecutionInfo::GetTypeName() const {
5622   return "google.internal.federatedml.v2.SideChannelExecutionInfo";
5623 }
5624 
5625 
5626 // ===================================================================
5627 
5628 class SideChannelProtocolOptionsRequest_SecureAggregation::_Internal {
5629  public:
5630 };
5631 
SideChannelProtocolOptionsRequest_SecureAggregation(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)5632 SideChannelProtocolOptionsRequest_SecureAggregation::SideChannelProtocolOptionsRequest_SecureAggregation(::PROTOBUF_NAMESPACE_ID::Arena* arena,
5633                          bool is_message_owned)
5634   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
5635   SharedCtor(arena, is_message_owned);
5636   // @@protoc_insertion_point(arena_constructor:google.internal.federatedml.v2.SideChannelProtocolOptionsRequest.SecureAggregation)
5637 }
SideChannelProtocolOptionsRequest_SecureAggregation(const SideChannelProtocolOptionsRequest_SecureAggregation & from)5638 SideChannelProtocolOptionsRequest_SecureAggregation::SideChannelProtocolOptionsRequest_SecureAggregation(const SideChannelProtocolOptionsRequest_SecureAggregation& from)
5639   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
5640   SideChannelProtocolOptionsRequest_SecureAggregation* const _this = this; (void)_this;
5641   new (&_impl_) Impl_{
5642       decltype(_impl_.client_variant_){from._impl_.client_variant_}
5643     , /*decltype(_impl_._client_variant_cached_byte_size_)*/{0}
5644     , /*decltype(_impl_._cached_size_)*/{}};
5645 
5646   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
5647   // @@protoc_insertion_point(copy_constructor:google.internal.federatedml.v2.SideChannelProtocolOptionsRequest.SecureAggregation)
5648 }
5649 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)5650 inline void SideChannelProtocolOptionsRequest_SecureAggregation::SharedCtor(
5651     ::_pb::Arena* arena, bool is_message_owned) {
5652   (void)arena;
5653   (void)is_message_owned;
5654   new (&_impl_) Impl_{
5655       decltype(_impl_.client_variant_){arena}
5656     , /*decltype(_impl_._client_variant_cached_byte_size_)*/{0}
5657     , /*decltype(_impl_._cached_size_)*/{}
5658   };
5659 }
5660 
~SideChannelProtocolOptionsRequest_SecureAggregation()5661 SideChannelProtocolOptionsRequest_SecureAggregation::~SideChannelProtocolOptionsRequest_SecureAggregation() {
5662   // @@protoc_insertion_point(destructor:google.internal.federatedml.v2.SideChannelProtocolOptionsRequest.SecureAggregation)
5663   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
5664   (void)arena;
5665     return;
5666   }
5667   SharedDtor();
5668 }
5669 
SharedDtor()5670 inline void SideChannelProtocolOptionsRequest_SecureAggregation::SharedDtor() {
5671   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
5672   _impl_.client_variant_.~RepeatedField();
5673 }
5674 
SetCachedSize(int size) const5675 void SideChannelProtocolOptionsRequest_SecureAggregation::SetCachedSize(int size) const {
5676   _impl_._cached_size_.Set(size);
5677 }
5678 
Clear()5679 void SideChannelProtocolOptionsRequest_SecureAggregation::Clear() {
5680 // @@protoc_insertion_point(message_clear_start:google.internal.federatedml.v2.SideChannelProtocolOptionsRequest.SecureAggregation)
5681   ::uint32_t cached_has_bits = 0;
5682   // Prevent compiler warnings about cached_has_bits being unused
5683   (void) cached_has_bits;
5684 
5685   _impl_.client_variant_.Clear();
5686   _internal_metadata_.Clear<std::string>();
5687 }
5688 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)5689 const char* SideChannelProtocolOptionsRequest_SecureAggregation::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
5690 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
5691   while (!ctx->Done(&ptr)) {
5692     ::uint32_t tag;
5693     ptr = ::_pbi::ReadTag(ptr, &tag);
5694     switch (tag >> 3) {
5695       // repeated .fcp.secagg.ClientVariant client_variant = 2;
5696       case 2:
5697         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
5698           ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_client_variant(), ptr, ctx);
5699           CHK_(ptr);
5700         } else if (static_cast<::uint8_t>(tag) == 16) {
5701           ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
5702           CHK_(ptr);
5703           _internal_add_client_variant(static_cast<::fcp::secagg::ClientVariant>(val));
5704         } else {
5705           goto handle_unusual;
5706         }
5707         continue;
5708       default:
5709         goto handle_unusual;
5710     }  // switch
5711   handle_unusual:
5712     if ((tag == 0) || ((tag & 7) == 4)) {
5713       CHK_(ptr);
5714       ctx->SetLastTag(tag);
5715       goto message_done;
5716     }
5717     ptr = UnknownFieldParse(
5718         tag,
5719         _internal_metadata_.mutable_unknown_fields<std::string>(),
5720         ptr, ctx);
5721     CHK_(ptr != nullptr);
5722   }  // while
5723 message_done:
5724   return ptr;
5725 failure:
5726   ptr = nullptr;
5727   goto message_done;
5728 #undef CHK_
5729 }
5730 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const5731 ::uint8_t* SideChannelProtocolOptionsRequest_SecureAggregation::_InternalSerialize(
5732     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
5733   // @@protoc_insertion_point(serialize_to_array_start:google.internal.federatedml.v2.SideChannelProtocolOptionsRequest.SecureAggregation)
5734   ::uint32_t cached_has_bits = 0;
5735   (void) cached_has_bits;
5736 
5737   // repeated .fcp.secagg.ClientVariant client_variant = 2;
5738   {
5739     int byte_size = _impl_._client_variant_cached_byte_size_.load(std::memory_order_relaxed);
5740     if (byte_size > 0) {
5741       target = stream->WriteEnumPacked(
5742           2, _impl_.client_variant_, byte_size, target);
5743     }
5744   }
5745 
5746   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5747     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
5748         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
5749   }
5750   // @@protoc_insertion_point(serialize_to_array_end:google.internal.federatedml.v2.SideChannelProtocolOptionsRequest.SecureAggregation)
5751   return target;
5752 }
5753 
ByteSizeLong() const5754 size_t SideChannelProtocolOptionsRequest_SecureAggregation::ByteSizeLong() const {
5755 // @@protoc_insertion_point(message_byte_size_start:google.internal.federatedml.v2.SideChannelProtocolOptionsRequest.SecureAggregation)
5756   size_t total_size = 0;
5757 
5758   ::uint32_t cached_has_bits = 0;
5759   // Prevent compiler warnings about cached_has_bits being unused
5760   (void) cached_has_bits;
5761 
5762   // repeated .fcp.secagg.ClientVariant client_variant = 2;
5763   {
5764     size_t data_size = 0;
5765     unsigned int count = static_cast<unsigned int>(this->_internal_client_variant_size());for (unsigned int i = 0; i < count; i++) {
5766       data_size += ::_pbi::WireFormatLite::EnumSize(
5767         this->_internal_client_variant(static_cast<int>(i)));
5768     }
5769     if (data_size > 0) {
5770       total_size += 1 +
5771         ::_pbi::WireFormatLite::Int32Size(static_cast<::int32_t>(data_size));
5772     }
5773     int cached_size = ::_pbi::ToCachedSize(data_size);
5774     _impl_._client_variant_cached_byte_size_.store(cached_size,
5775                                     std::memory_order_relaxed);
5776     total_size += data_size;
5777   }
5778 
5779   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5780     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
5781   }
5782   int cached_size = ::_pbi::ToCachedSize(total_size);
5783   SetCachedSize(cached_size);
5784   return total_size;
5785 }
5786 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)5787 void SideChannelProtocolOptionsRequest_SecureAggregation::CheckTypeAndMergeFrom(
5788     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
5789   MergeFrom(*::_pbi::DownCast<const SideChannelProtocolOptionsRequest_SecureAggregation*>(
5790       &from));
5791 }
5792 
MergeFrom(const SideChannelProtocolOptionsRequest_SecureAggregation & from)5793 void SideChannelProtocolOptionsRequest_SecureAggregation::MergeFrom(const SideChannelProtocolOptionsRequest_SecureAggregation& from) {
5794   SideChannelProtocolOptionsRequest_SecureAggregation* const _this = this;
5795   // @@protoc_insertion_point(class_specific_merge_from_start:google.internal.federatedml.v2.SideChannelProtocolOptionsRequest.SecureAggregation)
5796   GOOGLE_DCHECK_NE(&from, _this);
5797   ::uint32_t cached_has_bits = 0;
5798   (void) cached_has_bits;
5799 
5800   _this->_impl_.client_variant_.MergeFrom(from._impl_.client_variant_);
5801   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
5802 }
5803 
CopyFrom(const SideChannelProtocolOptionsRequest_SecureAggregation & from)5804 void SideChannelProtocolOptionsRequest_SecureAggregation::CopyFrom(const SideChannelProtocolOptionsRequest_SecureAggregation& from) {
5805 // @@protoc_insertion_point(class_specific_copy_from_start:google.internal.federatedml.v2.SideChannelProtocolOptionsRequest.SecureAggregation)
5806   if (&from == this) return;
5807   Clear();
5808   MergeFrom(from);
5809 }
5810 
IsInitialized() const5811 bool SideChannelProtocolOptionsRequest_SecureAggregation::IsInitialized() const {
5812   return true;
5813 }
5814 
InternalSwap(SideChannelProtocolOptionsRequest_SecureAggregation * other)5815 void SideChannelProtocolOptionsRequest_SecureAggregation::InternalSwap(SideChannelProtocolOptionsRequest_SecureAggregation* other) {
5816   using std::swap;
5817   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
5818   _impl_.client_variant_.InternalSwap(&other->_impl_.client_variant_);
5819 }
5820 
GetTypeName() const5821 std::string SideChannelProtocolOptionsRequest_SecureAggregation::GetTypeName() const {
5822   return "google.internal.federatedml.v2.SideChannelProtocolOptionsRequest.SecureAggregation";
5823 }
5824 
5825 
5826 // ===================================================================
5827 
5828 class SideChannelProtocolOptionsRequest::_Internal {
5829  public:
5830   static const ::google::internal::federatedml::v2::SideChannelProtocolOptionsRequest_SecureAggregation& secure_aggregation(const SideChannelProtocolOptionsRequest* msg);
5831 };
5832 
5833 const ::google::internal::federatedml::v2::SideChannelProtocolOptionsRequest_SecureAggregation&
secure_aggregation(const SideChannelProtocolOptionsRequest * msg)5834 SideChannelProtocolOptionsRequest::_Internal::secure_aggregation(const SideChannelProtocolOptionsRequest* msg) {
5835   return *msg->_impl_.secure_aggregation_;
5836 }
SideChannelProtocolOptionsRequest(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)5837 SideChannelProtocolOptionsRequest::SideChannelProtocolOptionsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
5838                          bool is_message_owned)
5839   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
5840   SharedCtor(arena, is_message_owned);
5841   // @@protoc_insertion_point(arena_constructor:google.internal.federatedml.v2.SideChannelProtocolOptionsRequest)
5842 }
SideChannelProtocolOptionsRequest(const SideChannelProtocolOptionsRequest & from)5843 SideChannelProtocolOptionsRequest::SideChannelProtocolOptionsRequest(const SideChannelProtocolOptionsRequest& from)
5844   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
5845   SideChannelProtocolOptionsRequest* const _this = this; (void)_this;
5846   new (&_impl_) Impl_{
5847       decltype(_impl_.secure_aggregation_){nullptr}
5848     , /*decltype(_impl_._cached_size_)*/{}};
5849 
5850   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
5851   if (from._internal_has_secure_aggregation()) {
5852     _this->_impl_.secure_aggregation_ = new ::google::internal::federatedml::v2::SideChannelProtocolOptionsRequest_SecureAggregation(*from._impl_.secure_aggregation_);
5853   }
5854   // @@protoc_insertion_point(copy_constructor:google.internal.federatedml.v2.SideChannelProtocolOptionsRequest)
5855 }
5856 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)5857 inline void SideChannelProtocolOptionsRequest::SharedCtor(
5858     ::_pb::Arena* arena, bool is_message_owned) {
5859   (void)arena;
5860   (void)is_message_owned;
5861   new (&_impl_) Impl_{
5862       decltype(_impl_.secure_aggregation_){nullptr}
5863     , /*decltype(_impl_._cached_size_)*/{}
5864   };
5865 }
5866 
~SideChannelProtocolOptionsRequest()5867 SideChannelProtocolOptionsRequest::~SideChannelProtocolOptionsRequest() {
5868   // @@protoc_insertion_point(destructor:google.internal.federatedml.v2.SideChannelProtocolOptionsRequest)
5869   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
5870   (void)arena;
5871     return;
5872   }
5873   SharedDtor();
5874 }
5875 
SharedDtor()5876 inline void SideChannelProtocolOptionsRequest::SharedDtor() {
5877   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
5878   if (this != internal_default_instance()) delete _impl_.secure_aggregation_;
5879 }
5880 
SetCachedSize(int size) const5881 void SideChannelProtocolOptionsRequest::SetCachedSize(int size) const {
5882   _impl_._cached_size_.Set(size);
5883 }
5884 
Clear()5885 void SideChannelProtocolOptionsRequest::Clear() {
5886 // @@protoc_insertion_point(message_clear_start:google.internal.federatedml.v2.SideChannelProtocolOptionsRequest)
5887   ::uint32_t cached_has_bits = 0;
5888   // Prevent compiler warnings about cached_has_bits being unused
5889   (void) cached_has_bits;
5890 
5891   if (GetArenaForAllocation() == nullptr && _impl_.secure_aggregation_ != nullptr) {
5892     delete _impl_.secure_aggregation_;
5893   }
5894   _impl_.secure_aggregation_ = nullptr;
5895   _internal_metadata_.Clear<std::string>();
5896 }
5897 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)5898 const char* SideChannelProtocolOptionsRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
5899 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
5900   while (!ctx->Done(&ptr)) {
5901     ::uint32_t tag;
5902     ptr = ::_pbi::ReadTag(ptr, &tag);
5903     switch (tag >> 3) {
5904       // .google.internal.federatedml.v2.SideChannelProtocolOptionsRequest.SecureAggregation secure_aggregation = 1;
5905       case 1:
5906         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
5907           ptr = ctx->ParseMessage(_internal_mutable_secure_aggregation(), ptr);
5908           CHK_(ptr);
5909         } else {
5910           goto handle_unusual;
5911         }
5912         continue;
5913       default:
5914         goto handle_unusual;
5915     }  // switch
5916   handle_unusual:
5917     if ((tag == 0) || ((tag & 7) == 4)) {
5918       CHK_(ptr);
5919       ctx->SetLastTag(tag);
5920       goto message_done;
5921     }
5922     ptr = UnknownFieldParse(
5923         tag,
5924         _internal_metadata_.mutable_unknown_fields<std::string>(),
5925         ptr, ctx);
5926     CHK_(ptr != nullptr);
5927   }  // while
5928 message_done:
5929   return ptr;
5930 failure:
5931   ptr = nullptr;
5932   goto message_done;
5933 #undef CHK_
5934 }
5935 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const5936 ::uint8_t* SideChannelProtocolOptionsRequest::_InternalSerialize(
5937     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
5938   // @@protoc_insertion_point(serialize_to_array_start:google.internal.federatedml.v2.SideChannelProtocolOptionsRequest)
5939   ::uint32_t cached_has_bits = 0;
5940   (void) cached_has_bits;
5941 
5942   // .google.internal.federatedml.v2.SideChannelProtocolOptionsRequest.SecureAggregation secure_aggregation = 1;
5943   if (this->_internal_has_secure_aggregation()) {
5944     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
5945       InternalWriteMessage(1, _Internal::secure_aggregation(this),
5946         _Internal::secure_aggregation(this).GetCachedSize(), target, stream);
5947   }
5948 
5949   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5950     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
5951         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
5952   }
5953   // @@protoc_insertion_point(serialize_to_array_end:google.internal.federatedml.v2.SideChannelProtocolOptionsRequest)
5954   return target;
5955 }
5956 
ByteSizeLong() const5957 size_t SideChannelProtocolOptionsRequest::ByteSizeLong() const {
5958 // @@protoc_insertion_point(message_byte_size_start:google.internal.federatedml.v2.SideChannelProtocolOptionsRequest)
5959   size_t total_size = 0;
5960 
5961   ::uint32_t cached_has_bits = 0;
5962   // Prevent compiler warnings about cached_has_bits being unused
5963   (void) cached_has_bits;
5964 
5965   // .google.internal.federatedml.v2.SideChannelProtocolOptionsRequest.SecureAggregation secure_aggregation = 1;
5966   if (this->_internal_has_secure_aggregation()) {
5967     total_size += 1 +
5968       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
5969         *_impl_.secure_aggregation_);
5970   }
5971 
5972   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5973     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
5974   }
5975   int cached_size = ::_pbi::ToCachedSize(total_size);
5976   SetCachedSize(cached_size);
5977   return total_size;
5978 }
5979 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)5980 void SideChannelProtocolOptionsRequest::CheckTypeAndMergeFrom(
5981     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
5982   MergeFrom(*::_pbi::DownCast<const SideChannelProtocolOptionsRequest*>(
5983       &from));
5984 }
5985 
MergeFrom(const SideChannelProtocolOptionsRequest & from)5986 void SideChannelProtocolOptionsRequest::MergeFrom(const SideChannelProtocolOptionsRequest& from) {
5987   SideChannelProtocolOptionsRequest* const _this = this;
5988   // @@protoc_insertion_point(class_specific_merge_from_start:google.internal.federatedml.v2.SideChannelProtocolOptionsRequest)
5989   GOOGLE_DCHECK_NE(&from, _this);
5990   ::uint32_t cached_has_bits = 0;
5991   (void) cached_has_bits;
5992 
5993   if (from._internal_has_secure_aggregation()) {
5994     _this->_internal_mutable_secure_aggregation()->::google::internal::federatedml::v2::SideChannelProtocolOptionsRequest_SecureAggregation::MergeFrom(
5995         from._internal_secure_aggregation());
5996   }
5997   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
5998 }
5999 
CopyFrom(const SideChannelProtocolOptionsRequest & from)6000 void SideChannelProtocolOptionsRequest::CopyFrom(const SideChannelProtocolOptionsRequest& from) {
6001 // @@protoc_insertion_point(class_specific_copy_from_start:google.internal.federatedml.v2.SideChannelProtocolOptionsRequest)
6002   if (&from == this) return;
6003   Clear();
6004   MergeFrom(from);
6005 }
6006 
IsInitialized() const6007 bool SideChannelProtocolOptionsRequest::IsInitialized() const {
6008   return true;
6009 }
6010 
InternalSwap(SideChannelProtocolOptionsRequest * other)6011 void SideChannelProtocolOptionsRequest::InternalSwap(SideChannelProtocolOptionsRequest* other) {
6012   using std::swap;
6013   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
6014   swap(_impl_.secure_aggregation_, other->_impl_.secure_aggregation_);
6015 }
6016 
GetTypeName() const6017 std::string SideChannelProtocolOptionsRequest::GetTypeName() const {
6018   return "google.internal.federatedml.v2.SideChannelProtocolOptionsRequest";
6019 }
6020 
6021 
6022 // ===================================================================
6023 
6024 class SideChannelProtocolOptionsResponse_SecureAggregation::_Internal {
6025  public:
6026 };
6027 
SideChannelProtocolOptionsResponse_SecureAggregation(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)6028 SideChannelProtocolOptionsResponse_SecureAggregation::SideChannelProtocolOptionsResponse_SecureAggregation(::PROTOBUF_NAMESPACE_ID::Arena* arena,
6029                          bool is_message_owned)
6030   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
6031   SharedCtor(arena, is_message_owned);
6032   // @@protoc_insertion_point(arena_constructor:google.internal.federatedml.v2.SideChannelProtocolOptionsResponse.SecureAggregation)
6033 }
SideChannelProtocolOptionsResponse_SecureAggregation(const SideChannelProtocolOptionsResponse_SecureAggregation & from)6034 SideChannelProtocolOptionsResponse_SecureAggregation::SideChannelProtocolOptionsResponse_SecureAggregation(const SideChannelProtocolOptionsResponse_SecureAggregation& from)
6035   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
6036   SideChannelProtocolOptionsResponse_SecureAggregation* const _this = this; (void)_this;
6037   new (&_impl_) Impl_{
6038       decltype(_impl_.client_variant_){}
6039     , /*decltype(_impl_._cached_size_)*/{}};
6040 
6041   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
6042   _this->_impl_.client_variant_ = from._impl_.client_variant_;
6043   // @@protoc_insertion_point(copy_constructor:google.internal.federatedml.v2.SideChannelProtocolOptionsResponse.SecureAggregation)
6044 }
6045 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)6046 inline void SideChannelProtocolOptionsResponse_SecureAggregation::SharedCtor(
6047     ::_pb::Arena* arena, bool is_message_owned) {
6048   (void)arena;
6049   (void)is_message_owned;
6050   new (&_impl_) Impl_{
6051       decltype(_impl_.client_variant_){0}
6052     , /*decltype(_impl_._cached_size_)*/{}
6053   };
6054 }
6055 
~SideChannelProtocolOptionsResponse_SecureAggregation()6056 SideChannelProtocolOptionsResponse_SecureAggregation::~SideChannelProtocolOptionsResponse_SecureAggregation() {
6057   // @@protoc_insertion_point(destructor:google.internal.federatedml.v2.SideChannelProtocolOptionsResponse.SecureAggregation)
6058   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
6059   (void)arena;
6060     return;
6061   }
6062   SharedDtor();
6063 }
6064 
SharedDtor()6065 inline void SideChannelProtocolOptionsResponse_SecureAggregation::SharedDtor() {
6066   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
6067 }
6068 
SetCachedSize(int size) const6069 void SideChannelProtocolOptionsResponse_SecureAggregation::SetCachedSize(int size) const {
6070   _impl_._cached_size_.Set(size);
6071 }
6072 
Clear()6073 void SideChannelProtocolOptionsResponse_SecureAggregation::Clear() {
6074 // @@protoc_insertion_point(message_clear_start:google.internal.federatedml.v2.SideChannelProtocolOptionsResponse.SecureAggregation)
6075   ::uint32_t cached_has_bits = 0;
6076   // Prevent compiler warnings about cached_has_bits being unused
6077   (void) cached_has_bits;
6078 
6079   _impl_.client_variant_ = 0;
6080   _internal_metadata_.Clear<std::string>();
6081 }
6082 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)6083 const char* SideChannelProtocolOptionsResponse_SecureAggregation::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
6084 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
6085   while (!ctx->Done(&ptr)) {
6086     ::uint32_t tag;
6087     ptr = ::_pbi::ReadTag(ptr, &tag);
6088     switch (tag >> 3) {
6089       // .fcp.secagg.ClientVariant client_variant = 1;
6090       case 1:
6091         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
6092           ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
6093           CHK_(ptr);
6094           _internal_set_client_variant(static_cast<::fcp::secagg::ClientVariant>(val));
6095         } else {
6096           goto handle_unusual;
6097         }
6098         continue;
6099       default:
6100         goto handle_unusual;
6101     }  // switch
6102   handle_unusual:
6103     if ((tag == 0) || ((tag & 7) == 4)) {
6104       CHK_(ptr);
6105       ctx->SetLastTag(tag);
6106       goto message_done;
6107     }
6108     ptr = UnknownFieldParse(
6109         tag,
6110         _internal_metadata_.mutable_unknown_fields<std::string>(),
6111         ptr, ctx);
6112     CHK_(ptr != nullptr);
6113   }  // while
6114 message_done:
6115   return ptr;
6116 failure:
6117   ptr = nullptr;
6118   goto message_done;
6119 #undef CHK_
6120 }
6121 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const6122 ::uint8_t* SideChannelProtocolOptionsResponse_SecureAggregation::_InternalSerialize(
6123     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
6124   // @@protoc_insertion_point(serialize_to_array_start:google.internal.federatedml.v2.SideChannelProtocolOptionsResponse.SecureAggregation)
6125   ::uint32_t cached_has_bits = 0;
6126   (void) cached_has_bits;
6127 
6128   // .fcp.secagg.ClientVariant client_variant = 1;
6129   if (this->_internal_client_variant() != 0) {
6130     target = stream->EnsureSpace(target);
6131     target = ::_pbi::WireFormatLite::WriteEnumToArray(
6132       1, this->_internal_client_variant(), target);
6133   }
6134 
6135   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
6136     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
6137         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
6138   }
6139   // @@protoc_insertion_point(serialize_to_array_end:google.internal.federatedml.v2.SideChannelProtocolOptionsResponse.SecureAggregation)
6140   return target;
6141 }
6142 
ByteSizeLong() const6143 size_t SideChannelProtocolOptionsResponse_SecureAggregation::ByteSizeLong() const {
6144 // @@protoc_insertion_point(message_byte_size_start:google.internal.federatedml.v2.SideChannelProtocolOptionsResponse.SecureAggregation)
6145   size_t total_size = 0;
6146 
6147   ::uint32_t cached_has_bits = 0;
6148   // Prevent compiler warnings about cached_has_bits being unused
6149   (void) cached_has_bits;
6150 
6151   // .fcp.secagg.ClientVariant client_variant = 1;
6152   if (this->_internal_client_variant() != 0) {
6153     total_size += 1 +
6154       ::_pbi::WireFormatLite::EnumSize(this->_internal_client_variant());
6155   }
6156 
6157   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
6158     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
6159   }
6160   int cached_size = ::_pbi::ToCachedSize(total_size);
6161   SetCachedSize(cached_size);
6162   return total_size;
6163 }
6164 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)6165 void SideChannelProtocolOptionsResponse_SecureAggregation::CheckTypeAndMergeFrom(
6166     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
6167   MergeFrom(*::_pbi::DownCast<const SideChannelProtocolOptionsResponse_SecureAggregation*>(
6168       &from));
6169 }
6170 
MergeFrom(const SideChannelProtocolOptionsResponse_SecureAggregation & from)6171 void SideChannelProtocolOptionsResponse_SecureAggregation::MergeFrom(const SideChannelProtocolOptionsResponse_SecureAggregation& from) {
6172   SideChannelProtocolOptionsResponse_SecureAggregation* const _this = this;
6173   // @@protoc_insertion_point(class_specific_merge_from_start:google.internal.federatedml.v2.SideChannelProtocolOptionsResponse.SecureAggregation)
6174   GOOGLE_DCHECK_NE(&from, _this);
6175   ::uint32_t cached_has_bits = 0;
6176   (void) cached_has_bits;
6177 
6178   if (from._internal_client_variant() != 0) {
6179     _this->_internal_set_client_variant(from._internal_client_variant());
6180   }
6181   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
6182 }
6183 
CopyFrom(const SideChannelProtocolOptionsResponse_SecureAggregation & from)6184 void SideChannelProtocolOptionsResponse_SecureAggregation::CopyFrom(const SideChannelProtocolOptionsResponse_SecureAggregation& from) {
6185 // @@protoc_insertion_point(class_specific_copy_from_start:google.internal.federatedml.v2.SideChannelProtocolOptionsResponse.SecureAggregation)
6186   if (&from == this) return;
6187   Clear();
6188   MergeFrom(from);
6189 }
6190 
IsInitialized() const6191 bool SideChannelProtocolOptionsResponse_SecureAggregation::IsInitialized() const {
6192   return true;
6193 }
6194 
InternalSwap(SideChannelProtocolOptionsResponse_SecureAggregation * other)6195 void SideChannelProtocolOptionsResponse_SecureAggregation::InternalSwap(SideChannelProtocolOptionsResponse_SecureAggregation* other) {
6196   using std::swap;
6197   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
6198   swap(_impl_.client_variant_, other->_impl_.client_variant_);
6199 }
6200 
GetTypeName() const6201 std::string SideChannelProtocolOptionsResponse_SecureAggregation::GetTypeName() const {
6202   return "google.internal.federatedml.v2.SideChannelProtocolOptionsResponse.SecureAggregation";
6203 }
6204 
6205 
6206 // ===================================================================
6207 
6208 class SideChannelProtocolOptionsResponse::_Internal {
6209  public:
6210   static const ::google::internal::federatedml::v2::SideChannelProtocolOptionsResponse_SecureAggregation& secure_aggregation(const SideChannelProtocolOptionsResponse* msg);
6211 };
6212 
6213 const ::google::internal::federatedml::v2::SideChannelProtocolOptionsResponse_SecureAggregation&
secure_aggregation(const SideChannelProtocolOptionsResponse * msg)6214 SideChannelProtocolOptionsResponse::_Internal::secure_aggregation(const SideChannelProtocolOptionsResponse* msg) {
6215   return *msg->_impl_.secure_aggregation_;
6216 }
SideChannelProtocolOptionsResponse(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)6217 SideChannelProtocolOptionsResponse::SideChannelProtocolOptionsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena,
6218                          bool is_message_owned)
6219   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
6220   SharedCtor(arena, is_message_owned);
6221   // @@protoc_insertion_point(arena_constructor:google.internal.federatedml.v2.SideChannelProtocolOptionsResponse)
6222 }
SideChannelProtocolOptionsResponse(const SideChannelProtocolOptionsResponse & from)6223 SideChannelProtocolOptionsResponse::SideChannelProtocolOptionsResponse(const SideChannelProtocolOptionsResponse& from)
6224   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
6225   SideChannelProtocolOptionsResponse* const _this = this; (void)_this;
6226   new (&_impl_) Impl_{
6227       decltype(_impl_.secure_aggregation_){nullptr}
6228     , /*decltype(_impl_._cached_size_)*/{}};
6229 
6230   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
6231   if (from._internal_has_secure_aggregation()) {
6232     _this->_impl_.secure_aggregation_ = new ::google::internal::federatedml::v2::SideChannelProtocolOptionsResponse_SecureAggregation(*from._impl_.secure_aggregation_);
6233   }
6234   // @@protoc_insertion_point(copy_constructor:google.internal.federatedml.v2.SideChannelProtocolOptionsResponse)
6235 }
6236 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)6237 inline void SideChannelProtocolOptionsResponse::SharedCtor(
6238     ::_pb::Arena* arena, bool is_message_owned) {
6239   (void)arena;
6240   (void)is_message_owned;
6241   new (&_impl_) Impl_{
6242       decltype(_impl_.secure_aggregation_){nullptr}
6243     , /*decltype(_impl_._cached_size_)*/{}
6244   };
6245 }
6246 
~SideChannelProtocolOptionsResponse()6247 SideChannelProtocolOptionsResponse::~SideChannelProtocolOptionsResponse() {
6248   // @@protoc_insertion_point(destructor:google.internal.federatedml.v2.SideChannelProtocolOptionsResponse)
6249   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
6250   (void)arena;
6251     return;
6252   }
6253   SharedDtor();
6254 }
6255 
SharedDtor()6256 inline void SideChannelProtocolOptionsResponse::SharedDtor() {
6257   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
6258   if (this != internal_default_instance()) delete _impl_.secure_aggregation_;
6259 }
6260 
SetCachedSize(int size) const6261 void SideChannelProtocolOptionsResponse::SetCachedSize(int size) const {
6262   _impl_._cached_size_.Set(size);
6263 }
6264 
Clear()6265 void SideChannelProtocolOptionsResponse::Clear() {
6266 // @@protoc_insertion_point(message_clear_start:google.internal.federatedml.v2.SideChannelProtocolOptionsResponse)
6267   ::uint32_t cached_has_bits = 0;
6268   // Prevent compiler warnings about cached_has_bits being unused
6269   (void) cached_has_bits;
6270 
6271   if (GetArenaForAllocation() == nullptr && _impl_.secure_aggregation_ != nullptr) {
6272     delete _impl_.secure_aggregation_;
6273   }
6274   _impl_.secure_aggregation_ = nullptr;
6275   _internal_metadata_.Clear<std::string>();
6276 }
6277 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)6278 const char* SideChannelProtocolOptionsResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
6279 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
6280   while (!ctx->Done(&ptr)) {
6281     ::uint32_t tag;
6282     ptr = ::_pbi::ReadTag(ptr, &tag);
6283     switch (tag >> 3) {
6284       // .google.internal.federatedml.v2.SideChannelProtocolOptionsResponse.SecureAggregation secure_aggregation = 1;
6285       case 1:
6286         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
6287           ptr = ctx->ParseMessage(_internal_mutable_secure_aggregation(), ptr);
6288           CHK_(ptr);
6289         } else {
6290           goto handle_unusual;
6291         }
6292         continue;
6293       default:
6294         goto handle_unusual;
6295     }  // switch
6296   handle_unusual:
6297     if ((tag == 0) || ((tag & 7) == 4)) {
6298       CHK_(ptr);
6299       ctx->SetLastTag(tag);
6300       goto message_done;
6301     }
6302     ptr = UnknownFieldParse(
6303         tag,
6304         _internal_metadata_.mutable_unknown_fields<std::string>(),
6305         ptr, ctx);
6306     CHK_(ptr != nullptr);
6307   }  // while
6308 message_done:
6309   return ptr;
6310 failure:
6311   ptr = nullptr;
6312   goto message_done;
6313 #undef CHK_
6314 }
6315 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const6316 ::uint8_t* SideChannelProtocolOptionsResponse::_InternalSerialize(
6317     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
6318   // @@protoc_insertion_point(serialize_to_array_start:google.internal.federatedml.v2.SideChannelProtocolOptionsResponse)
6319   ::uint32_t cached_has_bits = 0;
6320   (void) cached_has_bits;
6321 
6322   // .google.internal.federatedml.v2.SideChannelProtocolOptionsResponse.SecureAggregation secure_aggregation = 1;
6323   if (this->_internal_has_secure_aggregation()) {
6324     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
6325       InternalWriteMessage(1, _Internal::secure_aggregation(this),
6326         _Internal::secure_aggregation(this).GetCachedSize(), target, stream);
6327   }
6328 
6329   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
6330     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
6331         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
6332   }
6333   // @@protoc_insertion_point(serialize_to_array_end:google.internal.federatedml.v2.SideChannelProtocolOptionsResponse)
6334   return target;
6335 }
6336 
ByteSizeLong() const6337 size_t SideChannelProtocolOptionsResponse::ByteSizeLong() const {
6338 // @@protoc_insertion_point(message_byte_size_start:google.internal.federatedml.v2.SideChannelProtocolOptionsResponse)
6339   size_t total_size = 0;
6340 
6341   ::uint32_t cached_has_bits = 0;
6342   // Prevent compiler warnings about cached_has_bits being unused
6343   (void) cached_has_bits;
6344 
6345   // .google.internal.federatedml.v2.SideChannelProtocolOptionsResponse.SecureAggregation secure_aggregation = 1;
6346   if (this->_internal_has_secure_aggregation()) {
6347     total_size += 1 +
6348       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
6349         *_impl_.secure_aggregation_);
6350   }
6351 
6352   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
6353     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
6354   }
6355   int cached_size = ::_pbi::ToCachedSize(total_size);
6356   SetCachedSize(cached_size);
6357   return total_size;
6358 }
6359 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)6360 void SideChannelProtocolOptionsResponse::CheckTypeAndMergeFrom(
6361     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
6362   MergeFrom(*::_pbi::DownCast<const SideChannelProtocolOptionsResponse*>(
6363       &from));
6364 }
6365 
MergeFrom(const SideChannelProtocolOptionsResponse & from)6366 void SideChannelProtocolOptionsResponse::MergeFrom(const SideChannelProtocolOptionsResponse& from) {
6367   SideChannelProtocolOptionsResponse* const _this = this;
6368   // @@protoc_insertion_point(class_specific_merge_from_start:google.internal.federatedml.v2.SideChannelProtocolOptionsResponse)
6369   GOOGLE_DCHECK_NE(&from, _this);
6370   ::uint32_t cached_has_bits = 0;
6371   (void) cached_has_bits;
6372 
6373   if (from._internal_has_secure_aggregation()) {
6374     _this->_internal_mutable_secure_aggregation()->::google::internal::federatedml::v2::SideChannelProtocolOptionsResponse_SecureAggregation::MergeFrom(
6375         from._internal_secure_aggregation());
6376   }
6377   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
6378 }
6379 
CopyFrom(const SideChannelProtocolOptionsResponse & from)6380 void SideChannelProtocolOptionsResponse::CopyFrom(const SideChannelProtocolOptionsResponse& from) {
6381 // @@protoc_insertion_point(class_specific_copy_from_start:google.internal.federatedml.v2.SideChannelProtocolOptionsResponse)
6382   if (&from == this) return;
6383   Clear();
6384   MergeFrom(from);
6385 }
6386 
IsInitialized() const6387 bool SideChannelProtocolOptionsResponse::IsInitialized() const {
6388   return true;
6389 }
6390 
InternalSwap(SideChannelProtocolOptionsResponse * other)6391 void SideChannelProtocolOptionsResponse::InternalSwap(SideChannelProtocolOptionsResponse* other) {
6392   using std::swap;
6393   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
6394   swap(_impl_.secure_aggregation_, other->_impl_.secure_aggregation_);
6395 }
6396 
GetTypeName() const6397 std::string SideChannelProtocolOptionsResponse::GetTypeName() const {
6398   return "google.internal.federatedml.v2.SideChannelProtocolOptionsResponse";
6399 }
6400 
6401 
6402 // ===================================================================
6403 
6404 class SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo::_Internal {
6405  public:
6406 };
6407 
SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)6408 SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo::SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena,
6409                          bool is_message_owned)
6410   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
6411   SharedCtor(arena, is_message_owned);
6412   // @@protoc_insertion_point(arena_constructor:google.internal.federatedml.v2.SideChannelProtocolExecutionInfo.SecureAggregationProtocolExecutionInfo)
6413 }
SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo(const SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo & from)6414 SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo::SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo(const SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo& from)
6415   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
6416   SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo* const _this = this; (void)_this;
6417   new (&_impl_) Impl_{
6418       decltype(_impl_.expected_number_of_clients_){}
6419     , decltype(_impl_.minimum_surviving_clients_for_reconstruction_){}
6420     , decltype(_impl_.minimum_clients_in_server_visible_aggregate_){}
6421     , /*decltype(_impl_._cached_size_)*/{}};
6422 
6423   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
6424   ::memcpy(&_impl_.expected_number_of_clients_, &from._impl_.expected_number_of_clients_,
6425     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.minimum_clients_in_server_visible_aggregate_) -
6426     reinterpret_cast<char*>(&_impl_.expected_number_of_clients_)) + sizeof(_impl_.minimum_clients_in_server_visible_aggregate_));
6427   // @@protoc_insertion_point(copy_constructor:google.internal.federatedml.v2.SideChannelProtocolExecutionInfo.SecureAggregationProtocolExecutionInfo)
6428 }
6429 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)6430 inline void SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo::SharedCtor(
6431     ::_pb::Arena* arena, bool is_message_owned) {
6432   (void)arena;
6433   (void)is_message_owned;
6434   new (&_impl_) Impl_{
6435       decltype(_impl_.expected_number_of_clients_){0}
6436     , decltype(_impl_.minimum_surviving_clients_for_reconstruction_){0}
6437     , decltype(_impl_.minimum_clients_in_server_visible_aggregate_){0}
6438     , /*decltype(_impl_._cached_size_)*/{}
6439   };
6440 }
6441 
~SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo()6442 SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo::~SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo() {
6443   // @@protoc_insertion_point(destructor:google.internal.federatedml.v2.SideChannelProtocolExecutionInfo.SecureAggregationProtocolExecutionInfo)
6444   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
6445   (void)arena;
6446     return;
6447   }
6448   SharedDtor();
6449 }
6450 
SharedDtor()6451 inline void SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo::SharedDtor() {
6452   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
6453 }
6454 
SetCachedSize(int size) const6455 void SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo::SetCachedSize(int size) const {
6456   _impl_._cached_size_.Set(size);
6457 }
6458 
Clear()6459 void SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo::Clear() {
6460 // @@protoc_insertion_point(message_clear_start:google.internal.federatedml.v2.SideChannelProtocolExecutionInfo.SecureAggregationProtocolExecutionInfo)
6461   ::uint32_t cached_has_bits = 0;
6462   // Prevent compiler warnings about cached_has_bits being unused
6463   (void) cached_has_bits;
6464 
6465   ::memset(&_impl_.expected_number_of_clients_, 0, static_cast<size_t>(
6466       reinterpret_cast<char*>(&_impl_.minimum_clients_in_server_visible_aggregate_) -
6467       reinterpret_cast<char*>(&_impl_.expected_number_of_clients_)) + sizeof(_impl_.minimum_clients_in_server_visible_aggregate_));
6468   _internal_metadata_.Clear<std::string>();
6469 }
6470 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)6471 const char* SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
6472 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
6473   while (!ctx->Done(&ptr)) {
6474     ::uint32_t tag;
6475     ptr = ::_pbi::ReadTag(ptr, &tag);
6476     switch (tag >> 3) {
6477       // int32 expected_number_of_clients = 1;
6478       case 1:
6479         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
6480           _impl_.expected_number_of_clients_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
6481           CHK_(ptr);
6482         } else {
6483           goto handle_unusual;
6484         }
6485         continue;
6486       // int32 minimum_surviving_clients_for_reconstruction = 2;
6487       case 2:
6488         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
6489           _impl_.minimum_surviving_clients_for_reconstruction_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
6490           CHK_(ptr);
6491         } else {
6492           goto handle_unusual;
6493         }
6494         continue;
6495       // int32 minimum_clients_in_server_visible_aggregate = 3;
6496       case 3:
6497         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
6498           _impl_.minimum_clients_in_server_visible_aggregate_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
6499           CHK_(ptr);
6500         } else {
6501           goto handle_unusual;
6502         }
6503         continue;
6504       default:
6505         goto handle_unusual;
6506     }  // switch
6507   handle_unusual:
6508     if ((tag == 0) || ((tag & 7) == 4)) {
6509       CHK_(ptr);
6510       ctx->SetLastTag(tag);
6511       goto message_done;
6512     }
6513     ptr = UnknownFieldParse(
6514         tag,
6515         _internal_metadata_.mutable_unknown_fields<std::string>(),
6516         ptr, ctx);
6517     CHK_(ptr != nullptr);
6518   }  // while
6519 message_done:
6520   return ptr;
6521 failure:
6522   ptr = nullptr;
6523   goto message_done;
6524 #undef CHK_
6525 }
6526 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const6527 ::uint8_t* SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo::_InternalSerialize(
6528     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
6529   // @@protoc_insertion_point(serialize_to_array_start:google.internal.federatedml.v2.SideChannelProtocolExecutionInfo.SecureAggregationProtocolExecutionInfo)
6530   ::uint32_t cached_has_bits = 0;
6531   (void) cached_has_bits;
6532 
6533   // int32 expected_number_of_clients = 1;
6534   if (this->_internal_expected_number_of_clients() != 0) {
6535     target = stream->EnsureSpace(target);
6536     target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_expected_number_of_clients(), target);
6537   }
6538 
6539   // int32 minimum_surviving_clients_for_reconstruction = 2;
6540   if (this->_internal_minimum_surviving_clients_for_reconstruction() != 0) {
6541     target = stream->EnsureSpace(target);
6542     target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_minimum_surviving_clients_for_reconstruction(), target);
6543   }
6544 
6545   // int32 minimum_clients_in_server_visible_aggregate = 3;
6546   if (this->_internal_minimum_clients_in_server_visible_aggregate() != 0) {
6547     target = stream->EnsureSpace(target);
6548     target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_minimum_clients_in_server_visible_aggregate(), target);
6549   }
6550 
6551   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
6552     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
6553         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
6554   }
6555   // @@protoc_insertion_point(serialize_to_array_end:google.internal.federatedml.v2.SideChannelProtocolExecutionInfo.SecureAggregationProtocolExecutionInfo)
6556   return target;
6557 }
6558 
ByteSizeLong() const6559 size_t SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo::ByteSizeLong() const {
6560 // @@protoc_insertion_point(message_byte_size_start:google.internal.federatedml.v2.SideChannelProtocolExecutionInfo.SecureAggregationProtocolExecutionInfo)
6561   size_t total_size = 0;
6562 
6563   ::uint32_t cached_has_bits = 0;
6564   // Prevent compiler warnings about cached_has_bits being unused
6565   (void) cached_has_bits;
6566 
6567   // int32 expected_number_of_clients = 1;
6568   if (this->_internal_expected_number_of_clients() != 0) {
6569     total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_expected_number_of_clients());
6570   }
6571 
6572   // int32 minimum_surviving_clients_for_reconstruction = 2;
6573   if (this->_internal_minimum_surviving_clients_for_reconstruction() != 0) {
6574     total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_minimum_surviving_clients_for_reconstruction());
6575   }
6576 
6577   // int32 minimum_clients_in_server_visible_aggregate = 3;
6578   if (this->_internal_minimum_clients_in_server_visible_aggregate() != 0) {
6579     total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_minimum_clients_in_server_visible_aggregate());
6580   }
6581 
6582   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
6583     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
6584   }
6585   int cached_size = ::_pbi::ToCachedSize(total_size);
6586   SetCachedSize(cached_size);
6587   return total_size;
6588 }
6589 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)6590 void SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo::CheckTypeAndMergeFrom(
6591     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
6592   MergeFrom(*::_pbi::DownCast<const SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo*>(
6593       &from));
6594 }
6595 
MergeFrom(const SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo & from)6596 void SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo::MergeFrom(const SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo& from) {
6597   SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo* const _this = this;
6598   // @@protoc_insertion_point(class_specific_merge_from_start:google.internal.federatedml.v2.SideChannelProtocolExecutionInfo.SecureAggregationProtocolExecutionInfo)
6599   GOOGLE_DCHECK_NE(&from, _this);
6600   ::uint32_t cached_has_bits = 0;
6601   (void) cached_has_bits;
6602 
6603   if (from._internal_expected_number_of_clients() != 0) {
6604     _this->_internal_set_expected_number_of_clients(from._internal_expected_number_of_clients());
6605   }
6606   if (from._internal_minimum_surviving_clients_for_reconstruction() != 0) {
6607     _this->_internal_set_minimum_surviving_clients_for_reconstruction(from._internal_minimum_surviving_clients_for_reconstruction());
6608   }
6609   if (from._internal_minimum_clients_in_server_visible_aggregate() != 0) {
6610     _this->_internal_set_minimum_clients_in_server_visible_aggregate(from._internal_minimum_clients_in_server_visible_aggregate());
6611   }
6612   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
6613 }
6614 
CopyFrom(const SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo & from)6615 void SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo::CopyFrom(const SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo& from) {
6616 // @@protoc_insertion_point(class_specific_copy_from_start:google.internal.federatedml.v2.SideChannelProtocolExecutionInfo.SecureAggregationProtocolExecutionInfo)
6617   if (&from == this) return;
6618   Clear();
6619   MergeFrom(from);
6620 }
6621 
IsInitialized() const6622 bool SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo::IsInitialized() const {
6623   return true;
6624 }
6625 
InternalSwap(SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo * other)6626 void SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo::InternalSwap(SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo* other) {
6627   using std::swap;
6628   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
6629   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
6630       PROTOBUF_FIELD_OFFSET(SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo, _impl_.minimum_clients_in_server_visible_aggregate_)
6631       + sizeof(SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo::_impl_.minimum_clients_in_server_visible_aggregate_)  // NOLINT
6632       - PROTOBUF_FIELD_OFFSET(SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo, _impl_.expected_number_of_clients_)>(
6633           reinterpret_cast<char*>(&_impl_.expected_number_of_clients_),
6634           reinterpret_cast<char*>(&other->_impl_.expected_number_of_clients_));
6635 }
6636 
GetTypeName() const6637 std::string SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo::GetTypeName() const {
6638   return "google.internal.federatedml.v2.SideChannelProtocolExecutionInfo.SecureAggregationProtocolExecutionInfo";
6639 }
6640 
6641 
6642 // ===================================================================
6643 
6644 class SideChannelProtocolExecutionInfo::_Internal {
6645  public:
6646   static const ::google::internal::federatedml::v2::SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo& secure_aggregation(const SideChannelProtocolExecutionInfo* msg);
6647 };
6648 
6649 const ::google::internal::federatedml::v2::SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo&
secure_aggregation(const SideChannelProtocolExecutionInfo * msg)6650 SideChannelProtocolExecutionInfo::_Internal::secure_aggregation(const SideChannelProtocolExecutionInfo* msg) {
6651   return *msg->_impl_.secure_aggregation_;
6652 }
SideChannelProtocolExecutionInfo(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)6653 SideChannelProtocolExecutionInfo::SideChannelProtocolExecutionInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena,
6654                          bool is_message_owned)
6655   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
6656   SharedCtor(arena, is_message_owned);
6657   // @@protoc_insertion_point(arena_constructor:google.internal.federatedml.v2.SideChannelProtocolExecutionInfo)
6658 }
SideChannelProtocolExecutionInfo(const SideChannelProtocolExecutionInfo & from)6659 SideChannelProtocolExecutionInfo::SideChannelProtocolExecutionInfo(const SideChannelProtocolExecutionInfo& from)
6660   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
6661   SideChannelProtocolExecutionInfo* const _this = this; (void)_this;
6662   new (&_impl_) Impl_{
6663       decltype(_impl_.secure_aggregation_){nullptr}
6664     , /*decltype(_impl_._cached_size_)*/{}};
6665 
6666   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
6667   if (from._internal_has_secure_aggregation()) {
6668     _this->_impl_.secure_aggregation_ = new ::google::internal::federatedml::v2::SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo(*from._impl_.secure_aggregation_);
6669   }
6670   // @@protoc_insertion_point(copy_constructor:google.internal.federatedml.v2.SideChannelProtocolExecutionInfo)
6671 }
6672 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)6673 inline void SideChannelProtocolExecutionInfo::SharedCtor(
6674     ::_pb::Arena* arena, bool is_message_owned) {
6675   (void)arena;
6676   (void)is_message_owned;
6677   new (&_impl_) Impl_{
6678       decltype(_impl_.secure_aggregation_){nullptr}
6679     , /*decltype(_impl_._cached_size_)*/{}
6680   };
6681 }
6682 
~SideChannelProtocolExecutionInfo()6683 SideChannelProtocolExecutionInfo::~SideChannelProtocolExecutionInfo() {
6684   // @@protoc_insertion_point(destructor:google.internal.federatedml.v2.SideChannelProtocolExecutionInfo)
6685   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
6686   (void)arena;
6687     return;
6688   }
6689   SharedDtor();
6690 }
6691 
SharedDtor()6692 inline void SideChannelProtocolExecutionInfo::SharedDtor() {
6693   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
6694   if (this != internal_default_instance()) delete _impl_.secure_aggregation_;
6695 }
6696 
SetCachedSize(int size) const6697 void SideChannelProtocolExecutionInfo::SetCachedSize(int size) const {
6698   _impl_._cached_size_.Set(size);
6699 }
6700 
Clear()6701 void SideChannelProtocolExecutionInfo::Clear() {
6702 // @@protoc_insertion_point(message_clear_start:google.internal.federatedml.v2.SideChannelProtocolExecutionInfo)
6703   ::uint32_t cached_has_bits = 0;
6704   // Prevent compiler warnings about cached_has_bits being unused
6705   (void) cached_has_bits;
6706 
6707   if (GetArenaForAllocation() == nullptr && _impl_.secure_aggregation_ != nullptr) {
6708     delete _impl_.secure_aggregation_;
6709   }
6710   _impl_.secure_aggregation_ = nullptr;
6711   _internal_metadata_.Clear<std::string>();
6712 }
6713 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)6714 const char* SideChannelProtocolExecutionInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
6715 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
6716   while (!ctx->Done(&ptr)) {
6717     ::uint32_t tag;
6718     ptr = ::_pbi::ReadTag(ptr, &tag);
6719     switch (tag >> 3) {
6720       // .google.internal.federatedml.v2.SideChannelProtocolExecutionInfo.SecureAggregationProtocolExecutionInfo secure_aggregation = 1;
6721       case 1:
6722         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
6723           ptr = ctx->ParseMessage(_internal_mutable_secure_aggregation(), ptr);
6724           CHK_(ptr);
6725         } else {
6726           goto handle_unusual;
6727         }
6728         continue;
6729       default:
6730         goto handle_unusual;
6731     }  // switch
6732   handle_unusual:
6733     if ((tag == 0) || ((tag & 7) == 4)) {
6734       CHK_(ptr);
6735       ctx->SetLastTag(tag);
6736       goto message_done;
6737     }
6738     ptr = UnknownFieldParse(
6739         tag,
6740         _internal_metadata_.mutable_unknown_fields<std::string>(),
6741         ptr, ctx);
6742     CHK_(ptr != nullptr);
6743   }  // while
6744 message_done:
6745   return ptr;
6746 failure:
6747   ptr = nullptr;
6748   goto message_done;
6749 #undef CHK_
6750 }
6751 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const6752 ::uint8_t* SideChannelProtocolExecutionInfo::_InternalSerialize(
6753     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
6754   // @@protoc_insertion_point(serialize_to_array_start:google.internal.federatedml.v2.SideChannelProtocolExecutionInfo)
6755   ::uint32_t cached_has_bits = 0;
6756   (void) cached_has_bits;
6757 
6758   // .google.internal.federatedml.v2.SideChannelProtocolExecutionInfo.SecureAggregationProtocolExecutionInfo secure_aggregation = 1;
6759   if (this->_internal_has_secure_aggregation()) {
6760     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
6761       InternalWriteMessage(1, _Internal::secure_aggregation(this),
6762         _Internal::secure_aggregation(this).GetCachedSize(), target, stream);
6763   }
6764 
6765   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
6766     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
6767         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
6768   }
6769   // @@protoc_insertion_point(serialize_to_array_end:google.internal.federatedml.v2.SideChannelProtocolExecutionInfo)
6770   return target;
6771 }
6772 
ByteSizeLong() const6773 size_t SideChannelProtocolExecutionInfo::ByteSizeLong() const {
6774 // @@protoc_insertion_point(message_byte_size_start:google.internal.federatedml.v2.SideChannelProtocolExecutionInfo)
6775   size_t total_size = 0;
6776 
6777   ::uint32_t cached_has_bits = 0;
6778   // Prevent compiler warnings about cached_has_bits being unused
6779   (void) cached_has_bits;
6780 
6781   // .google.internal.federatedml.v2.SideChannelProtocolExecutionInfo.SecureAggregationProtocolExecutionInfo secure_aggregation = 1;
6782   if (this->_internal_has_secure_aggregation()) {
6783     total_size += 1 +
6784       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
6785         *_impl_.secure_aggregation_);
6786   }
6787 
6788   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
6789     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
6790   }
6791   int cached_size = ::_pbi::ToCachedSize(total_size);
6792   SetCachedSize(cached_size);
6793   return total_size;
6794 }
6795 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)6796 void SideChannelProtocolExecutionInfo::CheckTypeAndMergeFrom(
6797     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
6798   MergeFrom(*::_pbi::DownCast<const SideChannelProtocolExecutionInfo*>(
6799       &from));
6800 }
6801 
MergeFrom(const SideChannelProtocolExecutionInfo & from)6802 void SideChannelProtocolExecutionInfo::MergeFrom(const SideChannelProtocolExecutionInfo& from) {
6803   SideChannelProtocolExecutionInfo* const _this = this;
6804   // @@protoc_insertion_point(class_specific_merge_from_start:google.internal.federatedml.v2.SideChannelProtocolExecutionInfo)
6805   GOOGLE_DCHECK_NE(&from, _this);
6806   ::uint32_t cached_has_bits = 0;
6807   (void) cached_has_bits;
6808 
6809   if (from._internal_has_secure_aggregation()) {
6810     _this->_internal_mutable_secure_aggregation()->::google::internal::federatedml::v2::SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo::MergeFrom(
6811         from._internal_secure_aggregation());
6812   }
6813   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
6814 }
6815 
CopyFrom(const SideChannelProtocolExecutionInfo & from)6816 void SideChannelProtocolExecutionInfo::CopyFrom(const SideChannelProtocolExecutionInfo& from) {
6817 // @@protoc_insertion_point(class_specific_copy_from_start:google.internal.federatedml.v2.SideChannelProtocolExecutionInfo)
6818   if (&from == this) return;
6819   Clear();
6820   MergeFrom(from);
6821 }
6822 
IsInitialized() const6823 bool SideChannelProtocolExecutionInfo::IsInitialized() const {
6824   return true;
6825 }
6826 
InternalSwap(SideChannelProtocolExecutionInfo * other)6827 void SideChannelProtocolExecutionInfo::InternalSwap(SideChannelProtocolExecutionInfo* other) {
6828   using std::swap;
6829   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
6830   swap(_impl_.secure_aggregation_, other->_impl_.secure_aggregation_);
6831 }
6832 
GetTypeName() const6833 std::string SideChannelProtocolExecutionInfo::GetTypeName() const {
6834   return "google.internal.federatedml.v2.SideChannelProtocolExecutionInfo";
6835 }
6836 
6837 
6838 // ===================================================================
6839 
6840 class UriResource::_Internal {
6841  public:
6842   static const ::PROTOBUF_NAMESPACE_ID::Duration& max_age(const UriResource* msg);
6843 };
6844 
6845 const ::PROTOBUF_NAMESPACE_ID::Duration&
max_age(const UriResource * msg)6846 UriResource::_Internal::max_age(const UriResource* msg) {
6847   return *msg->_impl_.max_age_;
6848 }
clear_max_age()6849 void UriResource::clear_max_age() {
6850   if (GetArenaForAllocation() == nullptr && _impl_.max_age_ != nullptr) {
6851     delete _impl_.max_age_;
6852   }
6853   _impl_.max_age_ = nullptr;
6854 }
UriResource(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)6855 UriResource::UriResource(::PROTOBUF_NAMESPACE_ID::Arena* arena,
6856                          bool is_message_owned)
6857   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
6858   SharedCtor(arena, is_message_owned);
6859   // @@protoc_insertion_point(arena_constructor:google.internal.federatedml.v2.UriResource)
6860 }
UriResource(const UriResource & from)6861 UriResource::UriResource(const UriResource& from)
6862   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
6863   UriResource* const _this = this; (void)_this;
6864   new (&_impl_) Impl_{
6865       decltype(_impl_.uri_){}
6866     , decltype(_impl_.client_cache_id_){}
6867     , decltype(_impl_.max_age_){nullptr}
6868     , /*decltype(_impl_._cached_size_)*/{}};
6869 
6870   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
6871   _impl_.uri_.InitDefault();
6872   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
6873     _impl_.uri_.Set("", GetArenaForAllocation());
6874   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
6875   if (!from._internal_uri().empty()) {
6876     _this->_impl_.uri_.Set(from._internal_uri(),
6877       _this->GetArenaForAllocation());
6878   }
6879   _impl_.client_cache_id_.InitDefault();
6880   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
6881     _impl_.client_cache_id_.Set("", GetArenaForAllocation());
6882   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
6883   if (!from._internal_client_cache_id().empty()) {
6884     _this->_impl_.client_cache_id_.Set(from._internal_client_cache_id(),
6885       _this->GetArenaForAllocation());
6886   }
6887   if (from._internal_has_max_age()) {
6888     _this->_impl_.max_age_ = new ::PROTOBUF_NAMESPACE_ID::Duration(*from._impl_.max_age_);
6889   }
6890   // @@protoc_insertion_point(copy_constructor:google.internal.federatedml.v2.UriResource)
6891 }
6892 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)6893 inline void UriResource::SharedCtor(
6894     ::_pb::Arena* arena, bool is_message_owned) {
6895   (void)arena;
6896   (void)is_message_owned;
6897   new (&_impl_) Impl_{
6898       decltype(_impl_.uri_){}
6899     , decltype(_impl_.client_cache_id_){}
6900     , decltype(_impl_.max_age_){nullptr}
6901     , /*decltype(_impl_._cached_size_)*/{}
6902   };
6903   _impl_.uri_.InitDefault();
6904   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
6905     _impl_.uri_.Set("", GetArenaForAllocation());
6906   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
6907   _impl_.client_cache_id_.InitDefault();
6908   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
6909     _impl_.client_cache_id_.Set("", GetArenaForAllocation());
6910   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
6911 }
6912 
~UriResource()6913 UriResource::~UriResource() {
6914   // @@protoc_insertion_point(destructor:google.internal.federatedml.v2.UriResource)
6915   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
6916   (void)arena;
6917     return;
6918   }
6919   SharedDtor();
6920 }
6921 
SharedDtor()6922 inline void UriResource::SharedDtor() {
6923   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
6924   _impl_.uri_.Destroy();
6925   _impl_.client_cache_id_.Destroy();
6926   if (this != internal_default_instance()) delete _impl_.max_age_;
6927 }
6928 
SetCachedSize(int size) const6929 void UriResource::SetCachedSize(int size) const {
6930   _impl_._cached_size_.Set(size);
6931 }
6932 
Clear()6933 void UriResource::Clear() {
6934 // @@protoc_insertion_point(message_clear_start:google.internal.federatedml.v2.UriResource)
6935   ::uint32_t cached_has_bits = 0;
6936   // Prevent compiler warnings about cached_has_bits being unused
6937   (void) cached_has_bits;
6938 
6939   _impl_.uri_.ClearToEmpty();
6940   _impl_.client_cache_id_.ClearToEmpty();
6941   if (GetArenaForAllocation() == nullptr && _impl_.max_age_ != nullptr) {
6942     delete _impl_.max_age_;
6943   }
6944   _impl_.max_age_ = nullptr;
6945   _internal_metadata_.Clear<std::string>();
6946 }
6947 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)6948 const char* UriResource::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
6949 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
6950   while (!ctx->Done(&ptr)) {
6951     ::uint32_t tag;
6952     ptr = ::_pbi::ReadTag(ptr, &tag);
6953     switch (tag >> 3) {
6954       // string uri = 1;
6955       case 1:
6956         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
6957           auto str = _internal_mutable_uri();
6958           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
6959           CHK_(ptr);
6960           CHK_(::_pbi::VerifyUTF8(str, nullptr));
6961         } else {
6962           goto handle_unusual;
6963         }
6964         continue;
6965       // string client_cache_id = 2;
6966       case 2:
6967         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
6968           auto str = _internal_mutable_client_cache_id();
6969           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
6970           CHK_(ptr);
6971           CHK_(::_pbi::VerifyUTF8(str, nullptr));
6972         } else {
6973           goto handle_unusual;
6974         }
6975         continue;
6976       // .google.protobuf.Duration max_age = 3;
6977       case 3:
6978         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
6979           ptr = ctx->ParseMessage(_internal_mutable_max_age(), ptr);
6980           CHK_(ptr);
6981         } else {
6982           goto handle_unusual;
6983         }
6984         continue;
6985       default:
6986         goto handle_unusual;
6987     }  // switch
6988   handle_unusual:
6989     if ((tag == 0) || ((tag & 7) == 4)) {
6990       CHK_(ptr);
6991       ctx->SetLastTag(tag);
6992       goto message_done;
6993     }
6994     ptr = UnknownFieldParse(
6995         tag,
6996         _internal_metadata_.mutable_unknown_fields<std::string>(),
6997         ptr, ctx);
6998     CHK_(ptr != nullptr);
6999   }  // while
7000 message_done:
7001   return ptr;
7002 failure:
7003   ptr = nullptr;
7004   goto message_done;
7005 #undef CHK_
7006 }
7007 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const7008 ::uint8_t* UriResource::_InternalSerialize(
7009     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
7010   // @@protoc_insertion_point(serialize_to_array_start:google.internal.federatedml.v2.UriResource)
7011   ::uint32_t cached_has_bits = 0;
7012   (void) cached_has_bits;
7013 
7014   // string uri = 1;
7015   if (!this->_internal_uri().empty()) {
7016     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
7017       this->_internal_uri().data(), static_cast<int>(this->_internal_uri().length()),
7018       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
7019       "google.internal.federatedml.v2.UriResource.uri");
7020     target = stream->WriteStringMaybeAliased(
7021         1, this->_internal_uri(), target);
7022   }
7023 
7024   // string client_cache_id = 2;
7025   if (!this->_internal_client_cache_id().empty()) {
7026     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
7027       this->_internal_client_cache_id().data(), static_cast<int>(this->_internal_client_cache_id().length()),
7028       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
7029       "google.internal.federatedml.v2.UriResource.client_cache_id");
7030     target = stream->WriteStringMaybeAliased(
7031         2, this->_internal_client_cache_id(), target);
7032   }
7033 
7034   // .google.protobuf.Duration max_age = 3;
7035   if (this->_internal_has_max_age()) {
7036     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
7037       InternalWriteMessage(3, _Internal::max_age(this),
7038         _Internal::max_age(this).GetCachedSize(), target, stream);
7039   }
7040 
7041   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7042     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
7043         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
7044   }
7045   // @@protoc_insertion_point(serialize_to_array_end:google.internal.federatedml.v2.UriResource)
7046   return target;
7047 }
7048 
ByteSizeLong() const7049 size_t UriResource::ByteSizeLong() const {
7050 // @@protoc_insertion_point(message_byte_size_start:google.internal.federatedml.v2.UriResource)
7051   size_t total_size = 0;
7052 
7053   ::uint32_t cached_has_bits = 0;
7054   // Prevent compiler warnings about cached_has_bits being unused
7055   (void) cached_has_bits;
7056 
7057   // string uri = 1;
7058   if (!this->_internal_uri().empty()) {
7059     total_size += 1 +
7060       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
7061         this->_internal_uri());
7062   }
7063 
7064   // string client_cache_id = 2;
7065   if (!this->_internal_client_cache_id().empty()) {
7066     total_size += 1 +
7067       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
7068         this->_internal_client_cache_id());
7069   }
7070 
7071   // .google.protobuf.Duration max_age = 3;
7072   if (this->_internal_has_max_age()) {
7073     total_size += 1 +
7074       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
7075         *_impl_.max_age_);
7076   }
7077 
7078   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7079     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
7080   }
7081   int cached_size = ::_pbi::ToCachedSize(total_size);
7082   SetCachedSize(cached_size);
7083   return total_size;
7084 }
7085 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)7086 void UriResource::CheckTypeAndMergeFrom(
7087     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
7088   MergeFrom(*::_pbi::DownCast<const UriResource*>(
7089       &from));
7090 }
7091 
MergeFrom(const UriResource & from)7092 void UriResource::MergeFrom(const UriResource& from) {
7093   UriResource* const _this = this;
7094   // @@protoc_insertion_point(class_specific_merge_from_start:google.internal.federatedml.v2.UriResource)
7095   GOOGLE_DCHECK_NE(&from, _this);
7096   ::uint32_t cached_has_bits = 0;
7097   (void) cached_has_bits;
7098 
7099   if (!from._internal_uri().empty()) {
7100     _this->_internal_set_uri(from._internal_uri());
7101   }
7102   if (!from._internal_client_cache_id().empty()) {
7103     _this->_internal_set_client_cache_id(from._internal_client_cache_id());
7104   }
7105   if (from._internal_has_max_age()) {
7106     _this->_internal_mutable_max_age()->::PROTOBUF_NAMESPACE_ID::Duration::MergeFrom(
7107         from._internal_max_age());
7108   }
7109   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
7110 }
7111 
CopyFrom(const UriResource & from)7112 void UriResource::CopyFrom(const UriResource& from) {
7113 // @@protoc_insertion_point(class_specific_copy_from_start:google.internal.federatedml.v2.UriResource)
7114   if (&from == this) return;
7115   Clear();
7116   MergeFrom(from);
7117 }
7118 
IsInitialized() const7119 bool UriResource::IsInitialized() const {
7120   return true;
7121 }
7122 
InternalSwap(UriResource * other)7123 void UriResource::InternalSwap(UriResource* other) {
7124   using std::swap;
7125   auto* lhs_arena = GetArenaForAllocation();
7126   auto* rhs_arena = other->GetArenaForAllocation();
7127   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
7128   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
7129       &_impl_.uri_, lhs_arena,
7130       &other->_impl_.uri_, rhs_arena
7131   );
7132   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
7133       &_impl_.client_cache_id_, lhs_arena,
7134       &other->_impl_.client_cache_id_, rhs_arena
7135   );
7136   swap(_impl_.max_age_, other->_impl_.max_age_);
7137 }
7138 
GetTypeName() const7139 std::string UriResource::GetTypeName() const {
7140   return "google.internal.federatedml.v2.UriResource";
7141 }
7142 
7143 
7144 // ===================================================================
7145 
AcceptanceInfo_SideChannelsEntry_DoNotUse()7146 AcceptanceInfo_SideChannelsEntry_DoNotUse::AcceptanceInfo_SideChannelsEntry_DoNotUse() {}
AcceptanceInfo_SideChannelsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena * arena)7147 AcceptanceInfo_SideChannelsEntry_DoNotUse::AcceptanceInfo_SideChannelsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
7148     : SuperType(arena) {}
MergeFrom(const AcceptanceInfo_SideChannelsEntry_DoNotUse & other)7149 void AcceptanceInfo_SideChannelsEntry_DoNotUse::MergeFrom(const AcceptanceInfo_SideChannelsEntry_DoNotUse& other) {
7150   MergeFromInternal(other);
7151 }
7152 
7153 // ===================================================================
7154 
7155 class AcceptanceInfo::_Internal {
7156  public:
7157   static const ::google::internal::federatedml::v2::UriResource& init_checkpoint_resource(const AcceptanceInfo* msg);
7158   static const ::google::internal::federatedml::v2::UriResource& plan_resource(const AcceptanceInfo* msg);
7159   static const ::google::internal::federatedml::v2::SideChannelProtocolExecutionInfo& side_channel_protocol_execution_info(const AcceptanceInfo* msg);
7160   static const ::google::internal::federatedml::v2::FederatedSelectUriInfo& federated_select_uri_info(const AcceptanceInfo* msg);
7161 };
7162 
7163 const ::google::internal::federatedml::v2::UriResource&
init_checkpoint_resource(const AcceptanceInfo * msg)7164 AcceptanceInfo::_Internal::init_checkpoint_resource(const AcceptanceInfo* msg) {
7165   return *msg->_impl_.init_checkpoint_type_.init_checkpoint_resource_;
7166 }
7167 const ::google::internal::federatedml::v2::UriResource&
plan_resource(const AcceptanceInfo * msg)7168 AcceptanceInfo::_Internal::plan_resource(const AcceptanceInfo* msg) {
7169   return *msg->_impl_.plan_type_.plan_resource_;
7170 }
7171 const ::google::internal::federatedml::v2::SideChannelProtocolExecutionInfo&
side_channel_protocol_execution_info(const AcceptanceInfo * msg)7172 AcceptanceInfo::_Internal::side_channel_protocol_execution_info(const AcceptanceInfo* msg) {
7173   return *msg->_impl_.side_channel_protocol_execution_info_;
7174 }
7175 const ::google::internal::federatedml::v2::FederatedSelectUriInfo&
federated_select_uri_info(const AcceptanceInfo * msg)7176 AcceptanceInfo::_Internal::federated_select_uri_info(const AcceptanceInfo* msg) {
7177   return *msg->_impl_.federated_select_uri_info_;
7178 }
set_allocated_init_checkpoint_resource(::google::internal::federatedml::v2::UriResource * init_checkpoint_resource)7179 void AcceptanceInfo::set_allocated_init_checkpoint_resource(::google::internal::federatedml::v2::UriResource* init_checkpoint_resource) {
7180   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
7181   clear_init_checkpoint_type();
7182   if (init_checkpoint_resource) {
7183     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
7184       ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(init_checkpoint_resource);
7185     if (message_arena != submessage_arena) {
7186       init_checkpoint_resource = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
7187           message_arena, init_checkpoint_resource, submessage_arena);
7188     }
7189     set_has_init_checkpoint_resource();
7190     _impl_.init_checkpoint_type_.init_checkpoint_resource_ = init_checkpoint_resource;
7191   }
7192   // @@protoc_insertion_point(field_set_allocated:google.internal.federatedml.v2.AcceptanceInfo.init_checkpoint_resource)
7193 }
set_allocated_plan_resource(::google::internal::federatedml::v2::UriResource * plan_resource)7194 void AcceptanceInfo::set_allocated_plan_resource(::google::internal::federatedml::v2::UriResource* plan_resource) {
7195   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
7196   clear_plan_type();
7197   if (plan_resource) {
7198     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
7199       ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(plan_resource);
7200     if (message_arena != submessage_arena) {
7201       plan_resource = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
7202           message_arena, plan_resource, submessage_arena);
7203     }
7204     set_has_plan_resource();
7205     _impl_.plan_type_.plan_resource_ = plan_resource;
7206   }
7207   // @@protoc_insertion_point(field_set_allocated:google.internal.federatedml.v2.AcceptanceInfo.plan_resource)
7208 }
AcceptanceInfo(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)7209 AcceptanceInfo::AcceptanceInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena,
7210                          bool is_message_owned)
7211   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
7212   SharedCtor(arena, is_message_owned);
7213   // @@protoc_insertion_point(arena_constructor:google.internal.federatedml.v2.AcceptanceInfo)
7214 }
AcceptanceInfo(const AcceptanceInfo & from)7215 AcceptanceInfo::AcceptanceInfo(const AcceptanceInfo& from)
7216   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
7217   AcceptanceInfo* const _this = this; (void)_this;
7218   new (&_impl_) Impl_{
7219       /*decltype(_impl_.side_channels_)*/{}
7220     , decltype(_impl_.execution_phase_id_){}
7221     , decltype(_impl_.task_name_){}
7222     , decltype(_impl_.side_channel_protocol_execution_info_){nullptr}
7223     , decltype(_impl_.federated_select_uri_info_){nullptr}
7224     , decltype(_impl_.init_checkpoint_type_){}
7225     , decltype(_impl_.plan_type_){}
7226     , /*decltype(_impl_._cached_size_)*/{}
7227     , /*decltype(_impl_._oneof_case_)*/{}};
7228 
7229   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
7230   _this->_impl_.side_channels_.MergeFrom(from._impl_.side_channels_);
7231   _impl_.execution_phase_id_.InitDefault();
7232   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
7233     _impl_.execution_phase_id_.Set("", GetArenaForAllocation());
7234   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
7235   if (!from._internal_execution_phase_id().empty()) {
7236     _this->_impl_.execution_phase_id_.Set(from._internal_execution_phase_id(),
7237       _this->GetArenaForAllocation());
7238   }
7239   _impl_.task_name_.InitDefault();
7240   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
7241     _impl_.task_name_.Set("", GetArenaForAllocation());
7242   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
7243   if (!from._internal_task_name().empty()) {
7244     _this->_impl_.task_name_.Set(from._internal_task_name(),
7245       _this->GetArenaForAllocation());
7246   }
7247   if (from._internal_has_side_channel_protocol_execution_info()) {
7248     _this->_impl_.side_channel_protocol_execution_info_ = new ::google::internal::federatedml::v2::SideChannelProtocolExecutionInfo(*from._impl_.side_channel_protocol_execution_info_);
7249   }
7250   if (from._internal_has_federated_select_uri_info()) {
7251     _this->_impl_.federated_select_uri_info_ = new ::google::internal::federatedml::v2::FederatedSelectUriInfo(*from._impl_.federated_select_uri_info_);
7252   }
7253   clear_has_init_checkpoint_type();
7254   switch (from.init_checkpoint_type_case()) {
7255     case kInitCheckpoint: {
7256       _this->_internal_set_init_checkpoint(from._internal_init_checkpoint());
7257       break;
7258     }
7259     case kInitCheckpointResource: {
7260       _this->_internal_mutable_init_checkpoint_resource()->::google::internal::federatedml::v2::UriResource::MergeFrom(
7261           from._internal_init_checkpoint_resource());
7262       break;
7263     }
7264     case INIT_CHECKPOINT_TYPE_NOT_SET: {
7265       break;
7266     }
7267   }
7268   clear_has_plan_type();
7269   switch (from.plan_type_case()) {
7270     case kPlan: {
7271       _this->_internal_set_plan(from._internal_plan());
7272       break;
7273     }
7274     case kPlanResource: {
7275       _this->_internal_mutable_plan_resource()->::google::internal::federatedml::v2::UriResource::MergeFrom(
7276           from._internal_plan_resource());
7277       break;
7278     }
7279     case PLAN_TYPE_NOT_SET: {
7280       break;
7281     }
7282   }
7283   // @@protoc_insertion_point(copy_constructor:google.internal.federatedml.v2.AcceptanceInfo)
7284 }
7285 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)7286 inline void AcceptanceInfo::SharedCtor(
7287     ::_pb::Arena* arena, bool is_message_owned) {
7288   (void)arena;
7289   (void)is_message_owned;
7290   new (&_impl_) Impl_{
7291       /*decltype(_impl_.side_channels_)*/{::_pbi::ArenaInitialized(), arena}
7292     , decltype(_impl_.execution_phase_id_){}
7293     , decltype(_impl_.task_name_){}
7294     , decltype(_impl_.side_channel_protocol_execution_info_){nullptr}
7295     , decltype(_impl_.federated_select_uri_info_){nullptr}
7296     , decltype(_impl_.init_checkpoint_type_){}
7297     , decltype(_impl_.plan_type_){}
7298     , /*decltype(_impl_._cached_size_)*/{}
7299     , /*decltype(_impl_._oneof_case_)*/{}
7300   };
7301   _impl_.execution_phase_id_.InitDefault();
7302   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
7303     _impl_.execution_phase_id_.Set("", GetArenaForAllocation());
7304   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
7305   _impl_.task_name_.InitDefault();
7306   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
7307     _impl_.task_name_.Set("", GetArenaForAllocation());
7308   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
7309   clear_has_init_checkpoint_type();
7310   clear_has_plan_type();
7311 }
7312 
~AcceptanceInfo()7313 AcceptanceInfo::~AcceptanceInfo() {
7314   // @@protoc_insertion_point(destructor:google.internal.federatedml.v2.AcceptanceInfo)
7315   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
7316   (void)arena;
7317     return;
7318   }
7319   SharedDtor();
7320 }
7321 
SharedDtor()7322 inline void AcceptanceInfo::SharedDtor() {
7323   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
7324   _impl_.side_channels_.Destruct();
7325   _impl_.side_channels_.~MapFieldLite();
7326   _impl_.execution_phase_id_.Destroy();
7327   _impl_.task_name_.Destroy();
7328   if (this != internal_default_instance()) delete _impl_.side_channel_protocol_execution_info_;
7329   if (this != internal_default_instance()) delete _impl_.federated_select_uri_info_;
7330   if (has_init_checkpoint_type()) {
7331     clear_init_checkpoint_type();
7332   }
7333   if (has_plan_type()) {
7334     clear_plan_type();
7335   }
7336 }
7337 
SetCachedSize(int size) const7338 void AcceptanceInfo::SetCachedSize(int size) const {
7339   _impl_._cached_size_.Set(size);
7340 }
7341 
clear_init_checkpoint_type()7342 void AcceptanceInfo::clear_init_checkpoint_type() {
7343 // @@protoc_insertion_point(one_of_clear_start:google.internal.federatedml.v2.AcceptanceInfo)
7344   switch (init_checkpoint_type_case()) {
7345     case kInitCheckpoint: {
7346       _impl_.init_checkpoint_type_.init_checkpoint_.Destroy();
7347       break;
7348     }
7349     case kInitCheckpointResource: {
7350       if (GetArenaForAllocation() == nullptr) {
7351         delete _impl_.init_checkpoint_type_.init_checkpoint_resource_;
7352       }
7353       break;
7354     }
7355     case INIT_CHECKPOINT_TYPE_NOT_SET: {
7356       break;
7357     }
7358   }
7359   _impl_._oneof_case_[0] = INIT_CHECKPOINT_TYPE_NOT_SET;
7360 }
7361 
clear_plan_type()7362 void AcceptanceInfo::clear_plan_type() {
7363 // @@protoc_insertion_point(one_of_clear_start:google.internal.federatedml.v2.AcceptanceInfo)
7364   switch (plan_type_case()) {
7365     case kPlan: {
7366       _impl_.plan_type_.plan_.Destroy();
7367       break;
7368     }
7369     case kPlanResource: {
7370       if (GetArenaForAllocation() == nullptr) {
7371         delete _impl_.plan_type_.plan_resource_;
7372       }
7373       break;
7374     }
7375     case PLAN_TYPE_NOT_SET: {
7376       break;
7377     }
7378   }
7379   _impl_._oneof_case_[1] = PLAN_TYPE_NOT_SET;
7380 }
7381 
7382 
Clear()7383 void AcceptanceInfo::Clear() {
7384 // @@protoc_insertion_point(message_clear_start:google.internal.federatedml.v2.AcceptanceInfo)
7385   ::uint32_t cached_has_bits = 0;
7386   // Prevent compiler warnings about cached_has_bits being unused
7387   (void) cached_has_bits;
7388 
7389   _impl_.side_channels_.Clear();
7390   _impl_.execution_phase_id_.ClearToEmpty();
7391   _impl_.task_name_.ClearToEmpty();
7392   if (GetArenaForAllocation() == nullptr && _impl_.side_channel_protocol_execution_info_ != nullptr) {
7393     delete _impl_.side_channel_protocol_execution_info_;
7394   }
7395   _impl_.side_channel_protocol_execution_info_ = nullptr;
7396   if (GetArenaForAllocation() == nullptr && _impl_.federated_select_uri_info_ != nullptr) {
7397     delete _impl_.federated_select_uri_info_;
7398   }
7399   _impl_.federated_select_uri_info_ = nullptr;
7400   clear_init_checkpoint_type();
7401   clear_plan_type();
7402   _internal_metadata_.Clear<std::string>();
7403 }
7404 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)7405 const char* AcceptanceInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
7406 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
7407   while (!ctx->Done(&ptr)) {
7408     ::uint32_t tag;
7409     ptr = ::_pbi::ReadTag(ptr, &tag);
7410     switch (tag >> 3) {
7411       // string execution_phase_id = 1;
7412       case 1:
7413         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
7414           auto str = _internal_mutable_execution_phase_id();
7415           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
7416           CHK_(ptr);
7417           CHK_(::_pbi::VerifyUTF8(str, nullptr));
7418         } else {
7419           goto handle_unusual;
7420         }
7421         continue;
7422       // bytes init_checkpoint = 2;
7423       case 2:
7424         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
7425           auto str = _internal_mutable_init_checkpoint();
7426           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
7427           CHK_(ptr);
7428         } else {
7429           goto handle_unusual;
7430         }
7431         continue;
7432       // bytes plan = 3;
7433       case 3:
7434         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
7435           auto str = _internal_mutable_plan();
7436           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
7437           CHK_(ptr);
7438         } else {
7439           goto handle_unusual;
7440         }
7441         continue;
7442       // map<string, .google.internal.federatedml.v2.SideChannelExecutionInfo> side_channels = 4;
7443       case 4:
7444         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
7445           ptr -= 1;
7446           do {
7447             ptr += 1;
7448             ptr = ctx->ParseMessage(&_impl_.side_channels_, ptr);
7449             CHK_(ptr);
7450             if (!ctx->DataAvailable(ptr)) break;
7451           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr));
7452         } else {
7453           goto handle_unusual;
7454         }
7455         continue;
7456       // .google.internal.federatedml.v2.SideChannelProtocolExecutionInfo side_channel_protocol_execution_info = 5;
7457       case 5:
7458         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
7459           ptr = ctx->ParseMessage(_internal_mutable_side_channel_protocol_execution_info(), ptr);
7460           CHK_(ptr);
7461         } else {
7462           goto handle_unusual;
7463         }
7464         continue;
7465       // .google.internal.federatedml.v2.UriResource init_checkpoint_resource = 8;
7466       case 8:
7467         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 66)) {
7468           ptr = ctx->ParseMessage(_internal_mutable_init_checkpoint_resource(), ptr);
7469           CHK_(ptr);
7470         } else {
7471           goto handle_unusual;
7472         }
7473         continue;
7474       // .google.internal.federatedml.v2.UriResource plan_resource = 9;
7475       case 9:
7476         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 74)) {
7477           ptr = ctx->ParseMessage(_internal_mutable_plan_resource(), ptr);
7478           CHK_(ptr);
7479         } else {
7480           goto handle_unusual;
7481         }
7482         continue;
7483       // string task_name = 10;
7484       case 10:
7485         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 82)) {
7486           auto str = _internal_mutable_task_name();
7487           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
7488           CHK_(ptr);
7489           CHK_(::_pbi::VerifyUTF8(str, nullptr));
7490         } else {
7491           goto handle_unusual;
7492         }
7493         continue;
7494       // .google.internal.federatedml.v2.FederatedSelectUriInfo federated_select_uri_info = 11;
7495       case 11:
7496         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 90)) {
7497           ptr = ctx->ParseMessage(_internal_mutable_federated_select_uri_info(), ptr);
7498           CHK_(ptr);
7499         } else {
7500           goto handle_unusual;
7501         }
7502         continue;
7503       default:
7504         goto handle_unusual;
7505     }  // switch
7506   handle_unusual:
7507     if ((tag == 0) || ((tag & 7) == 4)) {
7508       CHK_(ptr);
7509       ctx->SetLastTag(tag);
7510       goto message_done;
7511     }
7512     ptr = UnknownFieldParse(
7513         tag,
7514         _internal_metadata_.mutable_unknown_fields<std::string>(),
7515         ptr, ctx);
7516     CHK_(ptr != nullptr);
7517   }  // while
7518 message_done:
7519   return ptr;
7520 failure:
7521   ptr = nullptr;
7522   goto message_done;
7523 #undef CHK_
7524 }
7525 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const7526 ::uint8_t* AcceptanceInfo::_InternalSerialize(
7527     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
7528   // @@protoc_insertion_point(serialize_to_array_start:google.internal.federatedml.v2.AcceptanceInfo)
7529   ::uint32_t cached_has_bits = 0;
7530   (void) cached_has_bits;
7531 
7532   // string execution_phase_id = 1;
7533   if (!this->_internal_execution_phase_id().empty()) {
7534     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
7535       this->_internal_execution_phase_id().data(), static_cast<int>(this->_internal_execution_phase_id().length()),
7536       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
7537       "google.internal.federatedml.v2.AcceptanceInfo.execution_phase_id");
7538     target = stream->WriteStringMaybeAliased(
7539         1, this->_internal_execution_phase_id(), target);
7540   }
7541 
7542   // bytes init_checkpoint = 2;
7543   if (_internal_has_init_checkpoint()) {
7544     target = stream->WriteBytesMaybeAliased(
7545         2, this->_internal_init_checkpoint(), target);
7546   }
7547 
7548   // bytes plan = 3;
7549   if (_internal_has_plan()) {
7550     target = stream->WriteBytesMaybeAliased(
7551         3, this->_internal_plan(), target);
7552   }
7553 
7554   // map<string, .google.internal.federatedml.v2.SideChannelExecutionInfo> side_channels = 4;
7555   if (!this->_internal_side_channels().empty()) {
7556     using MapType = ::_pb::Map<std::string, ::google::internal::federatedml::v2::SideChannelExecutionInfo>;
7557     using WireHelper = AcceptanceInfo_SideChannelsEntry_DoNotUse::Funcs;
7558     const auto& map_field = this->_internal_side_channels();
7559     auto check_utf8 = [](const MapType::value_type& entry) {
7560       (void)entry;
7561       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
7562         entry.first.data(), static_cast<int>(entry.first.length()),
7563         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
7564         "google.internal.federatedml.v2.AcceptanceInfo.SideChannelsEntry.key");
7565     };
7566 
7567     if (stream->IsSerializationDeterministic() && map_field.size() > 1) {
7568       for (const auto& entry : ::_pbi::MapSorterPtr<MapType>(map_field)) {
7569         target = WireHelper::InternalSerialize(4, entry.first, entry.second, target, stream);
7570         check_utf8(entry);
7571       }
7572     } else {
7573       for (const auto& entry : map_field) {
7574         target = WireHelper::InternalSerialize(4, entry.first, entry.second, target, stream);
7575         check_utf8(entry);
7576       }
7577     }
7578   }
7579 
7580   // .google.internal.federatedml.v2.SideChannelProtocolExecutionInfo side_channel_protocol_execution_info = 5;
7581   if (this->_internal_has_side_channel_protocol_execution_info()) {
7582     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
7583       InternalWriteMessage(5, _Internal::side_channel_protocol_execution_info(this),
7584         _Internal::side_channel_protocol_execution_info(this).GetCachedSize(), target, stream);
7585   }
7586 
7587   // .google.internal.federatedml.v2.UriResource init_checkpoint_resource = 8;
7588   if (_internal_has_init_checkpoint_resource()) {
7589     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
7590       InternalWriteMessage(8, _Internal::init_checkpoint_resource(this),
7591         _Internal::init_checkpoint_resource(this).GetCachedSize(), target, stream);
7592   }
7593 
7594   // .google.internal.federatedml.v2.UriResource plan_resource = 9;
7595   if (_internal_has_plan_resource()) {
7596     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
7597       InternalWriteMessage(9, _Internal::plan_resource(this),
7598         _Internal::plan_resource(this).GetCachedSize(), target, stream);
7599   }
7600 
7601   // string task_name = 10;
7602   if (!this->_internal_task_name().empty()) {
7603     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
7604       this->_internal_task_name().data(), static_cast<int>(this->_internal_task_name().length()),
7605       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
7606       "google.internal.federatedml.v2.AcceptanceInfo.task_name");
7607     target = stream->WriteStringMaybeAliased(
7608         10, this->_internal_task_name(), target);
7609   }
7610 
7611   // .google.internal.federatedml.v2.FederatedSelectUriInfo federated_select_uri_info = 11;
7612   if (this->_internal_has_federated_select_uri_info()) {
7613     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
7614       InternalWriteMessage(11, _Internal::federated_select_uri_info(this),
7615         _Internal::federated_select_uri_info(this).GetCachedSize(), target, stream);
7616   }
7617 
7618   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7619     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
7620         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
7621   }
7622   // @@protoc_insertion_point(serialize_to_array_end:google.internal.federatedml.v2.AcceptanceInfo)
7623   return target;
7624 }
7625 
ByteSizeLong() const7626 size_t AcceptanceInfo::ByteSizeLong() const {
7627 // @@protoc_insertion_point(message_byte_size_start:google.internal.federatedml.v2.AcceptanceInfo)
7628   size_t total_size = 0;
7629 
7630   ::uint32_t cached_has_bits = 0;
7631   // Prevent compiler warnings about cached_has_bits being unused
7632   (void) cached_has_bits;
7633 
7634   // map<string, .google.internal.federatedml.v2.SideChannelExecutionInfo> side_channels = 4;
7635   total_size += 1 *
7636       ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_side_channels_size());
7637   for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::internal::federatedml::v2::SideChannelExecutionInfo >::const_iterator
7638       it = this->_internal_side_channels().begin();
7639       it != this->_internal_side_channels().end(); ++it) {
7640     total_size += AcceptanceInfo_SideChannelsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
7641   }
7642 
7643   // string execution_phase_id = 1;
7644   if (!this->_internal_execution_phase_id().empty()) {
7645     total_size += 1 +
7646       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
7647         this->_internal_execution_phase_id());
7648   }
7649 
7650   // string task_name = 10;
7651   if (!this->_internal_task_name().empty()) {
7652     total_size += 1 +
7653       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
7654         this->_internal_task_name());
7655   }
7656 
7657   // .google.internal.federatedml.v2.SideChannelProtocolExecutionInfo side_channel_protocol_execution_info = 5;
7658   if (this->_internal_has_side_channel_protocol_execution_info()) {
7659     total_size += 1 +
7660       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
7661         *_impl_.side_channel_protocol_execution_info_);
7662   }
7663 
7664   // .google.internal.federatedml.v2.FederatedSelectUriInfo federated_select_uri_info = 11;
7665   if (this->_internal_has_federated_select_uri_info()) {
7666     total_size += 1 +
7667       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
7668         *_impl_.federated_select_uri_info_);
7669   }
7670 
7671   switch (init_checkpoint_type_case()) {
7672     // bytes init_checkpoint = 2;
7673     case kInitCheckpoint: {
7674       total_size += 1 +
7675         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
7676           this->_internal_init_checkpoint());
7677       break;
7678     }
7679     // .google.internal.federatedml.v2.UriResource init_checkpoint_resource = 8;
7680     case kInitCheckpointResource: {
7681       total_size += 1 +
7682         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
7683           *_impl_.init_checkpoint_type_.init_checkpoint_resource_);
7684       break;
7685     }
7686     case INIT_CHECKPOINT_TYPE_NOT_SET: {
7687       break;
7688     }
7689   }
7690   switch (plan_type_case()) {
7691     // bytes plan = 3;
7692     case kPlan: {
7693       total_size += 1 +
7694         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
7695           this->_internal_plan());
7696       break;
7697     }
7698     // .google.internal.federatedml.v2.UriResource plan_resource = 9;
7699     case kPlanResource: {
7700       total_size += 1 +
7701         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
7702           *_impl_.plan_type_.plan_resource_);
7703       break;
7704     }
7705     case PLAN_TYPE_NOT_SET: {
7706       break;
7707     }
7708   }
7709   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7710     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
7711   }
7712   int cached_size = ::_pbi::ToCachedSize(total_size);
7713   SetCachedSize(cached_size);
7714   return total_size;
7715 }
7716 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)7717 void AcceptanceInfo::CheckTypeAndMergeFrom(
7718     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
7719   MergeFrom(*::_pbi::DownCast<const AcceptanceInfo*>(
7720       &from));
7721 }
7722 
MergeFrom(const AcceptanceInfo & from)7723 void AcceptanceInfo::MergeFrom(const AcceptanceInfo& from) {
7724   AcceptanceInfo* const _this = this;
7725   // @@protoc_insertion_point(class_specific_merge_from_start:google.internal.federatedml.v2.AcceptanceInfo)
7726   GOOGLE_DCHECK_NE(&from, _this);
7727   ::uint32_t cached_has_bits = 0;
7728   (void) cached_has_bits;
7729 
7730   _this->_impl_.side_channels_.MergeFrom(from._impl_.side_channels_);
7731   if (!from._internal_execution_phase_id().empty()) {
7732     _this->_internal_set_execution_phase_id(from._internal_execution_phase_id());
7733   }
7734   if (!from._internal_task_name().empty()) {
7735     _this->_internal_set_task_name(from._internal_task_name());
7736   }
7737   if (from._internal_has_side_channel_protocol_execution_info()) {
7738     _this->_internal_mutable_side_channel_protocol_execution_info()->::google::internal::federatedml::v2::SideChannelProtocolExecutionInfo::MergeFrom(
7739         from._internal_side_channel_protocol_execution_info());
7740   }
7741   if (from._internal_has_federated_select_uri_info()) {
7742     _this->_internal_mutable_federated_select_uri_info()->::google::internal::federatedml::v2::FederatedSelectUriInfo::MergeFrom(
7743         from._internal_federated_select_uri_info());
7744   }
7745   switch (from.init_checkpoint_type_case()) {
7746     case kInitCheckpoint: {
7747       _this->_internal_set_init_checkpoint(from._internal_init_checkpoint());
7748       break;
7749     }
7750     case kInitCheckpointResource: {
7751       _this->_internal_mutable_init_checkpoint_resource()->::google::internal::federatedml::v2::UriResource::MergeFrom(
7752           from._internal_init_checkpoint_resource());
7753       break;
7754     }
7755     case INIT_CHECKPOINT_TYPE_NOT_SET: {
7756       break;
7757     }
7758   }
7759   switch (from.plan_type_case()) {
7760     case kPlan: {
7761       _this->_internal_set_plan(from._internal_plan());
7762       break;
7763     }
7764     case kPlanResource: {
7765       _this->_internal_mutable_plan_resource()->::google::internal::federatedml::v2::UriResource::MergeFrom(
7766           from._internal_plan_resource());
7767       break;
7768     }
7769     case PLAN_TYPE_NOT_SET: {
7770       break;
7771     }
7772   }
7773   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
7774 }
7775 
CopyFrom(const AcceptanceInfo & from)7776 void AcceptanceInfo::CopyFrom(const AcceptanceInfo& from) {
7777 // @@protoc_insertion_point(class_specific_copy_from_start:google.internal.federatedml.v2.AcceptanceInfo)
7778   if (&from == this) return;
7779   Clear();
7780   MergeFrom(from);
7781 }
7782 
IsInitialized() const7783 bool AcceptanceInfo::IsInitialized() const {
7784   return true;
7785 }
7786 
InternalSwap(AcceptanceInfo * other)7787 void AcceptanceInfo::InternalSwap(AcceptanceInfo* other) {
7788   using std::swap;
7789   auto* lhs_arena = GetArenaForAllocation();
7790   auto* rhs_arena = other->GetArenaForAllocation();
7791   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
7792   _impl_.side_channels_.InternalSwap(&other->_impl_.side_channels_);
7793   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
7794       &_impl_.execution_phase_id_, lhs_arena,
7795       &other->_impl_.execution_phase_id_, rhs_arena
7796   );
7797   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
7798       &_impl_.task_name_, lhs_arena,
7799       &other->_impl_.task_name_, rhs_arena
7800   );
7801   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
7802       PROTOBUF_FIELD_OFFSET(AcceptanceInfo, _impl_.federated_select_uri_info_)
7803       + sizeof(AcceptanceInfo::_impl_.federated_select_uri_info_)  // NOLINT
7804       - PROTOBUF_FIELD_OFFSET(AcceptanceInfo, _impl_.side_channel_protocol_execution_info_)>(
7805           reinterpret_cast<char*>(&_impl_.side_channel_protocol_execution_info_),
7806           reinterpret_cast<char*>(&other->_impl_.side_channel_protocol_execution_info_));
7807   swap(_impl_.init_checkpoint_type_, other->_impl_.init_checkpoint_type_);
7808   swap(_impl_.plan_type_, other->_impl_.plan_type_);
7809   swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
7810   swap(_impl_._oneof_case_[1], other->_impl_._oneof_case_[1]);
7811 }
7812 
GetTypeName() const7813 std::string AcceptanceInfo::GetTypeName() const {
7814   return "google.internal.federatedml.v2.AcceptanceInfo";
7815 }
7816 
7817 
7818 // ===================================================================
7819 
7820 class FederatedSelectUriInfo::_Internal {
7821  public:
7822 };
7823 
FederatedSelectUriInfo(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)7824 FederatedSelectUriInfo::FederatedSelectUriInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena,
7825                          bool is_message_owned)
7826   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
7827   SharedCtor(arena, is_message_owned);
7828   // @@protoc_insertion_point(arena_constructor:google.internal.federatedml.v2.FederatedSelectUriInfo)
7829 }
FederatedSelectUriInfo(const FederatedSelectUriInfo & from)7830 FederatedSelectUriInfo::FederatedSelectUriInfo(const FederatedSelectUriInfo& from)
7831   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
7832   FederatedSelectUriInfo* const _this = this; (void)_this;
7833   new (&_impl_) Impl_{
7834       decltype(_impl_.uri_template_){}
7835     , /*decltype(_impl_._cached_size_)*/{}};
7836 
7837   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
7838   _impl_.uri_template_.InitDefault();
7839   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
7840     _impl_.uri_template_.Set("", GetArenaForAllocation());
7841   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
7842   if (!from._internal_uri_template().empty()) {
7843     _this->_impl_.uri_template_.Set(from._internal_uri_template(),
7844       _this->GetArenaForAllocation());
7845   }
7846   // @@protoc_insertion_point(copy_constructor:google.internal.federatedml.v2.FederatedSelectUriInfo)
7847 }
7848 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)7849 inline void FederatedSelectUriInfo::SharedCtor(
7850     ::_pb::Arena* arena, bool is_message_owned) {
7851   (void)arena;
7852   (void)is_message_owned;
7853   new (&_impl_) Impl_{
7854       decltype(_impl_.uri_template_){}
7855     , /*decltype(_impl_._cached_size_)*/{}
7856   };
7857   _impl_.uri_template_.InitDefault();
7858   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
7859     _impl_.uri_template_.Set("", GetArenaForAllocation());
7860   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
7861 }
7862 
~FederatedSelectUriInfo()7863 FederatedSelectUriInfo::~FederatedSelectUriInfo() {
7864   // @@protoc_insertion_point(destructor:google.internal.federatedml.v2.FederatedSelectUriInfo)
7865   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
7866   (void)arena;
7867     return;
7868   }
7869   SharedDtor();
7870 }
7871 
SharedDtor()7872 inline void FederatedSelectUriInfo::SharedDtor() {
7873   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
7874   _impl_.uri_template_.Destroy();
7875 }
7876 
SetCachedSize(int size) const7877 void FederatedSelectUriInfo::SetCachedSize(int size) const {
7878   _impl_._cached_size_.Set(size);
7879 }
7880 
Clear()7881 void FederatedSelectUriInfo::Clear() {
7882 // @@protoc_insertion_point(message_clear_start:google.internal.federatedml.v2.FederatedSelectUriInfo)
7883   ::uint32_t cached_has_bits = 0;
7884   // Prevent compiler warnings about cached_has_bits being unused
7885   (void) cached_has_bits;
7886 
7887   _impl_.uri_template_.ClearToEmpty();
7888   _internal_metadata_.Clear<std::string>();
7889 }
7890 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)7891 const char* FederatedSelectUriInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
7892 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
7893   while (!ctx->Done(&ptr)) {
7894     ::uint32_t tag;
7895     ptr = ::_pbi::ReadTag(ptr, &tag);
7896     switch (tag >> 3) {
7897       // string uri_template = 1;
7898       case 1:
7899         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
7900           auto str = _internal_mutable_uri_template();
7901           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
7902           CHK_(ptr);
7903           CHK_(::_pbi::VerifyUTF8(str, nullptr));
7904         } else {
7905           goto handle_unusual;
7906         }
7907         continue;
7908       default:
7909         goto handle_unusual;
7910     }  // switch
7911   handle_unusual:
7912     if ((tag == 0) || ((tag & 7) == 4)) {
7913       CHK_(ptr);
7914       ctx->SetLastTag(tag);
7915       goto message_done;
7916     }
7917     ptr = UnknownFieldParse(
7918         tag,
7919         _internal_metadata_.mutable_unknown_fields<std::string>(),
7920         ptr, ctx);
7921     CHK_(ptr != nullptr);
7922   }  // while
7923 message_done:
7924   return ptr;
7925 failure:
7926   ptr = nullptr;
7927   goto message_done;
7928 #undef CHK_
7929 }
7930 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const7931 ::uint8_t* FederatedSelectUriInfo::_InternalSerialize(
7932     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
7933   // @@protoc_insertion_point(serialize_to_array_start:google.internal.federatedml.v2.FederatedSelectUriInfo)
7934   ::uint32_t cached_has_bits = 0;
7935   (void) cached_has_bits;
7936 
7937   // string uri_template = 1;
7938   if (!this->_internal_uri_template().empty()) {
7939     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
7940       this->_internal_uri_template().data(), static_cast<int>(this->_internal_uri_template().length()),
7941       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
7942       "google.internal.federatedml.v2.FederatedSelectUriInfo.uri_template");
7943     target = stream->WriteStringMaybeAliased(
7944         1, this->_internal_uri_template(), target);
7945   }
7946 
7947   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7948     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
7949         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
7950   }
7951   // @@protoc_insertion_point(serialize_to_array_end:google.internal.federatedml.v2.FederatedSelectUriInfo)
7952   return target;
7953 }
7954 
ByteSizeLong() const7955 size_t FederatedSelectUriInfo::ByteSizeLong() const {
7956 // @@protoc_insertion_point(message_byte_size_start:google.internal.federatedml.v2.FederatedSelectUriInfo)
7957   size_t total_size = 0;
7958 
7959   ::uint32_t cached_has_bits = 0;
7960   // Prevent compiler warnings about cached_has_bits being unused
7961   (void) cached_has_bits;
7962 
7963   // string uri_template = 1;
7964   if (!this->_internal_uri_template().empty()) {
7965     total_size += 1 +
7966       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
7967         this->_internal_uri_template());
7968   }
7969 
7970   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7971     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
7972   }
7973   int cached_size = ::_pbi::ToCachedSize(total_size);
7974   SetCachedSize(cached_size);
7975   return total_size;
7976 }
7977 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)7978 void FederatedSelectUriInfo::CheckTypeAndMergeFrom(
7979     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
7980   MergeFrom(*::_pbi::DownCast<const FederatedSelectUriInfo*>(
7981       &from));
7982 }
7983 
MergeFrom(const FederatedSelectUriInfo & from)7984 void FederatedSelectUriInfo::MergeFrom(const FederatedSelectUriInfo& from) {
7985   FederatedSelectUriInfo* const _this = this;
7986   // @@protoc_insertion_point(class_specific_merge_from_start:google.internal.federatedml.v2.FederatedSelectUriInfo)
7987   GOOGLE_DCHECK_NE(&from, _this);
7988   ::uint32_t cached_has_bits = 0;
7989   (void) cached_has_bits;
7990 
7991   if (!from._internal_uri_template().empty()) {
7992     _this->_internal_set_uri_template(from._internal_uri_template());
7993   }
7994   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
7995 }
7996 
CopyFrom(const FederatedSelectUriInfo & from)7997 void FederatedSelectUriInfo::CopyFrom(const FederatedSelectUriInfo& from) {
7998 // @@protoc_insertion_point(class_specific_copy_from_start:google.internal.federatedml.v2.FederatedSelectUriInfo)
7999   if (&from == this) return;
8000   Clear();
8001   MergeFrom(from);
8002 }
8003 
IsInitialized() const8004 bool FederatedSelectUriInfo::IsInitialized() const {
8005   return true;
8006 }
8007 
InternalSwap(FederatedSelectUriInfo * other)8008 void FederatedSelectUriInfo::InternalSwap(FederatedSelectUriInfo* other) {
8009   using std::swap;
8010   auto* lhs_arena = GetArenaForAllocation();
8011   auto* rhs_arena = other->GetArenaForAllocation();
8012   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
8013   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
8014       &_impl_.uri_template_, lhs_arena,
8015       &other->_impl_.uri_template_, rhs_arena
8016   );
8017 }
8018 
GetTypeName() const8019 std::string FederatedSelectUriInfo::GetTypeName() const {
8020   return "google.internal.federatedml.v2.FederatedSelectUriInfo";
8021 }
8022 
8023 
8024 // ===================================================================
8025 
8026 class RejectionInfo::_Internal {
8027  public:
8028   static const ::google::internal::federatedml::v2::RetryWindow& retry_window(const RejectionInfo* msg);
8029 };
8030 
8031 const ::google::internal::federatedml::v2::RetryWindow&
retry_window(const RejectionInfo * msg)8032 RejectionInfo::_Internal::retry_window(const RejectionInfo* msg) {
8033   return *msg->_impl_.retry_window_;
8034 }
RejectionInfo(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)8035 RejectionInfo::RejectionInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena,
8036                          bool is_message_owned)
8037   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
8038   SharedCtor(arena, is_message_owned);
8039   // @@protoc_insertion_point(arena_constructor:google.internal.federatedml.v2.RejectionInfo)
8040 }
RejectionInfo(const RejectionInfo & from)8041 RejectionInfo::RejectionInfo(const RejectionInfo& from)
8042   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
8043   RejectionInfo* const _this = this; (void)_this;
8044   new (&_impl_) Impl_{
8045       decltype(_impl_.retry_window_){nullptr}
8046     , /*decltype(_impl_._cached_size_)*/{}};
8047 
8048   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
8049   if (from._internal_has_retry_window()) {
8050     _this->_impl_.retry_window_ = new ::google::internal::federatedml::v2::RetryWindow(*from._impl_.retry_window_);
8051   }
8052   // @@protoc_insertion_point(copy_constructor:google.internal.federatedml.v2.RejectionInfo)
8053 }
8054 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)8055 inline void RejectionInfo::SharedCtor(
8056     ::_pb::Arena* arena, bool is_message_owned) {
8057   (void)arena;
8058   (void)is_message_owned;
8059   new (&_impl_) Impl_{
8060       decltype(_impl_.retry_window_){nullptr}
8061     , /*decltype(_impl_._cached_size_)*/{}
8062   };
8063 }
8064 
~RejectionInfo()8065 RejectionInfo::~RejectionInfo() {
8066   // @@protoc_insertion_point(destructor:google.internal.federatedml.v2.RejectionInfo)
8067   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
8068   (void)arena;
8069     return;
8070   }
8071   SharedDtor();
8072 }
8073 
SharedDtor()8074 inline void RejectionInfo::SharedDtor() {
8075   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
8076   if (this != internal_default_instance()) delete _impl_.retry_window_;
8077 }
8078 
SetCachedSize(int size) const8079 void RejectionInfo::SetCachedSize(int size) const {
8080   _impl_._cached_size_.Set(size);
8081 }
8082 
Clear()8083 void RejectionInfo::Clear() {
8084 // @@protoc_insertion_point(message_clear_start:google.internal.federatedml.v2.RejectionInfo)
8085   ::uint32_t cached_has_bits = 0;
8086   // Prevent compiler warnings about cached_has_bits being unused
8087   (void) cached_has_bits;
8088 
8089   if (GetArenaForAllocation() == nullptr && _impl_.retry_window_ != nullptr) {
8090     delete _impl_.retry_window_;
8091   }
8092   _impl_.retry_window_ = nullptr;
8093   _internal_metadata_.Clear<std::string>();
8094 }
8095 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)8096 const char* RejectionInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
8097 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
8098   while (!ctx->Done(&ptr)) {
8099     ::uint32_t tag;
8100     ptr = ::_pbi::ReadTag(ptr, &tag);
8101     switch (tag >> 3) {
8102       // .google.internal.federatedml.v2.RetryWindow retry_window = 4 [deprecated = true];
8103       case 4:
8104         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
8105           ptr = ctx->ParseMessage(_internal_mutable_retry_window(), ptr);
8106           CHK_(ptr);
8107         } else {
8108           goto handle_unusual;
8109         }
8110         continue;
8111       default:
8112         goto handle_unusual;
8113     }  // switch
8114   handle_unusual:
8115     if ((tag == 0) || ((tag & 7) == 4)) {
8116       CHK_(ptr);
8117       ctx->SetLastTag(tag);
8118       goto message_done;
8119     }
8120     ptr = UnknownFieldParse(
8121         tag,
8122         _internal_metadata_.mutable_unknown_fields<std::string>(),
8123         ptr, ctx);
8124     CHK_(ptr != nullptr);
8125   }  // while
8126 message_done:
8127   return ptr;
8128 failure:
8129   ptr = nullptr;
8130   goto message_done;
8131 #undef CHK_
8132 }
8133 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const8134 ::uint8_t* RejectionInfo::_InternalSerialize(
8135     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
8136   // @@protoc_insertion_point(serialize_to_array_start:google.internal.federatedml.v2.RejectionInfo)
8137   ::uint32_t cached_has_bits = 0;
8138   (void) cached_has_bits;
8139 
8140   // .google.internal.federatedml.v2.RetryWindow retry_window = 4 [deprecated = true];
8141   if (this->_internal_has_retry_window()) {
8142     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
8143       InternalWriteMessage(4, _Internal::retry_window(this),
8144         _Internal::retry_window(this).GetCachedSize(), target, stream);
8145   }
8146 
8147   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
8148     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
8149         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
8150   }
8151   // @@protoc_insertion_point(serialize_to_array_end:google.internal.federatedml.v2.RejectionInfo)
8152   return target;
8153 }
8154 
ByteSizeLong() const8155 size_t RejectionInfo::ByteSizeLong() const {
8156 // @@protoc_insertion_point(message_byte_size_start:google.internal.federatedml.v2.RejectionInfo)
8157   size_t total_size = 0;
8158 
8159   ::uint32_t cached_has_bits = 0;
8160   // Prevent compiler warnings about cached_has_bits being unused
8161   (void) cached_has_bits;
8162 
8163   // .google.internal.federatedml.v2.RetryWindow retry_window = 4 [deprecated = true];
8164   if (this->_internal_has_retry_window()) {
8165     total_size += 1 +
8166       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
8167         *_impl_.retry_window_);
8168   }
8169 
8170   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
8171     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
8172   }
8173   int cached_size = ::_pbi::ToCachedSize(total_size);
8174   SetCachedSize(cached_size);
8175   return total_size;
8176 }
8177 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)8178 void RejectionInfo::CheckTypeAndMergeFrom(
8179     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
8180   MergeFrom(*::_pbi::DownCast<const RejectionInfo*>(
8181       &from));
8182 }
8183 
MergeFrom(const RejectionInfo & from)8184 void RejectionInfo::MergeFrom(const RejectionInfo& from) {
8185   RejectionInfo* const _this = this;
8186   // @@protoc_insertion_point(class_specific_merge_from_start:google.internal.federatedml.v2.RejectionInfo)
8187   GOOGLE_DCHECK_NE(&from, _this);
8188   ::uint32_t cached_has_bits = 0;
8189   (void) cached_has_bits;
8190 
8191   if (from._internal_has_retry_window()) {
8192     _this->_internal_mutable_retry_window()->::google::internal::federatedml::v2::RetryWindow::MergeFrom(
8193         from._internal_retry_window());
8194   }
8195   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
8196 }
8197 
CopyFrom(const RejectionInfo & from)8198 void RejectionInfo::CopyFrom(const RejectionInfo& from) {
8199 // @@protoc_insertion_point(class_specific_copy_from_start:google.internal.federatedml.v2.RejectionInfo)
8200   if (&from == this) return;
8201   Clear();
8202   MergeFrom(from);
8203 }
8204 
IsInitialized() const8205 bool RejectionInfo::IsInitialized() const {
8206   return true;
8207 }
8208 
InternalSwap(RejectionInfo * other)8209 void RejectionInfo::InternalSwap(RejectionInfo* other) {
8210   using std::swap;
8211   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
8212   swap(_impl_.retry_window_, other->_impl_.retry_window_);
8213 }
8214 
GetTypeName() const8215 std::string RejectionInfo::GetTypeName() const {
8216   return "google.internal.federatedml.v2.RejectionInfo";
8217 }
8218 
8219 
8220 // ===================================================================
8221 
8222 class ReportRequest::_Internal {
8223  public:
8224   static const ::google::internal::federatedml::v2::Report& report(const ReportRequest* msg);
8225 };
8226 
8227 const ::google::internal::federatedml::v2::Report&
report(const ReportRequest * msg)8228 ReportRequest::_Internal::report(const ReportRequest* msg) {
8229   return *msg->_impl_.report_;
8230 }
ReportRequest(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)8231 ReportRequest::ReportRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
8232                          bool is_message_owned)
8233   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
8234   SharedCtor(arena, is_message_owned);
8235   // @@protoc_insertion_point(arena_constructor:google.internal.federatedml.v2.ReportRequest)
8236 }
ReportRequest(const ReportRequest & from)8237 ReportRequest::ReportRequest(const ReportRequest& from)
8238   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
8239   ReportRequest* const _this = this; (void)_this;
8240   new (&_impl_) Impl_{
8241       decltype(_impl_.population_name_){}
8242     , decltype(_impl_.execution_phase_id_){}
8243     , decltype(_impl_.report_){nullptr}
8244     , /*decltype(_impl_._cached_size_)*/{}};
8245 
8246   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
8247   _impl_.population_name_.InitDefault();
8248   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
8249     _impl_.population_name_.Set("", GetArenaForAllocation());
8250   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
8251   if (!from._internal_population_name().empty()) {
8252     _this->_impl_.population_name_.Set(from._internal_population_name(),
8253       _this->GetArenaForAllocation());
8254   }
8255   _impl_.execution_phase_id_.InitDefault();
8256   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
8257     _impl_.execution_phase_id_.Set("", GetArenaForAllocation());
8258   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
8259   if (!from._internal_execution_phase_id().empty()) {
8260     _this->_impl_.execution_phase_id_.Set(from._internal_execution_phase_id(),
8261       _this->GetArenaForAllocation());
8262   }
8263   if (from._internal_has_report()) {
8264     _this->_impl_.report_ = new ::google::internal::federatedml::v2::Report(*from._impl_.report_);
8265   }
8266   // @@protoc_insertion_point(copy_constructor:google.internal.federatedml.v2.ReportRequest)
8267 }
8268 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)8269 inline void ReportRequest::SharedCtor(
8270     ::_pb::Arena* arena, bool is_message_owned) {
8271   (void)arena;
8272   (void)is_message_owned;
8273   new (&_impl_) Impl_{
8274       decltype(_impl_.population_name_){}
8275     , decltype(_impl_.execution_phase_id_){}
8276     , decltype(_impl_.report_){nullptr}
8277     , /*decltype(_impl_._cached_size_)*/{}
8278   };
8279   _impl_.population_name_.InitDefault();
8280   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
8281     _impl_.population_name_.Set("", GetArenaForAllocation());
8282   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
8283   _impl_.execution_phase_id_.InitDefault();
8284   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
8285     _impl_.execution_phase_id_.Set("", GetArenaForAllocation());
8286   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
8287 }
8288 
~ReportRequest()8289 ReportRequest::~ReportRequest() {
8290   // @@protoc_insertion_point(destructor:google.internal.federatedml.v2.ReportRequest)
8291   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
8292   (void)arena;
8293     return;
8294   }
8295   SharedDtor();
8296 }
8297 
SharedDtor()8298 inline void ReportRequest::SharedDtor() {
8299   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
8300   _impl_.population_name_.Destroy();
8301   _impl_.execution_phase_id_.Destroy();
8302   if (this != internal_default_instance()) delete _impl_.report_;
8303 }
8304 
SetCachedSize(int size) const8305 void ReportRequest::SetCachedSize(int size) const {
8306   _impl_._cached_size_.Set(size);
8307 }
8308 
Clear()8309 void ReportRequest::Clear() {
8310 // @@protoc_insertion_point(message_clear_start:google.internal.federatedml.v2.ReportRequest)
8311   ::uint32_t cached_has_bits = 0;
8312   // Prevent compiler warnings about cached_has_bits being unused
8313   (void) cached_has_bits;
8314 
8315   _impl_.population_name_.ClearToEmpty();
8316   _impl_.execution_phase_id_.ClearToEmpty();
8317   if (GetArenaForAllocation() == nullptr && _impl_.report_ != nullptr) {
8318     delete _impl_.report_;
8319   }
8320   _impl_.report_ = nullptr;
8321   _internal_metadata_.Clear<std::string>();
8322 }
8323 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)8324 const char* ReportRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
8325 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
8326   while (!ctx->Done(&ptr)) {
8327     ::uint32_t tag;
8328     ptr = ::_pbi::ReadTag(ptr, &tag);
8329     switch (tag >> 3) {
8330       // string population_name = 1;
8331       case 1:
8332         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
8333           auto str = _internal_mutable_population_name();
8334           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
8335           CHK_(ptr);
8336           CHK_(::_pbi::VerifyUTF8(str, nullptr));
8337         } else {
8338           goto handle_unusual;
8339         }
8340         continue;
8341       // string execution_phase_id = 2;
8342       case 2:
8343         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
8344           auto str = _internal_mutable_execution_phase_id();
8345           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
8346           CHK_(ptr);
8347           CHK_(::_pbi::VerifyUTF8(str, nullptr));
8348         } else {
8349           goto handle_unusual;
8350         }
8351         continue;
8352       // .google.internal.federatedml.v2.Report report = 3;
8353       case 3:
8354         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
8355           ptr = ctx->ParseMessage(_internal_mutable_report(), ptr);
8356           CHK_(ptr);
8357         } else {
8358           goto handle_unusual;
8359         }
8360         continue;
8361       default:
8362         goto handle_unusual;
8363     }  // switch
8364   handle_unusual:
8365     if ((tag == 0) || ((tag & 7) == 4)) {
8366       CHK_(ptr);
8367       ctx->SetLastTag(tag);
8368       goto message_done;
8369     }
8370     ptr = UnknownFieldParse(
8371         tag,
8372         _internal_metadata_.mutable_unknown_fields<std::string>(),
8373         ptr, ctx);
8374     CHK_(ptr != nullptr);
8375   }  // while
8376 message_done:
8377   return ptr;
8378 failure:
8379   ptr = nullptr;
8380   goto message_done;
8381 #undef CHK_
8382 }
8383 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const8384 ::uint8_t* ReportRequest::_InternalSerialize(
8385     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
8386   // @@protoc_insertion_point(serialize_to_array_start:google.internal.federatedml.v2.ReportRequest)
8387   ::uint32_t cached_has_bits = 0;
8388   (void) cached_has_bits;
8389 
8390   // string population_name = 1;
8391   if (!this->_internal_population_name().empty()) {
8392     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
8393       this->_internal_population_name().data(), static_cast<int>(this->_internal_population_name().length()),
8394       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
8395       "google.internal.federatedml.v2.ReportRequest.population_name");
8396     target = stream->WriteStringMaybeAliased(
8397         1, this->_internal_population_name(), target);
8398   }
8399 
8400   // string execution_phase_id = 2;
8401   if (!this->_internal_execution_phase_id().empty()) {
8402     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
8403       this->_internal_execution_phase_id().data(), static_cast<int>(this->_internal_execution_phase_id().length()),
8404       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
8405       "google.internal.federatedml.v2.ReportRequest.execution_phase_id");
8406     target = stream->WriteStringMaybeAliased(
8407         2, this->_internal_execution_phase_id(), target);
8408   }
8409 
8410   // .google.internal.federatedml.v2.Report report = 3;
8411   if (this->_internal_has_report()) {
8412     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
8413       InternalWriteMessage(3, _Internal::report(this),
8414         _Internal::report(this).GetCachedSize(), target, stream);
8415   }
8416 
8417   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
8418     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
8419         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
8420   }
8421   // @@protoc_insertion_point(serialize_to_array_end:google.internal.federatedml.v2.ReportRequest)
8422   return target;
8423 }
8424 
ByteSizeLong() const8425 size_t ReportRequest::ByteSizeLong() const {
8426 // @@protoc_insertion_point(message_byte_size_start:google.internal.federatedml.v2.ReportRequest)
8427   size_t total_size = 0;
8428 
8429   ::uint32_t cached_has_bits = 0;
8430   // Prevent compiler warnings about cached_has_bits being unused
8431   (void) cached_has_bits;
8432 
8433   // string population_name = 1;
8434   if (!this->_internal_population_name().empty()) {
8435     total_size += 1 +
8436       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
8437         this->_internal_population_name());
8438   }
8439 
8440   // string execution_phase_id = 2;
8441   if (!this->_internal_execution_phase_id().empty()) {
8442     total_size += 1 +
8443       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
8444         this->_internal_execution_phase_id());
8445   }
8446 
8447   // .google.internal.federatedml.v2.Report report = 3;
8448   if (this->_internal_has_report()) {
8449     total_size += 1 +
8450       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
8451         *_impl_.report_);
8452   }
8453 
8454   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
8455     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
8456   }
8457   int cached_size = ::_pbi::ToCachedSize(total_size);
8458   SetCachedSize(cached_size);
8459   return total_size;
8460 }
8461 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)8462 void ReportRequest::CheckTypeAndMergeFrom(
8463     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
8464   MergeFrom(*::_pbi::DownCast<const ReportRequest*>(
8465       &from));
8466 }
8467 
MergeFrom(const ReportRequest & from)8468 void ReportRequest::MergeFrom(const ReportRequest& from) {
8469   ReportRequest* const _this = this;
8470   // @@protoc_insertion_point(class_specific_merge_from_start:google.internal.federatedml.v2.ReportRequest)
8471   GOOGLE_DCHECK_NE(&from, _this);
8472   ::uint32_t cached_has_bits = 0;
8473   (void) cached_has_bits;
8474 
8475   if (!from._internal_population_name().empty()) {
8476     _this->_internal_set_population_name(from._internal_population_name());
8477   }
8478   if (!from._internal_execution_phase_id().empty()) {
8479     _this->_internal_set_execution_phase_id(from._internal_execution_phase_id());
8480   }
8481   if (from._internal_has_report()) {
8482     _this->_internal_mutable_report()->::google::internal::federatedml::v2::Report::MergeFrom(
8483         from._internal_report());
8484   }
8485   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
8486 }
8487 
CopyFrom(const ReportRequest & from)8488 void ReportRequest::CopyFrom(const ReportRequest& from) {
8489 // @@protoc_insertion_point(class_specific_copy_from_start:google.internal.federatedml.v2.ReportRequest)
8490   if (&from == this) return;
8491   Clear();
8492   MergeFrom(from);
8493 }
8494 
IsInitialized() const8495 bool ReportRequest::IsInitialized() const {
8496   return true;
8497 }
8498 
InternalSwap(ReportRequest * other)8499 void ReportRequest::InternalSwap(ReportRequest* other) {
8500   using std::swap;
8501   auto* lhs_arena = GetArenaForAllocation();
8502   auto* rhs_arena = other->GetArenaForAllocation();
8503   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
8504   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
8505       &_impl_.population_name_, lhs_arena,
8506       &other->_impl_.population_name_, rhs_arena
8507   );
8508   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
8509       &_impl_.execution_phase_id_, lhs_arena,
8510       &other->_impl_.execution_phase_id_, rhs_arena
8511   );
8512   swap(_impl_.report_, other->_impl_.report_);
8513 }
8514 
GetTypeName() const8515 std::string ReportRequest::GetTypeName() const {
8516   return "google.internal.federatedml.v2.ReportRequest";
8517 }
8518 
8519 
8520 // ===================================================================
8521 
8522 class ReportResponse::_Internal {
8523  public:
8524   static const ::google::internal::federatedml::v2::RetryWindow& retry_window(const ReportResponse* msg);
8525 };
8526 
8527 const ::google::internal::federatedml::v2::RetryWindow&
retry_window(const ReportResponse * msg)8528 ReportResponse::_Internal::retry_window(const ReportResponse* msg) {
8529   return *msg->_impl_.retry_window_;
8530 }
ReportResponse(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)8531 ReportResponse::ReportResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena,
8532                          bool is_message_owned)
8533   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
8534   SharedCtor(arena, is_message_owned);
8535   // @@protoc_insertion_point(arena_constructor:google.internal.federatedml.v2.ReportResponse)
8536 }
ReportResponse(const ReportResponse & from)8537 ReportResponse::ReportResponse(const ReportResponse& from)
8538   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
8539   ReportResponse* const _this = this; (void)_this;
8540   new (&_impl_) Impl_{
8541       decltype(_impl_.retry_window_){nullptr}
8542     , /*decltype(_impl_._cached_size_)*/{}};
8543 
8544   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
8545   if (from._internal_has_retry_window()) {
8546     _this->_impl_.retry_window_ = new ::google::internal::federatedml::v2::RetryWindow(*from._impl_.retry_window_);
8547   }
8548   // @@protoc_insertion_point(copy_constructor:google.internal.federatedml.v2.ReportResponse)
8549 }
8550 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)8551 inline void ReportResponse::SharedCtor(
8552     ::_pb::Arena* arena, bool is_message_owned) {
8553   (void)arena;
8554   (void)is_message_owned;
8555   new (&_impl_) Impl_{
8556       decltype(_impl_.retry_window_){nullptr}
8557     , /*decltype(_impl_._cached_size_)*/{}
8558   };
8559 }
8560 
~ReportResponse()8561 ReportResponse::~ReportResponse() {
8562   // @@protoc_insertion_point(destructor:google.internal.federatedml.v2.ReportResponse)
8563   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
8564   (void)arena;
8565     return;
8566   }
8567   SharedDtor();
8568 }
8569 
SharedDtor()8570 inline void ReportResponse::SharedDtor() {
8571   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
8572   if (this != internal_default_instance()) delete _impl_.retry_window_;
8573 }
8574 
SetCachedSize(int size) const8575 void ReportResponse::SetCachedSize(int size) const {
8576   _impl_._cached_size_.Set(size);
8577 }
8578 
Clear()8579 void ReportResponse::Clear() {
8580 // @@protoc_insertion_point(message_clear_start:google.internal.federatedml.v2.ReportResponse)
8581   ::uint32_t cached_has_bits = 0;
8582   // Prevent compiler warnings about cached_has_bits being unused
8583   (void) cached_has_bits;
8584 
8585   if (GetArenaForAllocation() == nullptr && _impl_.retry_window_ != nullptr) {
8586     delete _impl_.retry_window_;
8587   }
8588   _impl_.retry_window_ = nullptr;
8589   _internal_metadata_.Clear<std::string>();
8590 }
8591 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)8592 const char* ReportResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
8593 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
8594   while (!ctx->Done(&ptr)) {
8595     ::uint32_t tag;
8596     ptr = ::_pbi::ReadTag(ptr, &tag);
8597     switch (tag >> 3) {
8598       // .google.internal.federatedml.v2.RetryWindow retry_window = 1 [deprecated = true];
8599       case 1:
8600         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
8601           ptr = ctx->ParseMessage(_internal_mutable_retry_window(), ptr);
8602           CHK_(ptr);
8603         } else {
8604           goto handle_unusual;
8605         }
8606         continue;
8607       default:
8608         goto handle_unusual;
8609     }  // switch
8610   handle_unusual:
8611     if ((tag == 0) || ((tag & 7) == 4)) {
8612       CHK_(ptr);
8613       ctx->SetLastTag(tag);
8614       goto message_done;
8615     }
8616     ptr = UnknownFieldParse(
8617         tag,
8618         _internal_metadata_.mutable_unknown_fields<std::string>(),
8619         ptr, ctx);
8620     CHK_(ptr != nullptr);
8621   }  // while
8622 message_done:
8623   return ptr;
8624 failure:
8625   ptr = nullptr;
8626   goto message_done;
8627 #undef CHK_
8628 }
8629 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const8630 ::uint8_t* ReportResponse::_InternalSerialize(
8631     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
8632   // @@protoc_insertion_point(serialize_to_array_start:google.internal.federatedml.v2.ReportResponse)
8633   ::uint32_t cached_has_bits = 0;
8634   (void) cached_has_bits;
8635 
8636   // .google.internal.federatedml.v2.RetryWindow retry_window = 1 [deprecated = true];
8637   if (this->_internal_has_retry_window()) {
8638     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
8639       InternalWriteMessage(1, _Internal::retry_window(this),
8640         _Internal::retry_window(this).GetCachedSize(), target, stream);
8641   }
8642 
8643   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
8644     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
8645         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
8646   }
8647   // @@protoc_insertion_point(serialize_to_array_end:google.internal.federatedml.v2.ReportResponse)
8648   return target;
8649 }
8650 
ByteSizeLong() const8651 size_t ReportResponse::ByteSizeLong() const {
8652 // @@protoc_insertion_point(message_byte_size_start:google.internal.federatedml.v2.ReportResponse)
8653   size_t total_size = 0;
8654 
8655   ::uint32_t cached_has_bits = 0;
8656   // Prevent compiler warnings about cached_has_bits being unused
8657   (void) cached_has_bits;
8658 
8659   // .google.internal.federatedml.v2.RetryWindow retry_window = 1 [deprecated = true];
8660   if (this->_internal_has_retry_window()) {
8661     total_size += 1 +
8662       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
8663         *_impl_.retry_window_);
8664   }
8665 
8666   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
8667     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
8668   }
8669   int cached_size = ::_pbi::ToCachedSize(total_size);
8670   SetCachedSize(cached_size);
8671   return total_size;
8672 }
8673 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)8674 void ReportResponse::CheckTypeAndMergeFrom(
8675     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
8676   MergeFrom(*::_pbi::DownCast<const ReportResponse*>(
8677       &from));
8678 }
8679 
MergeFrom(const ReportResponse & from)8680 void ReportResponse::MergeFrom(const ReportResponse& from) {
8681   ReportResponse* const _this = this;
8682   // @@protoc_insertion_point(class_specific_merge_from_start:google.internal.federatedml.v2.ReportResponse)
8683   GOOGLE_DCHECK_NE(&from, _this);
8684   ::uint32_t cached_has_bits = 0;
8685   (void) cached_has_bits;
8686 
8687   if (from._internal_has_retry_window()) {
8688     _this->_internal_mutable_retry_window()->::google::internal::federatedml::v2::RetryWindow::MergeFrom(
8689         from._internal_retry_window());
8690   }
8691   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
8692 }
8693 
CopyFrom(const ReportResponse & from)8694 void ReportResponse::CopyFrom(const ReportResponse& from) {
8695 // @@protoc_insertion_point(class_specific_copy_from_start:google.internal.federatedml.v2.ReportResponse)
8696   if (&from == this) return;
8697   Clear();
8698   MergeFrom(from);
8699 }
8700 
IsInitialized() const8701 bool ReportResponse::IsInitialized() const {
8702   return true;
8703 }
8704 
InternalSwap(ReportResponse * other)8705 void ReportResponse::InternalSwap(ReportResponse* other) {
8706   using std::swap;
8707   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
8708   swap(_impl_.retry_window_, other->_impl_.retry_window_);
8709 }
8710 
GetTypeName() const8711 std::string ReportResponse::GetTypeName() const {
8712   return "google.internal.federatedml.v2.ReportResponse";
8713 }
8714 
8715 
8716 // ===================================================================
8717 
8718 class Report::_Internal {
8719  public:
8720 };
8721 
clear_serialized_train_event()8722 void Report::clear_serialized_train_event() {
8723   _impl_.serialized_train_event_.Clear();
8724 }
Report(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)8725 Report::Report(::PROTOBUF_NAMESPACE_ID::Arena* arena,
8726                          bool is_message_owned)
8727   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
8728   SharedCtor(arena, is_message_owned);
8729   // @@protoc_insertion_point(arena_constructor:google.internal.federatedml.v2.Report)
8730 }
Report(const Report & from)8731 Report::Report(const Report& from)
8732   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
8733   Report* const _this = this; (void)_this;
8734   new (&_impl_) Impl_{
8735       decltype(_impl_.serialized_train_event_){from._impl_.serialized_train_event_}
8736     , decltype(_impl_.update_checkpoint_){}
8737     , decltype(_impl_.status_code_){}
8738     , /*decltype(_impl_._cached_size_)*/{}};
8739 
8740   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
8741   _impl_.update_checkpoint_.InitDefault();
8742   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
8743     _impl_.update_checkpoint_.Set("", GetArenaForAllocation());
8744   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
8745   if (!from._internal_update_checkpoint().empty()) {
8746     _this->_impl_.update_checkpoint_.Set(from._internal_update_checkpoint(),
8747       _this->GetArenaForAllocation());
8748   }
8749   _this->_impl_.status_code_ = from._impl_.status_code_;
8750   // @@protoc_insertion_point(copy_constructor:google.internal.federatedml.v2.Report)
8751 }
8752 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)8753 inline void Report::SharedCtor(
8754     ::_pb::Arena* arena, bool is_message_owned) {
8755   (void)arena;
8756   (void)is_message_owned;
8757   new (&_impl_) Impl_{
8758       decltype(_impl_.serialized_train_event_){arena}
8759     , decltype(_impl_.update_checkpoint_){}
8760     , decltype(_impl_.status_code_){0}
8761     , /*decltype(_impl_._cached_size_)*/{}
8762   };
8763   _impl_.update_checkpoint_.InitDefault();
8764   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
8765     _impl_.update_checkpoint_.Set("", GetArenaForAllocation());
8766   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
8767 }
8768 
~Report()8769 Report::~Report() {
8770   // @@protoc_insertion_point(destructor:google.internal.federatedml.v2.Report)
8771   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
8772   (void)arena;
8773     return;
8774   }
8775   SharedDtor();
8776 }
8777 
SharedDtor()8778 inline void Report::SharedDtor() {
8779   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
8780   _impl_.serialized_train_event_.~RepeatedPtrField();
8781   _impl_.update_checkpoint_.Destroy();
8782 }
8783 
SetCachedSize(int size) const8784 void Report::SetCachedSize(int size) const {
8785   _impl_._cached_size_.Set(size);
8786 }
8787 
Clear()8788 void Report::Clear() {
8789 // @@protoc_insertion_point(message_clear_start:google.internal.federatedml.v2.Report)
8790   ::uint32_t cached_has_bits = 0;
8791   // Prevent compiler warnings about cached_has_bits being unused
8792   (void) cached_has_bits;
8793 
8794   _impl_.serialized_train_event_.Clear();
8795   _impl_.update_checkpoint_.ClearToEmpty();
8796   _impl_.status_code_ = 0;
8797   _internal_metadata_.Clear<std::string>();
8798 }
8799 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)8800 const char* Report::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
8801 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
8802   while (!ctx->Done(&ptr)) {
8803     ::uint32_t tag;
8804     ptr = ::_pbi::ReadTag(ptr, &tag);
8805     switch (tag >> 3) {
8806       // bytes update_checkpoint = 1;
8807       case 1:
8808         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
8809           auto str = _internal_mutable_update_checkpoint();
8810           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
8811           CHK_(ptr);
8812         } else {
8813           goto handle_unusual;
8814         }
8815         continue;
8816       // repeated .google.protobuf.Any serialized_train_event = 4;
8817       case 4:
8818         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
8819           ptr -= 1;
8820           do {
8821             ptr += 1;
8822             ptr = ctx->ParseMessage(_internal_add_serialized_train_event(), ptr);
8823             CHK_(ptr);
8824             if (!ctx->DataAvailable(ptr)) break;
8825           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr));
8826         } else {
8827           goto handle_unusual;
8828         }
8829         continue;
8830       // int32 status_code = 5;
8831       case 5:
8832         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) {
8833           _impl_.status_code_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
8834           CHK_(ptr);
8835         } else {
8836           goto handle_unusual;
8837         }
8838         continue;
8839       default:
8840         goto handle_unusual;
8841     }  // switch
8842   handle_unusual:
8843     if ((tag == 0) || ((tag & 7) == 4)) {
8844       CHK_(ptr);
8845       ctx->SetLastTag(tag);
8846       goto message_done;
8847     }
8848     ptr = UnknownFieldParse(
8849         tag,
8850         _internal_metadata_.mutable_unknown_fields<std::string>(),
8851         ptr, ctx);
8852     CHK_(ptr != nullptr);
8853   }  // while
8854 message_done:
8855   return ptr;
8856 failure:
8857   ptr = nullptr;
8858   goto message_done;
8859 #undef CHK_
8860 }
8861 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const8862 ::uint8_t* Report::_InternalSerialize(
8863     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
8864   // @@protoc_insertion_point(serialize_to_array_start:google.internal.federatedml.v2.Report)
8865   ::uint32_t cached_has_bits = 0;
8866   (void) cached_has_bits;
8867 
8868   // bytes update_checkpoint = 1;
8869   if (!this->_internal_update_checkpoint().empty()) {
8870     target = stream->WriteBytesMaybeAliased(
8871         1, this->_internal_update_checkpoint(), target);
8872   }
8873 
8874   // repeated .google.protobuf.Any serialized_train_event = 4;
8875   for (unsigned i = 0,
8876       n = static_cast<unsigned>(this->_internal_serialized_train_event_size()); i < n; i++) {
8877     const auto& repfield = this->_internal_serialized_train_event(i);
8878     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
8879         InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream);
8880   }
8881 
8882   // int32 status_code = 5;
8883   if (this->_internal_status_code() != 0) {
8884     target = stream->EnsureSpace(target);
8885     target = ::_pbi::WireFormatLite::WriteInt32ToArray(5, this->_internal_status_code(), target);
8886   }
8887 
8888   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
8889     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
8890         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
8891   }
8892   // @@protoc_insertion_point(serialize_to_array_end:google.internal.federatedml.v2.Report)
8893   return target;
8894 }
8895 
ByteSizeLong() const8896 size_t Report::ByteSizeLong() const {
8897 // @@protoc_insertion_point(message_byte_size_start:google.internal.federatedml.v2.Report)
8898   size_t total_size = 0;
8899 
8900   ::uint32_t cached_has_bits = 0;
8901   // Prevent compiler warnings about cached_has_bits being unused
8902   (void) cached_has_bits;
8903 
8904   // repeated .google.protobuf.Any serialized_train_event = 4;
8905   total_size += 1UL * this->_internal_serialized_train_event_size();
8906   for (const auto& msg : this->_impl_.serialized_train_event_) {
8907     total_size +=
8908       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
8909   }
8910 
8911   // bytes update_checkpoint = 1;
8912   if (!this->_internal_update_checkpoint().empty()) {
8913     total_size += 1 +
8914       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
8915         this->_internal_update_checkpoint());
8916   }
8917 
8918   // int32 status_code = 5;
8919   if (this->_internal_status_code() != 0) {
8920     total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_status_code());
8921   }
8922 
8923   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
8924     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
8925   }
8926   int cached_size = ::_pbi::ToCachedSize(total_size);
8927   SetCachedSize(cached_size);
8928   return total_size;
8929 }
8930 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)8931 void Report::CheckTypeAndMergeFrom(
8932     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
8933   MergeFrom(*::_pbi::DownCast<const Report*>(
8934       &from));
8935 }
8936 
MergeFrom(const Report & from)8937 void Report::MergeFrom(const Report& from) {
8938   Report* const _this = this;
8939   // @@protoc_insertion_point(class_specific_merge_from_start:google.internal.federatedml.v2.Report)
8940   GOOGLE_DCHECK_NE(&from, _this);
8941   ::uint32_t cached_has_bits = 0;
8942   (void) cached_has_bits;
8943 
8944   _this->_impl_.serialized_train_event_.MergeFrom(from._impl_.serialized_train_event_);
8945   if (!from._internal_update_checkpoint().empty()) {
8946     _this->_internal_set_update_checkpoint(from._internal_update_checkpoint());
8947   }
8948   if (from._internal_status_code() != 0) {
8949     _this->_internal_set_status_code(from._internal_status_code());
8950   }
8951   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
8952 }
8953 
CopyFrom(const Report & from)8954 void Report::CopyFrom(const Report& from) {
8955 // @@protoc_insertion_point(class_specific_copy_from_start:google.internal.federatedml.v2.Report)
8956   if (&from == this) return;
8957   Clear();
8958   MergeFrom(from);
8959 }
8960 
IsInitialized() const8961 bool Report::IsInitialized() const {
8962   return true;
8963 }
8964 
InternalSwap(Report * other)8965 void Report::InternalSwap(Report* other) {
8966   using std::swap;
8967   auto* lhs_arena = GetArenaForAllocation();
8968   auto* rhs_arena = other->GetArenaForAllocation();
8969   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
8970   _impl_.serialized_train_event_.InternalSwap(&other->_impl_.serialized_train_event_);
8971   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
8972       &_impl_.update_checkpoint_, lhs_arena,
8973       &other->_impl_.update_checkpoint_, rhs_arena
8974   );
8975   swap(_impl_.status_code_, other->_impl_.status_code_);
8976 }
8977 
GetTypeName() const8978 std::string Report::GetTypeName() const {
8979   return "google.internal.federatedml.v2.Report";
8980 }
8981 
8982 
8983 // ===================================================================
8984 
8985 class ClientExecutionStats::_Internal {
8986  public:
8987   static const ::PROTOBUF_NAMESPACE_ID::Duration& duration(const ClientExecutionStats* msg);
8988 };
8989 
8990 const ::PROTOBUF_NAMESPACE_ID::Duration&
duration(const ClientExecutionStats * msg)8991 ClientExecutionStats::_Internal::duration(const ClientExecutionStats* msg) {
8992   return *msg->_impl_.duration_;
8993 }
clear_duration()8994 void ClientExecutionStats::clear_duration() {
8995   if (GetArenaForAllocation() == nullptr && _impl_.duration_ != nullptr) {
8996     delete _impl_.duration_;
8997   }
8998   _impl_.duration_ = nullptr;
8999 }
ClientExecutionStats(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)9000 ClientExecutionStats::ClientExecutionStats(::PROTOBUF_NAMESPACE_ID::Arena* arena,
9001                          bool is_message_owned)
9002   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
9003   SharedCtor(arena, is_message_owned);
9004   // @@protoc_insertion_point(arena_constructor:google.internal.federatedml.v2.ClientExecutionStats)
9005 }
ClientExecutionStats(const ClientExecutionStats & from)9006 ClientExecutionStats::ClientExecutionStats(const ClientExecutionStats& from)
9007   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
9008   ClientExecutionStats* const _this = this; (void)_this;
9009   new (&_impl_) Impl_{
9010       decltype(_impl_.duration_){nullptr}
9011     , /*decltype(_impl_._cached_size_)*/{}};
9012 
9013   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
9014   if (from._internal_has_duration()) {
9015     _this->_impl_.duration_ = new ::PROTOBUF_NAMESPACE_ID::Duration(*from._impl_.duration_);
9016   }
9017   // @@protoc_insertion_point(copy_constructor:google.internal.federatedml.v2.ClientExecutionStats)
9018 }
9019 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)9020 inline void ClientExecutionStats::SharedCtor(
9021     ::_pb::Arena* arena, bool is_message_owned) {
9022   (void)arena;
9023   (void)is_message_owned;
9024   new (&_impl_) Impl_{
9025       decltype(_impl_.duration_){nullptr}
9026     , /*decltype(_impl_._cached_size_)*/{}
9027   };
9028 }
9029 
~ClientExecutionStats()9030 ClientExecutionStats::~ClientExecutionStats() {
9031   // @@protoc_insertion_point(destructor:google.internal.federatedml.v2.ClientExecutionStats)
9032   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
9033   (void)arena;
9034     return;
9035   }
9036   SharedDtor();
9037 }
9038 
SharedDtor()9039 inline void ClientExecutionStats::SharedDtor() {
9040   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
9041   if (this != internal_default_instance()) delete _impl_.duration_;
9042 }
9043 
SetCachedSize(int size) const9044 void ClientExecutionStats::SetCachedSize(int size) const {
9045   _impl_._cached_size_.Set(size);
9046 }
9047 
Clear()9048 void ClientExecutionStats::Clear() {
9049 // @@protoc_insertion_point(message_clear_start:google.internal.federatedml.v2.ClientExecutionStats)
9050   ::uint32_t cached_has_bits = 0;
9051   // Prevent compiler warnings about cached_has_bits being unused
9052   (void) cached_has_bits;
9053 
9054   if (GetArenaForAllocation() == nullptr && _impl_.duration_ != nullptr) {
9055     delete _impl_.duration_;
9056   }
9057   _impl_.duration_ = nullptr;
9058   _internal_metadata_.Clear<std::string>();
9059 }
9060 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)9061 const char* ClientExecutionStats::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
9062 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
9063   while (!ctx->Done(&ptr)) {
9064     ::uint32_t tag;
9065     ptr = ::_pbi::ReadTag(ptr, &tag);
9066     switch (tag >> 3) {
9067       // .google.protobuf.Duration duration = 2;
9068       case 2:
9069         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
9070           ptr = ctx->ParseMessage(_internal_mutable_duration(), ptr);
9071           CHK_(ptr);
9072         } else {
9073           goto handle_unusual;
9074         }
9075         continue;
9076       default:
9077         goto handle_unusual;
9078     }  // switch
9079   handle_unusual:
9080     if ((tag == 0) || ((tag & 7) == 4)) {
9081       CHK_(ptr);
9082       ctx->SetLastTag(tag);
9083       goto message_done;
9084     }
9085     ptr = UnknownFieldParse(
9086         tag,
9087         _internal_metadata_.mutable_unknown_fields<std::string>(),
9088         ptr, ctx);
9089     CHK_(ptr != nullptr);
9090   }  // while
9091 message_done:
9092   return ptr;
9093 failure:
9094   ptr = nullptr;
9095   goto message_done;
9096 #undef CHK_
9097 }
9098 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const9099 ::uint8_t* ClientExecutionStats::_InternalSerialize(
9100     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
9101   // @@protoc_insertion_point(serialize_to_array_start:google.internal.federatedml.v2.ClientExecutionStats)
9102   ::uint32_t cached_has_bits = 0;
9103   (void) cached_has_bits;
9104 
9105   // .google.protobuf.Duration duration = 2;
9106   if (this->_internal_has_duration()) {
9107     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
9108       InternalWriteMessage(2, _Internal::duration(this),
9109         _Internal::duration(this).GetCachedSize(), target, stream);
9110   }
9111 
9112   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
9113     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
9114         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
9115   }
9116   // @@protoc_insertion_point(serialize_to_array_end:google.internal.federatedml.v2.ClientExecutionStats)
9117   return target;
9118 }
9119 
ByteSizeLong() const9120 size_t ClientExecutionStats::ByteSizeLong() const {
9121 // @@protoc_insertion_point(message_byte_size_start:google.internal.federatedml.v2.ClientExecutionStats)
9122   size_t total_size = 0;
9123 
9124   ::uint32_t cached_has_bits = 0;
9125   // Prevent compiler warnings about cached_has_bits being unused
9126   (void) cached_has_bits;
9127 
9128   // .google.protobuf.Duration duration = 2;
9129   if (this->_internal_has_duration()) {
9130     total_size += 1 +
9131       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
9132         *_impl_.duration_);
9133   }
9134 
9135   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
9136     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
9137   }
9138   int cached_size = ::_pbi::ToCachedSize(total_size);
9139   SetCachedSize(cached_size);
9140   return total_size;
9141 }
9142 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)9143 void ClientExecutionStats::CheckTypeAndMergeFrom(
9144     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
9145   MergeFrom(*::_pbi::DownCast<const ClientExecutionStats*>(
9146       &from));
9147 }
9148 
MergeFrom(const ClientExecutionStats & from)9149 void ClientExecutionStats::MergeFrom(const ClientExecutionStats& from) {
9150   ClientExecutionStats* const _this = this;
9151   // @@protoc_insertion_point(class_specific_merge_from_start:google.internal.federatedml.v2.ClientExecutionStats)
9152   GOOGLE_DCHECK_NE(&from, _this);
9153   ::uint32_t cached_has_bits = 0;
9154   (void) cached_has_bits;
9155 
9156   if (from._internal_has_duration()) {
9157     _this->_internal_mutable_duration()->::PROTOBUF_NAMESPACE_ID::Duration::MergeFrom(
9158         from._internal_duration());
9159   }
9160   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
9161 }
9162 
CopyFrom(const ClientExecutionStats & from)9163 void ClientExecutionStats::CopyFrom(const ClientExecutionStats& from) {
9164 // @@protoc_insertion_point(class_specific_copy_from_start:google.internal.federatedml.v2.ClientExecutionStats)
9165   if (&from == this) return;
9166   Clear();
9167   MergeFrom(from);
9168 }
9169 
IsInitialized() const9170 bool ClientExecutionStats::IsInitialized() const {
9171   return true;
9172 }
9173 
InternalSwap(ClientExecutionStats * other)9174 void ClientExecutionStats::InternalSwap(ClientExecutionStats* other) {
9175   using std::swap;
9176   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
9177   swap(_impl_.duration_, other->_impl_.duration_);
9178 }
9179 
GetTypeName() const9180 std::string ClientExecutionStats::GetTypeName() const {
9181   return "google.internal.federatedml.v2.ClientExecutionStats";
9182 }
9183 
9184 
9185 // ===================================================================
9186 
9187 class RetryWindow::_Internal {
9188  public:
9189   static const ::PROTOBUF_NAMESPACE_ID::Duration& delay_min(const RetryWindow* msg);
9190   static const ::PROTOBUF_NAMESPACE_ID::Duration& delay_max(const RetryWindow* msg);
9191 };
9192 
9193 const ::PROTOBUF_NAMESPACE_ID::Duration&
delay_min(const RetryWindow * msg)9194 RetryWindow::_Internal::delay_min(const RetryWindow* msg) {
9195   return *msg->_impl_.delay_min_;
9196 }
9197 const ::PROTOBUF_NAMESPACE_ID::Duration&
delay_max(const RetryWindow * msg)9198 RetryWindow::_Internal::delay_max(const RetryWindow* msg) {
9199   return *msg->_impl_.delay_max_;
9200 }
clear_delay_min()9201 void RetryWindow::clear_delay_min() {
9202   if (GetArenaForAllocation() == nullptr && _impl_.delay_min_ != nullptr) {
9203     delete _impl_.delay_min_;
9204   }
9205   _impl_.delay_min_ = nullptr;
9206 }
clear_delay_max()9207 void RetryWindow::clear_delay_max() {
9208   if (GetArenaForAllocation() == nullptr && _impl_.delay_max_ != nullptr) {
9209     delete _impl_.delay_max_;
9210   }
9211   _impl_.delay_max_ = nullptr;
9212 }
RetryWindow(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)9213 RetryWindow::RetryWindow(::PROTOBUF_NAMESPACE_ID::Arena* arena,
9214                          bool is_message_owned)
9215   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
9216   SharedCtor(arena, is_message_owned);
9217   // @@protoc_insertion_point(arena_constructor:google.internal.federatedml.v2.RetryWindow)
9218 }
RetryWindow(const RetryWindow & from)9219 RetryWindow::RetryWindow(const RetryWindow& from)
9220   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
9221   RetryWindow* const _this = this; (void)_this;
9222   new (&_impl_) Impl_{
9223       decltype(_impl_.retry_token_){}
9224     , decltype(_impl_.delay_min_){nullptr}
9225     , decltype(_impl_.delay_max_){nullptr}
9226     , /*decltype(_impl_._cached_size_)*/{}};
9227 
9228   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
9229   _impl_.retry_token_.InitDefault();
9230   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
9231     _impl_.retry_token_.Set("", GetArenaForAllocation());
9232   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
9233   if (!from._internal_retry_token().empty()) {
9234     _this->_impl_.retry_token_.Set(from._internal_retry_token(),
9235       _this->GetArenaForAllocation());
9236   }
9237   if (from._internal_has_delay_min()) {
9238     _this->_impl_.delay_min_ = new ::PROTOBUF_NAMESPACE_ID::Duration(*from._impl_.delay_min_);
9239   }
9240   if (from._internal_has_delay_max()) {
9241     _this->_impl_.delay_max_ = new ::PROTOBUF_NAMESPACE_ID::Duration(*from._impl_.delay_max_);
9242   }
9243   // @@protoc_insertion_point(copy_constructor:google.internal.federatedml.v2.RetryWindow)
9244 }
9245 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)9246 inline void RetryWindow::SharedCtor(
9247     ::_pb::Arena* arena, bool is_message_owned) {
9248   (void)arena;
9249   (void)is_message_owned;
9250   new (&_impl_) Impl_{
9251       decltype(_impl_.retry_token_){}
9252     , decltype(_impl_.delay_min_){nullptr}
9253     , decltype(_impl_.delay_max_){nullptr}
9254     , /*decltype(_impl_._cached_size_)*/{}
9255   };
9256   _impl_.retry_token_.InitDefault();
9257   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
9258     _impl_.retry_token_.Set("", GetArenaForAllocation());
9259   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
9260 }
9261 
~RetryWindow()9262 RetryWindow::~RetryWindow() {
9263   // @@protoc_insertion_point(destructor:google.internal.federatedml.v2.RetryWindow)
9264   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
9265   (void)arena;
9266     return;
9267   }
9268   SharedDtor();
9269 }
9270 
SharedDtor()9271 inline void RetryWindow::SharedDtor() {
9272   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
9273   _impl_.retry_token_.Destroy();
9274   if (this != internal_default_instance()) delete _impl_.delay_min_;
9275   if (this != internal_default_instance()) delete _impl_.delay_max_;
9276 }
9277 
SetCachedSize(int size) const9278 void RetryWindow::SetCachedSize(int size) const {
9279   _impl_._cached_size_.Set(size);
9280 }
9281 
Clear()9282 void RetryWindow::Clear() {
9283 // @@protoc_insertion_point(message_clear_start:google.internal.federatedml.v2.RetryWindow)
9284   ::uint32_t cached_has_bits = 0;
9285   // Prevent compiler warnings about cached_has_bits being unused
9286   (void) cached_has_bits;
9287 
9288   _impl_.retry_token_.ClearToEmpty();
9289   if (GetArenaForAllocation() == nullptr && _impl_.delay_min_ != nullptr) {
9290     delete _impl_.delay_min_;
9291   }
9292   _impl_.delay_min_ = nullptr;
9293   if (GetArenaForAllocation() == nullptr && _impl_.delay_max_ != nullptr) {
9294     delete _impl_.delay_max_;
9295   }
9296   _impl_.delay_max_ = nullptr;
9297   _internal_metadata_.Clear<std::string>();
9298 }
9299 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)9300 const char* RetryWindow::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
9301 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
9302   while (!ctx->Done(&ptr)) {
9303     ::uint32_t tag;
9304     ptr = ::_pbi::ReadTag(ptr, &tag);
9305     switch (tag >> 3) {
9306       // string retry_token = 1;
9307       case 1:
9308         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
9309           auto str = _internal_mutable_retry_token();
9310           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
9311           CHK_(ptr);
9312           CHK_(::_pbi::VerifyUTF8(str, nullptr));
9313         } else {
9314           goto handle_unusual;
9315         }
9316         continue;
9317       // .google.protobuf.Duration delay_min = 2;
9318       case 2:
9319         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
9320           ptr = ctx->ParseMessage(_internal_mutable_delay_min(), ptr);
9321           CHK_(ptr);
9322         } else {
9323           goto handle_unusual;
9324         }
9325         continue;
9326       // .google.protobuf.Duration delay_max = 3;
9327       case 3:
9328         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
9329           ptr = ctx->ParseMessage(_internal_mutable_delay_max(), ptr);
9330           CHK_(ptr);
9331         } else {
9332           goto handle_unusual;
9333         }
9334         continue;
9335       default:
9336         goto handle_unusual;
9337     }  // switch
9338   handle_unusual:
9339     if ((tag == 0) || ((tag & 7) == 4)) {
9340       CHK_(ptr);
9341       ctx->SetLastTag(tag);
9342       goto message_done;
9343     }
9344     ptr = UnknownFieldParse(
9345         tag,
9346         _internal_metadata_.mutable_unknown_fields<std::string>(),
9347         ptr, ctx);
9348     CHK_(ptr != nullptr);
9349   }  // while
9350 message_done:
9351   return ptr;
9352 failure:
9353   ptr = nullptr;
9354   goto message_done;
9355 #undef CHK_
9356 }
9357 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const9358 ::uint8_t* RetryWindow::_InternalSerialize(
9359     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
9360   // @@protoc_insertion_point(serialize_to_array_start:google.internal.federatedml.v2.RetryWindow)
9361   ::uint32_t cached_has_bits = 0;
9362   (void) cached_has_bits;
9363 
9364   // string retry_token = 1;
9365   if (!this->_internal_retry_token().empty()) {
9366     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
9367       this->_internal_retry_token().data(), static_cast<int>(this->_internal_retry_token().length()),
9368       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
9369       "google.internal.federatedml.v2.RetryWindow.retry_token");
9370     target = stream->WriteStringMaybeAliased(
9371         1, this->_internal_retry_token(), target);
9372   }
9373 
9374   // .google.protobuf.Duration delay_min = 2;
9375   if (this->_internal_has_delay_min()) {
9376     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
9377       InternalWriteMessage(2, _Internal::delay_min(this),
9378         _Internal::delay_min(this).GetCachedSize(), target, stream);
9379   }
9380 
9381   // .google.protobuf.Duration delay_max = 3;
9382   if (this->_internal_has_delay_max()) {
9383     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
9384       InternalWriteMessage(3, _Internal::delay_max(this),
9385         _Internal::delay_max(this).GetCachedSize(), target, stream);
9386   }
9387 
9388   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
9389     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
9390         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
9391   }
9392   // @@protoc_insertion_point(serialize_to_array_end:google.internal.federatedml.v2.RetryWindow)
9393   return target;
9394 }
9395 
ByteSizeLong() const9396 size_t RetryWindow::ByteSizeLong() const {
9397 // @@protoc_insertion_point(message_byte_size_start:google.internal.federatedml.v2.RetryWindow)
9398   size_t total_size = 0;
9399 
9400   ::uint32_t cached_has_bits = 0;
9401   // Prevent compiler warnings about cached_has_bits being unused
9402   (void) cached_has_bits;
9403 
9404   // string retry_token = 1;
9405   if (!this->_internal_retry_token().empty()) {
9406     total_size += 1 +
9407       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
9408         this->_internal_retry_token());
9409   }
9410 
9411   // .google.protobuf.Duration delay_min = 2;
9412   if (this->_internal_has_delay_min()) {
9413     total_size += 1 +
9414       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
9415         *_impl_.delay_min_);
9416   }
9417 
9418   // .google.protobuf.Duration delay_max = 3;
9419   if (this->_internal_has_delay_max()) {
9420     total_size += 1 +
9421       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
9422         *_impl_.delay_max_);
9423   }
9424 
9425   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
9426     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
9427   }
9428   int cached_size = ::_pbi::ToCachedSize(total_size);
9429   SetCachedSize(cached_size);
9430   return total_size;
9431 }
9432 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)9433 void RetryWindow::CheckTypeAndMergeFrom(
9434     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
9435   MergeFrom(*::_pbi::DownCast<const RetryWindow*>(
9436       &from));
9437 }
9438 
MergeFrom(const RetryWindow & from)9439 void RetryWindow::MergeFrom(const RetryWindow& from) {
9440   RetryWindow* const _this = this;
9441   // @@protoc_insertion_point(class_specific_merge_from_start:google.internal.federatedml.v2.RetryWindow)
9442   GOOGLE_DCHECK_NE(&from, _this);
9443   ::uint32_t cached_has_bits = 0;
9444   (void) cached_has_bits;
9445 
9446   if (!from._internal_retry_token().empty()) {
9447     _this->_internal_set_retry_token(from._internal_retry_token());
9448   }
9449   if (from._internal_has_delay_min()) {
9450     _this->_internal_mutable_delay_min()->::PROTOBUF_NAMESPACE_ID::Duration::MergeFrom(
9451         from._internal_delay_min());
9452   }
9453   if (from._internal_has_delay_max()) {
9454     _this->_internal_mutable_delay_max()->::PROTOBUF_NAMESPACE_ID::Duration::MergeFrom(
9455         from._internal_delay_max());
9456   }
9457   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
9458 }
9459 
CopyFrom(const RetryWindow & from)9460 void RetryWindow::CopyFrom(const RetryWindow& from) {
9461 // @@protoc_insertion_point(class_specific_copy_from_start:google.internal.federatedml.v2.RetryWindow)
9462   if (&from == this) return;
9463   Clear();
9464   MergeFrom(from);
9465 }
9466 
IsInitialized() const9467 bool RetryWindow::IsInitialized() const {
9468   return true;
9469 }
9470 
InternalSwap(RetryWindow * other)9471 void RetryWindow::InternalSwap(RetryWindow* other) {
9472   using std::swap;
9473   auto* lhs_arena = GetArenaForAllocation();
9474   auto* rhs_arena = other->GetArenaForAllocation();
9475   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
9476   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
9477       &_impl_.retry_token_, lhs_arena,
9478       &other->_impl_.retry_token_, rhs_arena
9479   );
9480   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
9481       PROTOBUF_FIELD_OFFSET(RetryWindow, _impl_.delay_max_)
9482       + sizeof(RetryWindow::_impl_.delay_max_)  // NOLINT
9483       - PROTOBUF_FIELD_OFFSET(RetryWindow, _impl_.delay_min_)>(
9484           reinterpret_cast<char*>(&_impl_.delay_min_),
9485           reinterpret_cast<char*>(&other->_impl_.delay_min_));
9486 }
9487 
GetTypeName() const9488 std::string RetryWindow::GetTypeName() const {
9489   return "google.internal.federatedml.v2.RetryWindow";
9490 }
9491 
9492 
9493 // ===================================================================
9494 
9495 class Checkpoint_Aggregand::_Internal {
9496  public:
9497 };
9498 
Checkpoint_Aggregand(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)9499 Checkpoint_Aggregand::Checkpoint_Aggregand(::PROTOBUF_NAMESPACE_ID::Arena* arena,
9500                          bool is_message_owned)
9501   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
9502   SharedCtor(arena, is_message_owned);
9503   // @@protoc_insertion_point(arena_constructor:google.internal.federatedml.v2.Checkpoint.Aggregand)
9504 }
Checkpoint_Aggregand(const Checkpoint_Aggregand & from)9505 Checkpoint_Aggregand::Checkpoint_Aggregand(const Checkpoint_Aggregand& from)
9506   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
9507   Checkpoint_Aggregand* const _this = this; (void)_this;
9508   new (&_impl_) Impl_{
9509       decltype(_impl_.values_){from._impl_.values_}
9510     , /*decltype(_impl_._values_cached_byte_size_)*/{0}
9511     , decltype(_impl_.bitwidth_){}
9512     , /*decltype(_impl_._cached_size_)*/{}};
9513 
9514   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
9515   _this->_impl_.bitwidth_ = from._impl_.bitwidth_;
9516   // @@protoc_insertion_point(copy_constructor:google.internal.federatedml.v2.Checkpoint.Aggregand)
9517 }
9518 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)9519 inline void Checkpoint_Aggregand::SharedCtor(
9520     ::_pb::Arena* arena, bool is_message_owned) {
9521   (void)arena;
9522   (void)is_message_owned;
9523   new (&_impl_) Impl_{
9524       decltype(_impl_.values_){arena}
9525     , /*decltype(_impl_._values_cached_byte_size_)*/{0}
9526     , decltype(_impl_.bitwidth_){0}
9527     , /*decltype(_impl_._cached_size_)*/{}
9528   };
9529 }
9530 
~Checkpoint_Aggregand()9531 Checkpoint_Aggregand::~Checkpoint_Aggregand() {
9532   // @@protoc_insertion_point(destructor:google.internal.federatedml.v2.Checkpoint.Aggregand)
9533   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
9534   (void)arena;
9535     return;
9536   }
9537   SharedDtor();
9538 }
9539 
SharedDtor()9540 inline void Checkpoint_Aggregand::SharedDtor() {
9541   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
9542   _impl_.values_.~RepeatedField();
9543 }
9544 
SetCachedSize(int size) const9545 void Checkpoint_Aggregand::SetCachedSize(int size) const {
9546   _impl_._cached_size_.Set(size);
9547 }
9548 
Clear()9549 void Checkpoint_Aggregand::Clear() {
9550 // @@protoc_insertion_point(message_clear_start:google.internal.federatedml.v2.Checkpoint.Aggregand)
9551   ::uint32_t cached_has_bits = 0;
9552   // Prevent compiler warnings about cached_has_bits being unused
9553   (void) cached_has_bits;
9554 
9555   _impl_.values_.Clear();
9556   _impl_.bitwidth_ = 0;
9557   _internal_metadata_.Clear<std::string>();
9558 }
9559 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)9560 const char* Checkpoint_Aggregand::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
9561 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
9562   while (!ctx->Done(&ptr)) {
9563     ::uint32_t tag;
9564     ptr = ::_pbi::ReadTag(ptr, &tag);
9565     switch (tag >> 3) {
9566       // repeated uint64 values = 1 [packed = true];
9567       case 1:
9568         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
9569           ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt64Parser(_internal_mutable_values(), ptr, ctx);
9570           CHK_(ptr);
9571         } else if (static_cast<::uint8_t>(tag) == 8) {
9572           _internal_add_values(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr));
9573           CHK_(ptr);
9574         } else {
9575           goto handle_unusual;
9576         }
9577         continue;
9578       // int32 bitwidth = 2;
9579       case 2:
9580         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
9581           _impl_.bitwidth_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
9582           CHK_(ptr);
9583         } else {
9584           goto handle_unusual;
9585         }
9586         continue;
9587       default:
9588         goto handle_unusual;
9589     }  // switch
9590   handle_unusual:
9591     if ((tag == 0) || ((tag & 7) == 4)) {
9592       CHK_(ptr);
9593       ctx->SetLastTag(tag);
9594       goto message_done;
9595     }
9596     ptr = UnknownFieldParse(
9597         tag,
9598         _internal_metadata_.mutable_unknown_fields<std::string>(),
9599         ptr, ctx);
9600     CHK_(ptr != nullptr);
9601   }  // while
9602 message_done:
9603   return ptr;
9604 failure:
9605   ptr = nullptr;
9606   goto message_done;
9607 #undef CHK_
9608 }
9609 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const9610 ::uint8_t* Checkpoint_Aggregand::_InternalSerialize(
9611     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
9612   // @@protoc_insertion_point(serialize_to_array_start:google.internal.federatedml.v2.Checkpoint.Aggregand)
9613   ::uint32_t cached_has_bits = 0;
9614   (void) cached_has_bits;
9615 
9616   // repeated uint64 values = 1 [packed = true];
9617   {
9618     int byte_size = _impl_._values_cached_byte_size_.load(std::memory_order_relaxed);
9619     if (byte_size > 0) {
9620       target = stream->WriteUInt64Packed(
9621           1, _internal_values(), byte_size, target);
9622     }
9623   }
9624 
9625   // int32 bitwidth = 2;
9626   if (this->_internal_bitwidth() != 0) {
9627     target = stream->EnsureSpace(target);
9628     target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_bitwidth(), target);
9629   }
9630 
9631   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
9632     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
9633         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
9634   }
9635   // @@protoc_insertion_point(serialize_to_array_end:google.internal.federatedml.v2.Checkpoint.Aggregand)
9636   return target;
9637 }
9638 
ByteSizeLong() const9639 size_t Checkpoint_Aggregand::ByteSizeLong() const {
9640 // @@protoc_insertion_point(message_byte_size_start:google.internal.federatedml.v2.Checkpoint.Aggregand)
9641   size_t total_size = 0;
9642 
9643   ::uint32_t cached_has_bits = 0;
9644   // Prevent compiler warnings about cached_has_bits being unused
9645   (void) cached_has_bits;
9646 
9647   // repeated uint64 values = 1 [packed = true];
9648   {
9649     size_t data_size = ::_pbi::WireFormatLite::
9650       UInt64Size(this->_impl_.values_);
9651     if (data_size > 0) {
9652       total_size += 1 +
9653         ::_pbi::WireFormatLite::Int32Size(static_cast<::int32_t>(data_size));
9654     }
9655     int cached_size = ::_pbi::ToCachedSize(data_size);
9656     _impl_._values_cached_byte_size_.store(cached_size,
9657                                     std::memory_order_relaxed);
9658     total_size += data_size;
9659   }
9660 
9661   // int32 bitwidth = 2;
9662   if (this->_internal_bitwidth() != 0) {
9663     total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_bitwidth());
9664   }
9665 
9666   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
9667     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
9668   }
9669   int cached_size = ::_pbi::ToCachedSize(total_size);
9670   SetCachedSize(cached_size);
9671   return total_size;
9672 }
9673 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)9674 void Checkpoint_Aggregand::CheckTypeAndMergeFrom(
9675     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
9676   MergeFrom(*::_pbi::DownCast<const Checkpoint_Aggregand*>(
9677       &from));
9678 }
9679 
MergeFrom(const Checkpoint_Aggregand & from)9680 void Checkpoint_Aggregand::MergeFrom(const Checkpoint_Aggregand& from) {
9681   Checkpoint_Aggregand* const _this = this;
9682   // @@protoc_insertion_point(class_specific_merge_from_start:google.internal.federatedml.v2.Checkpoint.Aggregand)
9683   GOOGLE_DCHECK_NE(&from, _this);
9684   ::uint32_t cached_has_bits = 0;
9685   (void) cached_has_bits;
9686 
9687   _this->_impl_.values_.MergeFrom(from._impl_.values_);
9688   if (from._internal_bitwidth() != 0) {
9689     _this->_internal_set_bitwidth(from._internal_bitwidth());
9690   }
9691   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
9692 }
9693 
CopyFrom(const Checkpoint_Aggregand & from)9694 void Checkpoint_Aggregand::CopyFrom(const Checkpoint_Aggregand& from) {
9695 // @@protoc_insertion_point(class_specific_copy_from_start:google.internal.federatedml.v2.Checkpoint.Aggregand)
9696   if (&from == this) return;
9697   Clear();
9698   MergeFrom(from);
9699 }
9700 
IsInitialized() const9701 bool Checkpoint_Aggregand::IsInitialized() const {
9702   return true;
9703 }
9704 
InternalSwap(Checkpoint_Aggregand * other)9705 void Checkpoint_Aggregand::InternalSwap(Checkpoint_Aggregand* other) {
9706   using std::swap;
9707   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
9708   _impl_.values_.InternalSwap(&other->_impl_.values_);
9709   swap(_impl_.bitwidth_, other->_impl_.bitwidth_);
9710 }
9711 
GetTypeName() const9712 std::string Checkpoint_Aggregand::GetTypeName() const {
9713   return "google.internal.federatedml.v2.Checkpoint.Aggregand";
9714 }
9715 
9716 
9717 // ===================================================================
9718 
Checkpoint_AggregandsEntry_DoNotUse()9719 Checkpoint_AggregandsEntry_DoNotUse::Checkpoint_AggregandsEntry_DoNotUse() {}
Checkpoint_AggregandsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena * arena)9720 Checkpoint_AggregandsEntry_DoNotUse::Checkpoint_AggregandsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
9721     : SuperType(arena) {}
MergeFrom(const Checkpoint_AggregandsEntry_DoNotUse & other)9722 void Checkpoint_AggregandsEntry_DoNotUse::MergeFrom(const Checkpoint_AggregandsEntry_DoNotUse& other) {
9723   MergeFromInternal(other);
9724 }
9725 
9726 // ===================================================================
9727 
9728 class Checkpoint::_Internal {
9729  public:
9730 };
9731 
Checkpoint(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)9732 Checkpoint::Checkpoint(::PROTOBUF_NAMESPACE_ID::Arena* arena,
9733                          bool is_message_owned)
9734   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
9735   SharedCtor(arena, is_message_owned);
9736   // @@protoc_insertion_point(arena_constructor:google.internal.federatedml.v2.Checkpoint)
9737 }
Checkpoint(const Checkpoint & from)9738 Checkpoint::Checkpoint(const Checkpoint& from)
9739   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
9740   Checkpoint* const _this = this; (void)_this;
9741   new (&_impl_) Impl_{
9742       /*decltype(_impl_.aggregands_)*/{}
9743     , /*decltype(_impl_._cached_size_)*/{}};
9744 
9745   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
9746   _this->_impl_.aggregands_.MergeFrom(from._impl_.aggregands_);
9747   // @@protoc_insertion_point(copy_constructor:google.internal.federatedml.v2.Checkpoint)
9748 }
9749 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)9750 inline void Checkpoint::SharedCtor(
9751     ::_pb::Arena* arena, bool is_message_owned) {
9752   (void)arena;
9753   (void)is_message_owned;
9754   new (&_impl_) Impl_{
9755       /*decltype(_impl_.aggregands_)*/{::_pbi::ArenaInitialized(), arena}
9756     , /*decltype(_impl_._cached_size_)*/{}
9757   };
9758 }
9759 
~Checkpoint()9760 Checkpoint::~Checkpoint() {
9761   // @@protoc_insertion_point(destructor:google.internal.federatedml.v2.Checkpoint)
9762   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
9763   (void)arena;
9764     return;
9765   }
9766   SharedDtor();
9767 }
9768 
SharedDtor()9769 inline void Checkpoint::SharedDtor() {
9770   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
9771   _impl_.aggregands_.Destruct();
9772   _impl_.aggregands_.~MapFieldLite();
9773 }
9774 
SetCachedSize(int size) const9775 void Checkpoint::SetCachedSize(int size) const {
9776   _impl_._cached_size_.Set(size);
9777 }
9778 
Clear()9779 void Checkpoint::Clear() {
9780 // @@protoc_insertion_point(message_clear_start:google.internal.federatedml.v2.Checkpoint)
9781   ::uint32_t cached_has_bits = 0;
9782   // Prevent compiler warnings about cached_has_bits being unused
9783   (void) cached_has_bits;
9784 
9785   _impl_.aggregands_.Clear();
9786   _internal_metadata_.Clear<std::string>();
9787 }
9788 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)9789 const char* Checkpoint::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
9790 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
9791   while (!ctx->Done(&ptr)) {
9792     ::uint32_t tag;
9793     ptr = ::_pbi::ReadTag(ptr, &tag);
9794     switch (tag >> 3) {
9795       // map<string, .google.internal.federatedml.v2.Checkpoint.Aggregand> aggregands = 1;
9796       case 1:
9797         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
9798           ptr -= 1;
9799           do {
9800             ptr += 1;
9801             ptr = ctx->ParseMessage(&_impl_.aggregands_, ptr);
9802             CHK_(ptr);
9803             if (!ctx->DataAvailable(ptr)) break;
9804           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
9805         } else {
9806           goto handle_unusual;
9807         }
9808         continue;
9809       default:
9810         goto handle_unusual;
9811     }  // switch
9812   handle_unusual:
9813     if ((tag == 0) || ((tag & 7) == 4)) {
9814       CHK_(ptr);
9815       ctx->SetLastTag(tag);
9816       goto message_done;
9817     }
9818     ptr = UnknownFieldParse(
9819         tag,
9820         _internal_metadata_.mutable_unknown_fields<std::string>(),
9821         ptr, ctx);
9822     CHK_(ptr != nullptr);
9823   }  // while
9824 message_done:
9825   return ptr;
9826 failure:
9827   ptr = nullptr;
9828   goto message_done;
9829 #undef CHK_
9830 }
9831 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const9832 ::uint8_t* Checkpoint::_InternalSerialize(
9833     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
9834   // @@protoc_insertion_point(serialize_to_array_start:google.internal.federatedml.v2.Checkpoint)
9835   ::uint32_t cached_has_bits = 0;
9836   (void) cached_has_bits;
9837 
9838   // map<string, .google.internal.federatedml.v2.Checkpoint.Aggregand> aggregands = 1;
9839   if (!this->_internal_aggregands().empty()) {
9840     using MapType = ::_pb::Map<std::string, ::google::internal::federatedml::v2::Checkpoint_Aggregand>;
9841     using WireHelper = Checkpoint_AggregandsEntry_DoNotUse::Funcs;
9842     const auto& map_field = this->_internal_aggregands();
9843     auto check_utf8 = [](const MapType::value_type& entry) {
9844       (void)entry;
9845       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
9846         entry.first.data(), static_cast<int>(entry.first.length()),
9847         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
9848         "google.internal.federatedml.v2.Checkpoint.AggregandsEntry.key");
9849     };
9850 
9851     if (stream->IsSerializationDeterministic() && map_field.size() > 1) {
9852       for (const auto& entry : ::_pbi::MapSorterPtr<MapType>(map_field)) {
9853         target = WireHelper::InternalSerialize(1, entry.first, entry.second, target, stream);
9854         check_utf8(entry);
9855       }
9856     } else {
9857       for (const auto& entry : map_field) {
9858         target = WireHelper::InternalSerialize(1, entry.first, entry.second, target, stream);
9859         check_utf8(entry);
9860       }
9861     }
9862   }
9863 
9864   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
9865     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
9866         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
9867   }
9868   // @@protoc_insertion_point(serialize_to_array_end:google.internal.federatedml.v2.Checkpoint)
9869   return target;
9870 }
9871 
ByteSizeLong() const9872 size_t Checkpoint::ByteSizeLong() const {
9873 // @@protoc_insertion_point(message_byte_size_start:google.internal.federatedml.v2.Checkpoint)
9874   size_t total_size = 0;
9875 
9876   ::uint32_t cached_has_bits = 0;
9877   // Prevent compiler warnings about cached_has_bits being unused
9878   (void) cached_has_bits;
9879 
9880   // map<string, .google.internal.federatedml.v2.Checkpoint.Aggregand> aggregands = 1;
9881   total_size += 1 *
9882       ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_aggregands_size());
9883   for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::internal::federatedml::v2::Checkpoint_Aggregand >::const_iterator
9884       it = this->_internal_aggregands().begin();
9885       it != this->_internal_aggregands().end(); ++it) {
9886     total_size += Checkpoint_AggregandsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
9887   }
9888 
9889   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
9890     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
9891   }
9892   int cached_size = ::_pbi::ToCachedSize(total_size);
9893   SetCachedSize(cached_size);
9894   return total_size;
9895 }
9896 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)9897 void Checkpoint::CheckTypeAndMergeFrom(
9898     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
9899   MergeFrom(*::_pbi::DownCast<const Checkpoint*>(
9900       &from));
9901 }
9902 
MergeFrom(const Checkpoint & from)9903 void Checkpoint::MergeFrom(const Checkpoint& from) {
9904   Checkpoint* const _this = this;
9905   // @@protoc_insertion_point(class_specific_merge_from_start:google.internal.federatedml.v2.Checkpoint)
9906   GOOGLE_DCHECK_NE(&from, _this);
9907   ::uint32_t cached_has_bits = 0;
9908   (void) cached_has_bits;
9909 
9910   _this->_impl_.aggregands_.MergeFrom(from._impl_.aggregands_);
9911   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
9912 }
9913 
CopyFrom(const Checkpoint & from)9914 void Checkpoint::CopyFrom(const Checkpoint& from) {
9915 // @@protoc_insertion_point(class_specific_copy_from_start:google.internal.federatedml.v2.Checkpoint)
9916   if (&from == this) return;
9917   Clear();
9918   MergeFrom(from);
9919 }
9920 
IsInitialized() const9921 bool Checkpoint::IsInitialized() const {
9922   return true;
9923 }
9924 
InternalSwap(Checkpoint * other)9925 void Checkpoint::InternalSwap(Checkpoint* other) {
9926   using std::swap;
9927   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
9928   _impl_.aggregands_.InternalSwap(&other->_impl_.aggregands_);
9929 }
9930 
GetTypeName() const9931 std::string Checkpoint::GetTypeName() const {
9932   return "google.internal.federatedml.v2.Checkpoint";
9933 }
9934 
9935 
9936 // ===================================================================
9937 
9938 class ProtocolOptionsRequest::_Internal {
9939  public:
9940   static const ::google::internal::federatedml::v2::SideChannelProtocolOptionsRequest& side_channels(const ProtocolOptionsRequest* msg);
9941 };
9942 
9943 const ::google::internal::federatedml::v2::SideChannelProtocolOptionsRequest&
side_channels(const ProtocolOptionsRequest * msg)9944 ProtocolOptionsRequest::_Internal::side_channels(const ProtocolOptionsRequest* msg) {
9945   return *msg->_impl_.side_channels_;
9946 }
ProtocolOptionsRequest(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)9947 ProtocolOptionsRequest::ProtocolOptionsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
9948                          bool is_message_owned)
9949   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
9950   SharedCtor(arena, is_message_owned);
9951   // @@protoc_insertion_point(arena_constructor:google.internal.federatedml.v2.ProtocolOptionsRequest)
9952 }
ProtocolOptionsRequest(const ProtocolOptionsRequest & from)9953 ProtocolOptionsRequest::ProtocolOptionsRequest(const ProtocolOptionsRequest& from)
9954   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
9955   ProtocolOptionsRequest* const _this = this; (void)_this;
9956   new (&_impl_) Impl_{
9957       decltype(_impl_.supported_compression_levels_){from._impl_.supported_compression_levels_}
9958     , /*decltype(_impl_._supported_compression_levels_cached_byte_size_)*/{0}
9959     , decltype(_impl_.supported_http_compression_formats_){from._impl_.supported_http_compression_formats_}
9960     , /*decltype(_impl_._supported_http_compression_formats_cached_byte_size_)*/{0}
9961     , decltype(_impl_.side_channels_){nullptr}
9962     , decltype(_impl_.supports_chunked_blob_transfer_){}
9963     , decltype(_impl_.should_ack_checkin_){}
9964     , decltype(_impl_.supports_http_download_){}
9965     , decltype(_impl_.supports_eligibility_eval_http_download_){}
9966     , /*decltype(_impl_._cached_size_)*/{}};
9967 
9968   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
9969   if (from._internal_has_side_channels()) {
9970     _this->_impl_.side_channels_ = new ::google::internal::federatedml::v2::SideChannelProtocolOptionsRequest(*from._impl_.side_channels_);
9971   }
9972   ::memcpy(&_impl_.supports_chunked_blob_transfer_, &from._impl_.supports_chunked_blob_transfer_,
9973     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.supports_eligibility_eval_http_download_) -
9974     reinterpret_cast<char*>(&_impl_.supports_chunked_blob_transfer_)) + sizeof(_impl_.supports_eligibility_eval_http_download_));
9975   // @@protoc_insertion_point(copy_constructor:google.internal.federatedml.v2.ProtocolOptionsRequest)
9976 }
9977 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)9978 inline void ProtocolOptionsRequest::SharedCtor(
9979     ::_pb::Arena* arena, bool is_message_owned) {
9980   (void)arena;
9981   (void)is_message_owned;
9982   new (&_impl_) Impl_{
9983       decltype(_impl_.supported_compression_levels_){arena}
9984     , /*decltype(_impl_._supported_compression_levels_cached_byte_size_)*/{0}
9985     , decltype(_impl_.supported_http_compression_formats_){arena}
9986     , /*decltype(_impl_._supported_http_compression_formats_cached_byte_size_)*/{0}
9987     , decltype(_impl_.side_channels_){nullptr}
9988     , decltype(_impl_.supports_chunked_blob_transfer_){false}
9989     , decltype(_impl_.should_ack_checkin_){false}
9990     , decltype(_impl_.supports_http_download_){false}
9991     , decltype(_impl_.supports_eligibility_eval_http_download_){false}
9992     , /*decltype(_impl_._cached_size_)*/{}
9993   };
9994 }
9995 
~ProtocolOptionsRequest()9996 ProtocolOptionsRequest::~ProtocolOptionsRequest() {
9997   // @@protoc_insertion_point(destructor:google.internal.federatedml.v2.ProtocolOptionsRequest)
9998   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
9999   (void)arena;
10000     return;
10001   }
10002   SharedDtor();
10003 }
10004 
SharedDtor()10005 inline void ProtocolOptionsRequest::SharedDtor() {
10006   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
10007   _impl_.supported_compression_levels_.~RepeatedField();
10008   _impl_.supported_http_compression_formats_.~RepeatedField();
10009   if (this != internal_default_instance()) delete _impl_.side_channels_;
10010 }
10011 
SetCachedSize(int size) const10012 void ProtocolOptionsRequest::SetCachedSize(int size) const {
10013   _impl_._cached_size_.Set(size);
10014 }
10015 
Clear()10016 void ProtocolOptionsRequest::Clear() {
10017 // @@protoc_insertion_point(message_clear_start:google.internal.federatedml.v2.ProtocolOptionsRequest)
10018   ::uint32_t cached_has_bits = 0;
10019   // Prevent compiler warnings about cached_has_bits being unused
10020   (void) cached_has_bits;
10021 
10022   _impl_.supported_compression_levels_.Clear();
10023   _impl_.supported_http_compression_formats_.Clear();
10024   if (GetArenaForAllocation() == nullptr && _impl_.side_channels_ != nullptr) {
10025     delete _impl_.side_channels_;
10026   }
10027   _impl_.side_channels_ = nullptr;
10028   ::memset(&_impl_.supports_chunked_blob_transfer_, 0, static_cast<size_t>(
10029       reinterpret_cast<char*>(&_impl_.supports_eligibility_eval_http_download_) -
10030       reinterpret_cast<char*>(&_impl_.supports_chunked_blob_transfer_)) + sizeof(_impl_.supports_eligibility_eval_http_download_));
10031   _internal_metadata_.Clear<std::string>();
10032 }
10033 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)10034 const char* ProtocolOptionsRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
10035 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
10036   while (!ctx->Done(&ptr)) {
10037     ::uint32_t tag;
10038     ptr = ::_pbi::ReadTag(ptr, &tag);
10039     switch (tag >> 3) {
10040       // bool supports_chunked_blob_transfer = 1;
10041       case 1:
10042         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
10043           _impl_.supports_chunked_blob_transfer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
10044           CHK_(ptr);
10045         } else {
10046           goto handle_unusual;
10047         }
10048         continue;
10049       // repeated .google.internal.federatedml.v2.CompressionLevel supported_compression_levels = 2;
10050       case 2:
10051         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
10052           ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_supported_compression_levels(), ptr, ctx);
10053           CHK_(ptr);
10054         } else if (static_cast<::uint8_t>(tag) == 16) {
10055           ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
10056           CHK_(ptr);
10057           _internal_add_supported_compression_levels(static_cast<::google::internal::federatedml::v2::CompressionLevel>(val));
10058         } else {
10059           goto handle_unusual;
10060         }
10061         continue;
10062       // .google.internal.federatedml.v2.SideChannelProtocolOptionsRequest side_channels = 3;
10063       case 3:
10064         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
10065           ptr = ctx->ParseMessage(_internal_mutable_side_channels(), ptr);
10066           CHK_(ptr);
10067         } else {
10068           goto handle_unusual;
10069         }
10070         continue;
10071       // bool should_ack_checkin = 4;
10072       case 4:
10073         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
10074           _impl_.should_ack_checkin_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
10075           CHK_(ptr);
10076         } else {
10077           goto handle_unusual;
10078         }
10079         continue;
10080       // bool supports_http_download = 5;
10081       case 5:
10082         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) {
10083           _impl_.supports_http_download_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
10084           CHK_(ptr);
10085         } else {
10086           goto handle_unusual;
10087         }
10088         continue;
10089       // bool supports_eligibility_eval_http_download = 6;
10090       case 6:
10091         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 48)) {
10092           _impl_.supports_eligibility_eval_http_download_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
10093           CHK_(ptr);
10094         } else {
10095           goto handle_unusual;
10096         }
10097         continue;
10098       // repeated .google.internal.federatedml.v2.HttpCompressionFormat supported_http_compression_formats = 7;
10099       case 7:
10100         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) {
10101           ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_supported_http_compression_formats(), ptr, ctx);
10102           CHK_(ptr);
10103         } else if (static_cast<::uint8_t>(tag) == 56) {
10104           ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
10105           CHK_(ptr);
10106           _internal_add_supported_http_compression_formats(static_cast<::google::internal::federatedml::v2::HttpCompressionFormat>(val));
10107         } else {
10108           goto handle_unusual;
10109         }
10110         continue;
10111       default:
10112         goto handle_unusual;
10113     }  // switch
10114   handle_unusual:
10115     if ((tag == 0) || ((tag & 7) == 4)) {
10116       CHK_(ptr);
10117       ctx->SetLastTag(tag);
10118       goto message_done;
10119     }
10120     ptr = UnknownFieldParse(
10121         tag,
10122         _internal_metadata_.mutable_unknown_fields<std::string>(),
10123         ptr, ctx);
10124     CHK_(ptr != nullptr);
10125   }  // while
10126 message_done:
10127   return ptr;
10128 failure:
10129   ptr = nullptr;
10130   goto message_done;
10131 #undef CHK_
10132 }
10133 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const10134 ::uint8_t* ProtocolOptionsRequest::_InternalSerialize(
10135     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
10136   // @@protoc_insertion_point(serialize_to_array_start:google.internal.federatedml.v2.ProtocolOptionsRequest)
10137   ::uint32_t cached_has_bits = 0;
10138   (void) cached_has_bits;
10139 
10140   // bool supports_chunked_blob_transfer = 1;
10141   if (this->_internal_supports_chunked_blob_transfer() != 0) {
10142     target = stream->EnsureSpace(target);
10143     target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_supports_chunked_blob_transfer(), target);
10144   }
10145 
10146   // repeated .google.internal.federatedml.v2.CompressionLevel supported_compression_levels = 2;
10147   {
10148     int byte_size = _impl_._supported_compression_levels_cached_byte_size_.load(std::memory_order_relaxed);
10149     if (byte_size > 0) {
10150       target = stream->WriteEnumPacked(
10151           2, _impl_.supported_compression_levels_, byte_size, target);
10152     }
10153   }
10154 
10155   // .google.internal.federatedml.v2.SideChannelProtocolOptionsRequest side_channels = 3;
10156   if (this->_internal_has_side_channels()) {
10157     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
10158       InternalWriteMessage(3, _Internal::side_channels(this),
10159         _Internal::side_channels(this).GetCachedSize(), target, stream);
10160   }
10161 
10162   // bool should_ack_checkin = 4;
10163   if (this->_internal_should_ack_checkin() != 0) {
10164     target = stream->EnsureSpace(target);
10165     target = ::_pbi::WireFormatLite::WriteBoolToArray(4, this->_internal_should_ack_checkin(), target);
10166   }
10167 
10168   // bool supports_http_download = 5;
10169   if (this->_internal_supports_http_download() != 0) {
10170     target = stream->EnsureSpace(target);
10171     target = ::_pbi::WireFormatLite::WriteBoolToArray(5, this->_internal_supports_http_download(), target);
10172   }
10173 
10174   // bool supports_eligibility_eval_http_download = 6;
10175   if (this->_internal_supports_eligibility_eval_http_download() != 0) {
10176     target = stream->EnsureSpace(target);
10177     target = ::_pbi::WireFormatLite::WriteBoolToArray(6, this->_internal_supports_eligibility_eval_http_download(), target);
10178   }
10179 
10180   // repeated .google.internal.federatedml.v2.HttpCompressionFormat supported_http_compression_formats = 7;
10181   {
10182     int byte_size = _impl_._supported_http_compression_formats_cached_byte_size_.load(std::memory_order_relaxed);
10183     if (byte_size > 0) {
10184       target = stream->WriteEnumPacked(
10185           7, _impl_.supported_http_compression_formats_, byte_size, target);
10186     }
10187   }
10188 
10189   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
10190     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
10191         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
10192   }
10193   // @@protoc_insertion_point(serialize_to_array_end:google.internal.federatedml.v2.ProtocolOptionsRequest)
10194   return target;
10195 }
10196 
ByteSizeLong() const10197 size_t ProtocolOptionsRequest::ByteSizeLong() const {
10198 // @@protoc_insertion_point(message_byte_size_start:google.internal.federatedml.v2.ProtocolOptionsRequest)
10199   size_t total_size = 0;
10200 
10201   ::uint32_t cached_has_bits = 0;
10202   // Prevent compiler warnings about cached_has_bits being unused
10203   (void) cached_has_bits;
10204 
10205   // repeated .google.internal.federatedml.v2.CompressionLevel supported_compression_levels = 2;
10206   {
10207     size_t data_size = 0;
10208     unsigned int count = static_cast<unsigned int>(this->_internal_supported_compression_levels_size());for (unsigned int i = 0; i < count; i++) {
10209       data_size += ::_pbi::WireFormatLite::EnumSize(
10210         this->_internal_supported_compression_levels(static_cast<int>(i)));
10211     }
10212     if (data_size > 0) {
10213       total_size += 1 +
10214         ::_pbi::WireFormatLite::Int32Size(static_cast<::int32_t>(data_size));
10215     }
10216     int cached_size = ::_pbi::ToCachedSize(data_size);
10217     _impl_._supported_compression_levels_cached_byte_size_.store(cached_size,
10218                                     std::memory_order_relaxed);
10219     total_size += data_size;
10220   }
10221 
10222   // repeated .google.internal.federatedml.v2.HttpCompressionFormat supported_http_compression_formats = 7;
10223   {
10224     size_t data_size = 0;
10225     unsigned int count = static_cast<unsigned int>(this->_internal_supported_http_compression_formats_size());for (unsigned int i = 0; i < count; i++) {
10226       data_size += ::_pbi::WireFormatLite::EnumSize(
10227         this->_internal_supported_http_compression_formats(static_cast<int>(i)));
10228     }
10229     if (data_size > 0) {
10230       total_size += 1 +
10231         ::_pbi::WireFormatLite::Int32Size(static_cast<::int32_t>(data_size));
10232     }
10233     int cached_size = ::_pbi::ToCachedSize(data_size);
10234     _impl_._supported_http_compression_formats_cached_byte_size_.store(cached_size,
10235                                     std::memory_order_relaxed);
10236     total_size += data_size;
10237   }
10238 
10239   // .google.internal.federatedml.v2.SideChannelProtocolOptionsRequest side_channels = 3;
10240   if (this->_internal_has_side_channels()) {
10241     total_size += 1 +
10242       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
10243         *_impl_.side_channels_);
10244   }
10245 
10246   // bool supports_chunked_blob_transfer = 1;
10247   if (this->_internal_supports_chunked_blob_transfer() != 0) {
10248     total_size += 1 + 1;
10249   }
10250 
10251   // bool should_ack_checkin = 4;
10252   if (this->_internal_should_ack_checkin() != 0) {
10253     total_size += 1 + 1;
10254   }
10255 
10256   // bool supports_http_download = 5;
10257   if (this->_internal_supports_http_download() != 0) {
10258     total_size += 1 + 1;
10259   }
10260 
10261   // bool supports_eligibility_eval_http_download = 6;
10262   if (this->_internal_supports_eligibility_eval_http_download() != 0) {
10263     total_size += 1 + 1;
10264   }
10265 
10266   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
10267     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
10268   }
10269   int cached_size = ::_pbi::ToCachedSize(total_size);
10270   SetCachedSize(cached_size);
10271   return total_size;
10272 }
10273 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)10274 void ProtocolOptionsRequest::CheckTypeAndMergeFrom(
10275     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
10276   MergeFrom(*::_pbi::DownCast<const ProtocolOptionsRequest*>(
10277       &from));
10278 }
10279 
MergeFrom(const ProtocolOptionsRequest & from)10280 void ProtocolOptionsRequest::MergeFrom(const ProtocolOptionsRequest& from) {
10281   ProtocolOptionsRequest* const _this = this;
10282   // @@protoc_insertion_point(class_specific_merge_from_start:google.internal.federatedml.v2.ProtocolOptionsRequest)
10283   GOOGLE_DCHECK_NE(&from, _this);
10284   ::uint32_t cached_has_bits = 0;
10285   (void) cached_has_bits;
10286 
10287   _this->_impl_.supported_compression_levels_.MergeFrom(from._impl_.supported_compression_levels_);
10288   _this->_impl_.supported_http_compression_formats_.MergeFrom(from._impl_.supported_http_compression_formats_);
10289   if (from._internal_has_side_channels()) {
10290     _this->_internal_mutable_side_channels()->::google::internal::federatedml::v2::SideChannelProtocolOptionsRequest::MergeFrom(
10291         from._internal_side_channels());
10292   }
10293   if (from._internal_supports_chunked_blob_transfer() != 0) {
10294     _this->_internal_set_supports_chunked_blob_transfer(from._internal_supports_chunked_blob_transfer());
10295   }
10296   if (from._internal_should_ack_checkin() != 0) {
10297     _this->_internal_set_should_ack_checkin(from._internal_should_ack_checkin());
10298   }
10299   if (from._internal_supports_http_download() != 0) {
10300     _this->_internal_set_supports_http_download(from._internal_supports_http_download());
10301   }
10302   if (from._internal_supports_eligibility_eval_http_download() != 0) {
10303     _this->_internal_set_supports_eligibility_eval_http_download(from._internal_supports_eligibility_eval_http_download());
10304   }
10305   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
10306 }
10307 
CopyFrom(const ProtocolOptionsRequest & from)10308 void ProtocolOptionsRequest::CopyFrom(const ProtocolOptionsRequest& from) {
10309 // @@protoc_insertion_point(class_specific_copy_from_start:google.internal.federatedml.v2.ProtocolOptionsRequest)
10310   if (&from == this) return;
10311   Clear();
10312   MergeFrom(from);
10313 }
10314 
IsInitialized() const10315 bool ProtocolOptionsRequest::IsInitialized() const {
10316   return true;
10317 }
10318 
InternalSwap(ProtocolOptionsRequest * other)10319 void ProtocolOptionsRequest::InternalSwap(ProtocolOptionsRequest* other) {
10320   using std::swap;
10321   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
10322   _impl_.supported_compression_levels_.InternalSwap(&other->_impl_.supported_compression_levels_);
10323   _impl_.supported_http_compression_formats_.InternalSwap(&other->_impl_.supported_http_compression_formats_);
10324   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
10325       PROTOBUF_FIELD_OFFSET(ProtocolOptionsRequest, _impl_.supports_eligibility_eval_http_download_)
10326       + sizeof(ProtocolOptionsRequest::_impl_.supports_eligibility_eval_http_download_)  // NOLINT
10327       - PROTOBUF_FIELD_OFFSET(ProtocolOptionsRequest, _impl_.side_channels_)>(
10328           reinterpret_cast<char*>(&_impl_.side_channels_),
10329           reinterpret_cast<char*>(&other->_impl_.side_channels_));
10330 }
10331 
GetTypeName() const10332 std::string ProtocolOptionsRequest::GetTypeName() const {
10333   return "google.internal.federatedml.v2.ProtocolOptionsRequest";
10334 }
10335 
10336 
10337 // ===================================================================
10338 
10339 class ProtocolOptionsResponse::_Internal {
10340  public:
10341   static const ::google::internal::federatedml::v2::SideChannelProtocolOptionsResponse& side_channels(const ProtocolOptionsResponse* msg);
10342 };
10343 
10344 const ::google::internal::federatedml::v2::SideChannelProtocolOptionsResponse&
side_channels(const ProtocolOptionsResponse * msg)10345 ProtocolOptionsResponse::_Internal::side_channels(const ProtocolOptionsResponse* msg) {
10346   return *msg->_impl_.side_channels_;
10347 }
ProtocolOptionsResponse(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)10348 ProtocolOptionsResponse::ProtocolOptionsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena,
10349                          bool is_message_owned)
10350   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
10351   SharedCtor(arena, is_message_owned);
10352   // @@protoc_insertion_point(arena_constructor:google.internal.federatedml.v2.ProtocolOptionsResponse)
10353 }
ProtocolOptionsResponse(const ProtocolOptionsResponse & from)10354 ProtocolOptionsResponse::ProtocolOptionsResponse(const ProtocolOptionsResponse& from)
10355   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
10356   ProtocolOptionsResponse* const _this = this; (void)_this;
10357   new (&_impl_) Impl_{
10358       decltype(_impl_.side_channels_){nullptr}
10359     , decltype(_impl_.chunk_size_for_upload_){}
10360     , decltype(_impl_.max_pending_chunks_){}
10361     , decltype(_impl_.compression_level_){}
10362     , /*decltype(_impl_._cached_size_)*/{}};
10363 
10364   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
10365   if (from._internal_has_side_channels()) {
10366     _this->_impl_.side_channels_ = new ::google::internal::federatedml::v2::SideChannelProtocolOptionsResponse(*from._impl_.side_channels_);
10367   }
10368   ::memcpy(&_impl_.chunk_size_for_upload_, &from._impl_.chunk_size_for_upload_,
10369     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.compression_level_) -
10370     reinterpret_cast<char*>(&_impl_.chunk_size_for_upload_)) + sizeof(_impl_.compression_level_));
10371   // @@protoc_insertion_point(copy_constructor:google.internal.federatedml.v2.ProtocolOptionsResponse)
10372 }
10373 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)10374 inline void ProtocolOptionsResponse::SharedCtor(
10375     ::_pb::Arena* arena, bool is_message_owned) {
10376   (void)arena;
10377   (void)is_message_owned;
10378   new (&_impl_) Impl_{
10379       decltype(_impl_.side_channels_){nullptr}
10380     , decltype(_impl_.chunk_size_for_upload_){0}
10381     , decltype(_impl_.max_pending_chunks_){0}
10382     , decltype(_impl_.compression_level_){0}
10383     , /*decltype(_impl_._cached_size_)*/{}
10384   };
10385 }
10386 
~ProtocolOptionsResponse()10387 ProtocolOptionsResponse::~ProtocolOptionsResponse() {
10388   // @@protoc_insertion_point(destructor:google.internal.federatedml.v2.ProtocolOptionsResponse)
10389   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
10390   (void)arena;
10391     return;
10392   }
10393   SharedDtor();
10394 }
10395 
SharedDtor()10396 inline void ProtocolOptionsResponse::SharedDtor() {
10397   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
10398   if (this != internal_default_instance()) delete _impl_.side_channels_;
10399 }
10400 
SetCachedSize(int size) const10401 void ProtocolOptionsResponse::SetCachedSize(int size) const {
10402   _impl_._cached_size_.Set(size);
10403 }
10404 
Clear()10405 void ProtocolOptionsResponse::Clear() {
10406 // @@protoc_insertion_point(message_clear_start:google.internal.federatedml.v2.ProtocolOptionsResponse)
10407   ::uint32_t cached_has_bits = 0;
10408   // Prevent compiler warnings about cached_has_bits being unused
10409   (void) cached_has_bits;
10410 
10411   if (GetArenaForAllocation() == nullptr && _impl_.side_channels_ != nullptr) {
10412     delete _impl_.side_channels_;
10413   }
10414   _impl_.side_channels_ = nullptr;
10415   ::memset(&_impl_.chunk_size_for_upload_, 0, static_cast<size_t>(
10416       reinterpret_cast<char*>(&_impl_.compression_level_) -
10417       reinterpret_cast<char*>(&_impl_.chunk_size_for_upload_)) + sizeof(_impl_.compression_level_));
10418   _internal_metadata_.Clear<std::string>();
10419 }
10420 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)10421 const char* ProtocolOptionsResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
10422 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
10423   while (!ctx->Done(&ptr)) {
10424     ::uint32_t tag;
10425     ptr = ::_pbi::ReadTag(ptr, &tag);
10426     switch (tag >> 3) {
10427       // int32 chunk_size_for_upload = 1;
10428       case 1:
10429         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
10430           _impl_.chunk_size_for_upload_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
10431           CHK_(ptr);
10432         } else {
10433           goto handle_unusual;
10434         }
10435         continue;
10436       // int32 max_pending_chunks = 2;
10437       case 2:
10438         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
10439           _impl_.max_pending_chunks_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
10440           CHK_(ptr);
10441         } else {
10442           goto handle_unusual;
10443         }
10444         continue;
10445       // .google.internal.federatedml.v2.CompressionLevel compression_level = 4;
10446       case 4:
10447         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
10448           ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
10449           CHK_(ptr);
10450           _internal_set_compression_level(static_cast<::google::internal::federatedml::v2::CompressionLevel>(val));
10451         } else {
10452           goto handle_unusual;
10453         }
10454         continue;
10455       // .google.internal.federatedml.v2.SideChannelProtocolOptionsResponse side_channels = 5;
10456       case 5:
10457         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
10458           ptr = ctx->ParseMessage(_internal_mutable_side_channels(), ptr);
10459           CHK_(ptr);
10460         } else {
10461           goto handle_unusual;
10462         }
10463         continue;
10464       default:
10465         goto handle_unusual;
10466     }  // switch
10467   handle_unusual:
10468     if ((tag == 0) || ((tag & 7) == 4)) {
10469       CHK_(ptr);
10470       ctx->SetLastTag(tag);
10471       goto message_done;
10472     }
10473     ptr = UnknownFieldParse(
10474         tag,
10475         _internal_metadata_.mutable_unknown_fields<std::string>(),
10476         ptr, ctx);
10477     CHK_(ptr != nullptr);
10478   }  // while
10479 message_done:
10480   return ptr;
10481 failure:
10482   ptr = nullptr;
10483   goto message_done;
10484 #undef CHK_
10485 }
10486 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const10487 ::uint8_t* ProtocolOptionsResponse::_InternalSerialize(
10488     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
10489   // @@protoc_insertion_point(serialize_to_array_start:google.internal.federatedml.v2.ProtocolOptionsResponse)
10490   ::uint32_t cached_has_bits = 0;
10491   (void) cached_has_bits;
10492 
10493   // int32 chunk_size_for_upload = 1;
10494   if (this->_internal_chunk_size_for_upload() != 0) {
10495     target = stream->EnsureSpace(target);
10496     target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_chunk_size_for_upload(), target);
10497   }
10498 
10499   // int32 max_pending_chunks = 2;
10500   if (this->_internal_max_pending_chunks() != 0) {
10501     target = stream->EnsureSpace(target);
10502     target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_max_pending_chunks(), target);
10503   }
10504 
10505   // .google.internal.federatedml.v2.CompressionLevel compression_level = 4;
10506   if (this->_internal_compression_level() != 0) {
10507     target = stream->EnsureSpace(target);
10508     target = ::_pbi::WireFormatLite::WriteEnumToArray(
10509       4, this->_internal_compression_level(), target);
10510   }
10511 
10512   // .google.internal.federatedml.v2.SideChannelProtocolOptionsResponse side_channels = 5;
10513   if (this->_internal_has_side_channels()) {
10514     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
10515       InternalWriteMessage(5, _Internal::side_channels(this),
10516         _Internal::side_channels(this).GetCachedSize(), target, stream);
10517   }
10518 
10519   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
10520     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
10521         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
10522   }
10523   // @@protoc_insertion_point(serialize_to_array_end:google.internal.federatedml.v2.ProtocolOptionsResponse)
10524   return target;
10525 }
10526 
ByteSizeLong() const10527 size_t ProtocolOptionsResponse::ByteSizeLong() const {
10528 // @@protoc_insertion_point(message_byte_size_start:google.internal.federatedml.v2.ProtocolOptionsResponse)
10529   size_t total_size = 0;
10530 
10531   ::uint32_t cached_has_bits = 0;
10532   // Prevent compiler warnings about cached_has_bits being unused
10533   (void) cached_has_bits;
10534 
10535   // .google.internal.federatedml.v2.SideChannelProtocolOptionsResponse side_channels = 5;
10536   if (this->_internal_has_side_channels()) {
10537     total_size += 1 +
10538       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
10539         *_impl_.side_channels_);
10540   }
10541 
10542   // int32 chunk_size_for_upload = 1;
10543   if (this->_internal_chunk_size_for_upload() != 0) {
10544     total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_chunk_size_for_upload());
10545   }
10546 
10547   // int32 max_pending_chunks = 2;
10548   if (this->_internal_max_pending_chunks() != 0) {
10549     total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_max_pending_chunks());
10550   }
10551 
10552   // .google.internal.federatedml.v2.CompressionLevel compression_level = 4;
10553   if (this->_internal_compression_level() != 0) {
10554     total_size += 1 +
10555       ::_pbi::WireFormatLite::EnumSize(this->_internal_compression_level());
10556   }
10557 
10558   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
10559     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
10560   }
10561   int cached_size = ::_pbi::ToCachedSize(total_size);
10562   SetCachedSize(cached_size);
10563   return total_size;
10564 }
10565 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)10566 void ProtocolOptionsResponse::CheckTypeAndMergeFrom(
10567     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
10568   MergeFrom(*::_pbi::DownCast<const ProtocolOptionsResponse*>(
10569       &from));
10570 }
10571 
MergeFrom(const ProtocolOptionsResponse & from)10572 void ProtocolOptionsResponse::MergeFrom(const ProtocolOptionsResponse& from) {
10573   ProtocolOptionsResponse* const _this = this;
10574   // @@protoc_insertion_point(class_specific_merge_from_start:google.internal.federatedml.v2.ProtocolOptionsResponse)
10575   GOOGLE_DCHECK_NE(&from, _this);
10576   ::uint32_t cached_has_bits = 0;
10577   (void) cached_has_bits;
10578 
10579   if (from._internal_has_side_channels()) {
10580     _this->_internal_mutable_side_channels()->::google::internal::federatedml::v2::SideChannelProtocolOptionsResponse::MergeFrom(
10581         from._internal_side_channels());
10582   }
10583   if (from._internal_chunk_size_for_upload() != 0) {
10584     _this->_internal_set_chunk_size_for_upload(from._internal_chunk_size_for_upload());
10585   }
10586   if (from._internal_max_pending_chunks() != 0) {
10587     _this->_internal_set_max_pending_chunks(from._internal_max_pending_chunks());
10588   }
10589   if (from._internal_compression_level() != 0) {
10590     _this->_internal_set_compression_level(from._internal_compression_level());
10591   }
10592   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
10593 }
10594 
CopyFrom(const ProtocolOptionsResponse & from)10595 void ProtocolOptionsResponse::CopyFrom(const ProtocolOptionsResponse& from) {
10596 // @@protoc_insertion_point(class_specific_copy_from_start:google.internal.federatedml.v2.ProtocolOptionsResponse)
10597   if (&from == this) return;
10598   Clear();
10599   MergeFrom(from);
10600 }
10601 
IsInitialized() const10602 bool ProtocolOptionsResponse::IsInitialized() const {
10603   return true;
10604 }
10605 
InternalSwap(ProtocolOptionsResponse * other)10606 void ProtocolOptionsResponse::InternalSwap(ProtocolOptionsResponse* other) {
10607   using std::swap;
10608   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
10609   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
10610       PROTOBUF_FIELD_OFFSET(ProtocolOptionsResponse, _impl_.compression_level_)
10611       + sizeof(ProtocolOptionsResponse::_impl_.compression_level_)  // NOLINT
10612       - PROTOBUF_FIELD_OFFSET(ProtocolOptionsResponse, _impl_.side_channels_)>(
10613           reinterpret_cast<char*>(&_impl_.side_channels_),
10614           reinterpret_cast<char*>(&other->_impl_.side_channels_));
10615 }
10616 
GetTypeName() const10617 std::string ProtocolOptionsResponse::GetTypeName() const {
10618   return "google.internal.federatedml.v2.ProtocolOptionsResponse";
10619 }
10620 
10621 
10622 // ===================================================================
10623 
10624 class ChunkedTransferMessage_Start::_Internal {
10625  public:
10626 };
10627 
ChunkedTransferMessage_Start(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)10628 ChunkedTransferMessage_Start::ChunkedTransferMessage_Start(::PROTOBUF_NAMESPACE_ID::Arena* arena,
10629                          bool is_message_owned)
10630   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
10631   SharedCtor(arena, is_message_owned);
10632   // @@protoc_insertion_point(arena_constructor:google.internal.federatedml.v2.ChunkedTransferMessage.Start)
10633 }
ChunkedTransferMessage_Start(const ChunkedTransferMessage_Start & from)10634 ChunkedTransferMessage_Start::ChunkedTransferMessage_Start(const ChunkedTransferMessage_Start& from)
10635   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
10636   ChunkedTransferMessage_Start* const _this = this; (void)_this;
10637   new (&_impl_) Impl_{
10638       decltype(_impl_.uncompressed_size_){}
10639     , decltype(_impl_.compression_level_){}
10640     , decltype(_impl_.blob_size_bytes_){}
10641     , /*decltype(_impl_._cached_size_)*/{}};
10642 
10643   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
10644   ::memcpy(&_impl_.uncompressed_size_, &from._impl_.uncompressed_size_,
10645     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.blob_size_bytes_) -
10646     reinterpret_cast<char*>(&_impl_.uncompressed_size_)) + sizeof(_impl_.blob_size_bytes_));
10647   // @@protoc_insertion_point(copy_constructor:google.internal.federatedml.v2.ChunkedTransferMessage.Start)
10648 }
10649 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)10650 inline void ChunkedTransferMessage_Start::SharedCtor(
10651     ::_pb::Arena* arena, bool is_message_owned) {
10652   (void)arena;
10653   (void)is_message_owned;
10654   new (&_impl_) Impl_{
10655       decltype(_impl_.uncompressed_size_){0}
10656     , decltype(_impl_.compression_level_){0}
10657     , decltype(_impl_.blob_size_bytes_){0}
10658     , /*decltype(_impl_._cached_size_)*/{}
10659   };
10660 }
10661 
~ChunkedTransferMessage_Start()10662 ChunkedTransferMessage_Start::~ChunkedTransferMessage_Start() {
10663   // @@protoc_insertion_point(destructor:google.internal.federatedml.v2.ChunkedTransferMessage.Start)
10664   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
10665   (void)arena;
10666     return;
10667   }
10668   SharedDtor();
10669 }
10670 
SharedDtor()10671 inline void ChunkedTransferMessage_Start::SharedDtor() {
10672   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
10673 }
10674 
SetCachedSize(int size) const10675 void ChunkedTransferMessage_Start::SetCachedSize(int size) const {
10676   _impl_._cached_size_.Set(size);
10677 }
10678 
Clear()10679 void ChunkedTransferMessage_Start::Clear() {
10680 // @@protoc_insertion_point(message_clear_start:google.internal.federatedml.v2.ChunkedTransferMessage.Start)
10681   ::uint32_t cached_has_bits = 0;
10682   // Prevent compiler warnings about cached_has_bits being unused
10683   (void) cached_has_bits;
10684 
10685   ::memset(&_impl_.uncompressed_size_, 0, static_cast<size_t>(
10686       reinterpret_cast<char*>(&_impl_.blob_size_bytes_) -
10687       reinterpret_cast<char*>(&_impl_.uncompressed_size_)) + sizeof(_impl_.blob_size_bytes_));
10688   _internal_metadata_.Clear<std::string>();
10689 }
10690 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)10691 const char* ChunkedTransferMessage_Start::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
10692 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
10693   while (!ctx->Done(&ptr)) {
10694     ::uint32_t tag;
10695     ptr = ::_pbi::ReadTag(ptr, &tag);
10696     switch (tag >> 3) {
10697       // int32 uncompressed_size = 2;
10698       case 2:
10699         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
10700           _impl_.uncompressed_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
10701           CHK_(ptr);
10702         } else {
10703           goto handle_unusual;
10704         }
10705         continue;
10706       // .google.internal.federatedml.v2.CompressionLevel compression_level = 3;
10707       case 3:
10708         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
10709           ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
10710           CHK_(ptr);
10711           _internal_set_compression_level(static_cast<::google::internal::federatedml::v2::CompressionLevel>(val));
10712         } else {
10713           goto handle_unusual;
10714         }
10715         continue;
10716       // int32 blob_size_bytes = 4;
10717       case 4:
10718         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
10719           _impl_.blob_size_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
10720           CHK_(ptr);
10721         } else {
10722           goto handle_unusual;
10723         }
10724         continue;
10725       default:
10726         goto handle_unusual;
10727     }  // switch
10728   handle_unusual:
10729     if ((tag == 0) || ((tag & 7) == 4)) {
10730       CHK_(ptr);
10731       ctx->SetLastTag(tag);
10732       goto message_done;
10733     }
10734     ptr = UnknownFieldParse(
10735         tag,
10736         _internal_metadata_.mutable_unknown_fields<std::string>(),
10737         ptr, ctx);
10738     CHK_(ptr != nullptr);
10739   }  // while
10740 message_done:
10741   return ptr;
10742 failure:
10743   ptr = nullptr;
10744   goto message_done;
10745 #undef CHK_
10746 }
10747 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const10748 ::uint8_t* ChunkedTransferMessage_Start::_InternalSerialize(
10749     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
10750   // @@protoc_insertion_point(serialize_to_array_start:google.internal.federatedml.v2.ChunkedTransferMessage.Start)
10751   ::uint32_t cached_has_bits = 0;
10752   (void) cached_has_bits;
10753 
10754   // int32 uncompressed_size = 2;
10755   if (this->_internal_uncompressed_size() != 0) {
10756     target = stream->EnsureSpace(target);
10757     target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_uncompressed_size(), target);
10758   }
10759 
10760   // .google.internal.federatedml.v2.CompressionLevel compression_level = 3;
10761   if (this->_internal_compression_level() != 0) {
10762     target = stream->EnsureSpace(target);
10763     target = ::_pbi::WireFormatLite::WriteEnumToArray(
10764       3, this->_internal_compression_level(), target);
10765   }
10766 
10767   // int32 blob_size_bytes = 4;
10768   if (this->_internal_blob_size_bytes() != 0) {
10769     target = stream->EnsureSpace(target);
10770     target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_blob_size_bytes(), target);
10771   }
10772 
10773   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
10774     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
10775         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
10776   }
10777   // @@protoc_insertion_point(serialize_to_array_end:google.internal.federatedml.v2.ChunkedTransferMessage.Start)
10778   return target;
10779 }
10780 
ByteSizeLong() const10781 size_t ChunkedTransferMessage_Start::ByteSizeLong() const {
10782 // @@protoc_insertion_point(message_byte_size_start:google.internal.federatedml.v2.ChunkedTransferMessage.Start)
10783   size_t total_size = 0;
10784 
10785   ::uint32_t cached_has_bits = 0;
10786   // Prevent compiler warnings about cached_has_bits being unused
10787   (void) cached_has_bits;
10788 
10789   // int32 uncompressed_size = 2;
10790   if (this->_internal_uncompressed_size() != 0) {
10791     total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_uncompressed_size());
10792   }
10793 
10794   // .google.internal.federatedml.v2.CompressionLevel compression_level = 3;
10795   if (this->_internal_compression_level() != 0) {
10796     total_size += 1 +
10797       ::_pbi::WireFormatLite::EnumSize(this->_internal_compression_level());
10798   }
10799 
10800   // int32 blob_size_bytes = 4;
10801   if (this->_internal_blob_size_bytes() != 0) {
10802     total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_blob_size_bytes());
10803   }
10804 
10805   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
10806     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
10807   }
10808   int cached_size = ::_pbi::ToCachedSize(total_size);
10809   SetCachedSize(cached_size);
10810   return total_size;
10811 }
10812 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)10813 void ChunkedTransferMessage_Start::CheckTypeAndMergeFrom(
10814     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
10815   MergeFrom(*::_pbi::DownCast<const ChunkedTransferMessage_Start*>(
10816       &from));
10817 }
10818 
MergeFrom(const ChunkedTransferMessage_Start & from)10819 void ChunkedTransferMessage_Start::MergeFrom(const ChunkedTransferMessage_Start& from) {
10820   ChunkedTransferMessage_Start* const _this = this;
10821   // @@protoc_insertion_point(class_specific_merge_from_start:google.internal.federatedml.v2.ChunkedTransferMessage.Start)
10822   GOOGLE_DCHECK_NE(&from, _this);
10823   ::uint32_t cached_has_bits = 0;
10824   (void) cached_has_bits;
10825 
10826   if (from._internal_uncompressed_size() != 0) {
10827     _this->_internal_set_uncompressed_size(from._internal_uncompressed_size());
10828   }
10829   if (from._internal_compression_level() != 0) {
10830     _this->_internal_set_compression_level(from._internal_compression_level());
10831   }
10832   if (from._internal_blob_size_bytes() != 0) {
10833     _this->_internal_set_blob_size_bytes(from._internal_blob_size_bytes());
10834   }
10835   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
10836 }
10837 
CopyFrom(const ChunkedTransferMessage_Start & from)10838 void ChunkedTransferMessage_Start::CopyFrom(const ChunkedTransferMessage_Start& from) {
10839 // @@protoc_insertion_point(class_specific_copy_from_start:google.internal.federatedml.v2.ChunkedTransferMessage.Start)
10840   if (&from == this) return;
10841   Clear();
10842   MergeFrom(from);
10843 }
10844 
IsInitialized() const10845 bool ChunkedTransferMessage_Start::IsInitialized() const {
10846   return true;
10847 }
10848 
InternalSwap(ChunkedTransferMessage_Start * other)10849 void ChunkedTransferMessage_Start::InternalSwap(ChunkedTransferMessage_Start* other) {
10850   using std::swap;
10851   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
10852   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
10853       PROTOBUF_FIELD_OFFSET(ChunkedTransferMessage_Start, _impl_.blob_size_bytes_)
10854       + sizeof(ChunkedTransferMessage_Start::_impl_.blob_size_bytes_)  // NOLINT
10855       - PROTOBUF_FIELD_OFFSET(ChunkedTransferMessage_Start, _impl_.uncompressed_size_)>(
10856           reinterpret_cast<char*>(&_impl_.uncompressed_size_),
10857           reinterpret_cast<char*>(&other->_impl_.uncompressed_size_));
10858 }
10859 
GetTypeName() const10860 std::string ChunkedTransferMessage_Start::GetTypeName() const {
10861   return "google.internal.federatedml.v2.ChunkedTransferMessage.Start";
10862 }
10863 
10864 
10865 // ===================================================================
10866 
10867 class ChunkedTransferMessage_Data::_Internal {
10868  public:
10869 };
10870 
ChunkedTransferMessage_Data(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)10871 ChunkedTransferMessage_Data::ChunkedTransferMessage_Data(::PROTOBUF_NAMESPACE_ID::Arena* arena,
10872                          bool is_message_owned)
10873   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
10874   SharedCtor(arena, is_message_owned);
10875   // @@protoc_insertion_point(arena_constructor:google.internal.federatedml.v2.ChunkedTransferMessage.Data)
10876 }
ChunkedTransferMessage_Data(const ChunkedTransferMessage_Data & from)10877 ChunkedTransferMessage_Data::ChunkedTransferMessage_Data(const ChunkedTransferMessage_Data& from)
10878   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
10879   ChunkedTransferMessage_Data* const _this = this; (void)_this;
10880   new (&_impl_) Impl_{
10881       decltype(_impl_.chunk_bytes_){}
10882     , decltype(_impl_.chunk_index_){}
10883     , /*decltype(_impl_._cached_size_)*/{}};
10884 
10885   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
10886   _impl_.chunk_bytes_.InitDefault();
10887   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
10888     _impl_.chunk_bytes_.Set("", GetArenaForAllocation());
10889   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
10890   if (!from._internal_chunk_bytes().empty()) {
10891     _this->_impl_.chunk_bytes_.Set(from._internal_chunk_bytes(),
10892       _this->GetArenaForAllocation());
10893   }
10894   _this->_impl_.chunk_index_ = from._impl_.chunk_index_;
10895   // @@protoc_insertion_point(copy_constructor:google.internal.federatedml.v2.ChunkedTransferMessage.Data)
10896 }
10897 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)10898 inline void ChunkedTransferMessage_Data::SharedCtor(
10899     ::_pb::Arena* arena, bool is_message_owned) {
10900   (void)arena;
10901   (void)is_message_owned;
10902   new (&_impl_) Impl_{
10903       decltype(_impl_.chunk_bytes_){}
10904     , decltype(_impl_.chunk_index_){0}
10905     , /*decltype(_impl_._cached_size_)*/{}
10906   };
10907   _impl_.chunk_bytes_.InitDefault();
10908   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
10909     _impl_.chunk_bytes_.Set("", GetArenaForAllocation());
10910   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
10911 }
10912 
~ChunkedTransferMessage_Data()10913 ChunkedTransferMessage_Data::~ChunkedTransferMessage_Data() {
10914   // @@protoc_insertion_point(destructor:google.internal.federatedml.v2.ChunkedTransferMessage.Data)
10915   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
10916   (void)arena;
10917     return;
10918   }
10919   SharedDtor();
10920 }
10921 
SharedDtor()10922 inline void ChunkedTransferMessage_Data::SharedDtor() {
10923   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
10924   _impl_.chunk_bytes_.Destroy();
10925 }
10926 
SetCachedSize(int size) const10927 void ChunkedTransferMessage_Data::SetCachedSize(int size) const {
10928   _impl_._cached_size_.Set(size);
10929 }
10930 
Clear()10931 void ChunkedTransferMessage_Data::Clear() {
10932 // @@protoc_insertion_point(message_clear_start:google.internal.federatedml.v2.ChunkedTransferMessage.Data)
10933   ::uint32_t cached_has_bits = 0;
10934   // Prevent compiler warnings about cached_has_bits being unused
10935   (void) cached_has_bits;
10936 
10937   _impl_.chunk_bytes_.ClearToEmpty();
10938   _impl_.chunk_index_ = 0;
10939   _internal_metadata_.Clear<std::string>();
10940 }
10941 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)10942 const char* ChunkedTransferMessage_Data::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
10943 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
10944   while (!ctx->Done(&ptr)) {
10945     ::uint32_t tag;
10946     ptr = ::_pbi::ReadTag(ptr, &tag);
10947     switch (tag >> 3) {
10948       // int32 chunk_index = 1;
10949       case 1:
10950         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
10951           _impl_.chunk_index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
10952           CHK_(ptr);
10953         } else {
10954           goto handle_unusual;
10955         }
10956         continue;
10957       // bytes chunk_bytes = 2;
10958       case 2:
10959         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
10960           auto str = _internal_mutable_chunk_bytes();
10961           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
10962           CHK_(ptr);
10963         } else {
10964           goto handle_unusual;
10965         }
10966         continue;
10967       default:
10968         goto handle_unusual;
10969     }  // switch
10970   handle_unusual:
10971     if ((tag == 0) || ((tag & 7) == 4)) {
10972       CHK_(ptr);
10973       ctx->SetLastTag(tag);
10974       goto message_done;
10975     }
10976     ptr = UnknownFieldParse(
10977         tag,
10978         _internal_metadata_.mutable_unknown_fields<std::string>(),
10979         ptr, ctx);
10980     CHK_(ptr != nullptr);
10981   }  // while
10982 message_done:
10983   return ptr;
10984 failure:
10985   ptr = nullptr;
10986   goto message_done;
10987 #undef CHK_
10988 }
10989 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const10990 ::uint8_t* ChunkedTransferMessage_Data::_InternalSerialize(
10991     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
10992   // @@protoc_insertion_point(serialize_to_array_start:google.internal.federatedml.v2.ChunkedTransferMessage.Data)
10993   ::uint32_t cached_has_bits = 0;
10994   (void) cached_has_bits;
10995 
10996   // int32 chunk_index = 1;
10997   if (this->_internal_chunk_index() != 0) {
10998     target = stream->EnsureSpace(target);
10999     target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_chunk_index(), target);
11000   }
11001 
11002   // bytes chunk_bytes = 2;
11003   if (!this->_internal_chunk_bytes().empty()) {
11004     target = stream->WriteBytesMaybeAliased(
11005         2, this->_internal_chunk_bytes(), target);
11006   }
11007 
11008   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
11009     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
11010         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
11011   }
11012   // @@protoc_insertion_point(serialize_to_array_end:google.internal.federatedml.v2.ChunkedTransferMessage.Data)
11013   return target;
11014 }
11015 
ByteSizeLong() const11016 size_t ChunkedTransferMessage_Data::ByteSizeLong() const {
11017 // @@protoc_insertion_point(message_byte_size_start:google.internal.federatedml.v2.ChunkedTransferMessage.Data)
11018   size_t total_size = 0;
11019 
11020   ::uint32_t cached_has_bits = 0;
11021   // Prevent compiler warnings about cached_has_bits being unused
11022   (void) cached_has_bits;
11023 
11024   // bytes chunk_bytes = 2;
11025   if (!this->_internal_chunk_bytes().empty()) {
11026     total_size += 1 +
11027       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
11028         this->_internal_chunk_bytes());
11029   }
11030 
11031   // int32 chunk_index = 1;
11032   if (this->_internal_chunk_index() != 0) {
11033     total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_chunk_index());
11034   }
11035 
11036   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
11037     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
11038   }
11039   int cached_size = ::_pbi::ToCachedSize(total_size);
11040   SetCachedSize(cached_size);
11041   return total_size;
11042 }
11043 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)11044 void ChunkedTransferMessage_Data::CheckTypeAndMergeFrom(
11045     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
11046   MergeFrom(*::_pbi::DownCast<const ChunkedTransferMessage_Data*>(
11047       &from));
11048 }
11049 
MergeFrom(const ChunkedTransferMessage_Data & from)11050 void ChunkedTransferMessage_Data::MergeFrom(const ChunkedTransferMessage_Data& from) {
11051   ChunkedTransferMessage_Data* const _this = this;
11052   // @@protoc_insertion_point(class_specific_merge_from_start:google.internal.federatedml.v2.ChunkedTransferMessage.Data)
11053   GOOGLE_DCHECK_NE(&from, _this);
11054   ::uint32_t cached_has_bits = 0;
11055   (void) cached_has_bits;
11056 
11057   if (!from._internal_chunk_bytes().empty()) {
11058     _this->_internal_set_chunk_bytes(from._internal_chunk_bytes());
11059   }
11060   if (from._internal_chunk_index() != 0) {
11061     _this->_internal_set_chunk_index(from._internal_chunk_index());
11062   }
11063   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
11064 }
11065 
CopyFrom(const ChunkedTransferMessage_Data & from)11066 void ChunkedTransferMessage_Data::CopyFrom(const ChunkedTransferMessage_Data& from) {
11067 // @@protoc_insertion_point(class_specific_copy_from_start:google.internal.federatedml.v2.ChunkedTransferMessage.Data)
11068   if (&from == this) return;
11069   Clear();
11070   MergeFrom(from);
11071 }
11072 
IsInitialized() const11073 bool ChunkedTransferMessage_Data::IsInitialized() const {
11074   return true;
11075 }
11076 
InternalSwap(ChunkedTransferMessage_Data * other)11077 void ChunkedTransferMessage_Data::InternalSwap(ChunkedTransferMessage_Data* other) {
11078   using std::swap;
11079   auto* lhs_arena = GetArenaForAllocation();
11080   auto* rhs_arena = other->GetArenaForAllocation();
11081   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
11082   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
11083       &_impl_.chunk_bytes_, lhs_arena,
11084       &other->_impl_.chunk_bytes_, rhs_arena
11085   );
11086   swap(_impl_.chunk_index_, other->_impl_.chunk_index_);
11087 }
11088 
GetTypeName() const11089 std::string ChunkedTransferMessage_Data::GetTypeName() const {
11090   return "google.internal.federatedml.v2.ChunkedTransferMessage.Data";
11091 }
11092 
11093 
11094 // ===================================================================
11095 
11096 class ChunkedTransferMessage_Ack::_Internal {
11097  public:
11098 };
11099 
ChunkedTransferMessage_Ack(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)11100 ChunkedTransferMessage_Ack::ChunkedTransferMessage_Ack(::PROTOBUF_NAMESPACE_ID::Arena* arena,
11101                          bool is_message_owned)
11102   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
11103   SharedCtor(arena, is_message_owned);
11104   // @@protoc_insertion_point(arena_constructor:google.internal.federatedml.v2.ChunkedTransferMessage.Ack)
11105 }
ChunkedTransferMessage_Ack(const ChunkedTransferMessage_Ack & from)11106 ChunkedTransferMessage_Ack::ChunkedTransferMessage_Ack(const ChunkedTransferMessage_Ack& from)
11107   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
11108   ChunkedTransferMessage_Ack* const _this = this; (void)_this;
11109   new (&_impl_) Impl_{
11110       decltype(_impl_.chunk_index_){}
11111     , /*decltype(_impl_._cached_size_)*/{}};
11112 
11113   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
11114   _this->_impl_.chunk_index_ = from._impl_.chunk_index_;
11115   // @@protoc_insertion_point(copy_constructor:google.internal.federatedml.v2.ChunkedTransferMessage.Ack)
11116 }
11117 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)11118 inline void ChunkedTransferMessage_Ack::SharedCtor(
11119     ::_pb::Arena* arena, bool is_message_owned) {
11120   (void)arena;
11121   (void)is_message_owned;
11122   new (&_impl_) Impl_{
11123       decltype(_impl_.chunk_index_){0}
11124     , /*decltype(_impl_._cached_size_)*/{}
11125   };
11126 }
11127 
~ChunkedTransferMessage_Ack()11128 ChunkedTransferMessage_Ack::~ChunkedTransferMessage_Ack() {
11129   // @@protoc_insertion_point(destructor:google.internal.federatedml.v2.ChunkedTransferMessage.Ack)
11130   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
11131   (void)arena;
11132     return;
11133   }
11134   SharedDtor();
11135 }
11136 
SharedDtor()11137 inline void ChunkedTransferMessage_Ack::SharedDtor() {
11138   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
11139 }
11140 
SetCachedSize(int size) const11141 void ChunkedTransferMessage_Ack::SetCachedSize(int size) const {
11142   _impl_._cached_size_.Set(size);
11143 }
11144 
Clear()11145 void ChunkedTransferMessage_Ack::Clear() {
11146 // @@protoc_insertion_point(message_clear_start:google.internal.federatedml.v2.ChunkedTransferMessage.Ack)
11147   ::uint32_t cached_has_bits = 0;
11148   // Prevent compiler warnings about cached_has_bits being unused
11149   (void) cached_has_bits;
11150 
11151   _impl_.chunk_index_ = 0;
11152   _internal_metadata_.Clear<std::string>();
11153 }
11154 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)11155 const char* ChunkedTransferMessage_Ack::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
11156 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
11157   while (!ctx->Done(&ptr)) {
11158     ::uint32_t tag;
11159     ptr = ::_pbi::ReadTag(ptr, &tag);
11160     switch (tag >> 3) {
11161       // int32 chunk_index = 1;
11162       case 1:
11163         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
11164           _impl_.chunk_index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
11165           CHK_(ptr);
11166         } else {
11167           goto handle_unusual;
11168         }
11169         continue;
11170       default:
11171         goto handle_unusual;
11172     }  // switch
11173   handle_unusual:
11174     if ((tag == 0) || ((tag & 7) == 4)) {
11175       CHK_(ptr);
11176       ctx->SetLastTag(tag);
11177       goto message_done;
11178     }
11179     ptr = UnknownFieldParse(
11180         tag,
11181         _internal_metadata_.mutable_unknown_fields<std::string>(),
11182         ptr, ctx);
11183     CHK_(ptr != nullptr);
11184   }  // while
11185 message_done:
11186   return ptr;
11187 failure:
11188   ptr = nullptr;
11189   goto message_done;
11190 #undef CHK_
11191 }
11192 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const11193 ::uint8_t* ChunkedTransferMessage_Ack::_InternalSerialize(
11194     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
11195   // @@protoc_insertion_point(serialize_to_array_start:google.internal.federatedml.v2.ChunkedTransferMessage.Ack)
11196   ::uint32_t cached_has_bits = 0;
11197   (void) cached_has_bits;
11198 
11199   // int32 chunk_index = 1;
11200   if (this->_internal_chunk_index() != 0) {
11201     target = stream->EnsureSpace(target);
11202     target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_chunk_index(), target);
11203   }
11204 
11205   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
11206     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
11207         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
11208   }
11209   // @@protoc_insertion_point(serialize_to_array_end:google.internal.federatedml.v2.ChunkedTransferMessage.Ack)
11210   return target;
11211 }
11212 
ByteSizeLong() const11213 size_t ChunkedTransferMessage_Ack::ByteSizeLong() const {
11214 // @@protoc_insertion_point(message_byte_size_start:google.internal.federatedml.v2.ChunkedTransferMessage.Ack)
11215   size_t total_size = 0;
11216 
11217   ::uint32_t cached_has_bits = 0;
11218   // Prevent compiler warnings about cached_has_bits being unused
11219   (void) cached_has_bits;
11220 
11221   // int32 chunk_index = 1;
11222   if (this->_internal_chunk_index() != 0) {
11223     total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_chunk_index());
11224   }
11225 
11226   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
11227     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
11228   }
11229   int cached_size = ::_pbi::ToCachedSize(total_size);
11230   SetCachedSize(cached_size);
11231   return total_size;
11232 }
11233 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)11234 void ChunkedTransferMessage_Ack::CheckTypeAndMergeFrom(
11235     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
11236   MergeFrom(*::_pbi::DownCast<const ChunkedTransferMessage_Ack*>(
11237       &from));
11238 }
11239 
MergeFrom(const ChunkedTransferMessage_Ack & from)11240 void ChunkedTransferMessage_Ack::MergeFrom(const ChunkedTransferMessage_Ack& from) {
11241   ChunkedTransferMessage_Ack* const _this = this;
11242   // @@protoc_insertion_point(class_specific_merge_from_start:google.internal.federatedml.v2.ChunkedTransferMessage.Ack)
11243   GOOGLE_DCHECK_NE(&from, _this);
11244   ::uint32_t cached_has_bits = 0;
11245   (void) cached_has_bits;
11246 
11247   if (from._internal_chunk_index() != 0) {
11248     _this->_internal_set_chunk_index(from._internal_chunk_index());
11249   }
11250   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
11251 }
11252 
CopyFrom(const ChunkedTransferMessage_Ack & from)11253 void ChunkedTransferMessage_Ack::CopyFrom(const ChunkedTransferMessage_Ack& from) {
11254 // @@protoc_insertion_point(class_specific_copy_from_start:google.internal.federatedml.v2.ChunkedTransferMessage.Ack)
11255   if (&from == this) return;
11256   Clear();
11257   MergeFrom(from);
11258 }
11259 
IsInitialized() const11260 bool ChunkedTransferMessage_Ack::IsInitialized() const {
11261   return true;
11262 }
11263 
InternalSwap(ChunkedTransferMessage_Ack * other)11264 void ChunkedTransferMessage_Ack::InternalSwap(ChunkedTransferMessage_Ack* other) {
11265   using std::swap;
11266   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
11267   swap(_impl_.chunk_index_, other->_impl_.chunk_index_);
11268 }
11269 
GetTypeName() const11270 std::string ChunkedTransferMessage_Ack::GetTypeName() const {
11271   return "google.internal.federatedml.v2.ChunkedTransferMessage.Ack";
11272 }
11273 
11274 
11275 // ===================================================================
11276 
11277 class ChunkedTransferMessage_End::_Internal {
11278  public:
11279 };
11280 
ChunkedTransferMessage_End(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)11281 ChunkedTransferMessage_End::ChunkedTransferMessage_End(::PROTOBUF_NAMESPACE_ID::Arena* arena,
11282                          bool is_message_owned)
11283   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
11284   SharedCtor(arena, is_message_owned);
11285   // @@protoc_insertion_point(arena_constructor:google.internal.federatedml.v2.ChunkedTransferMessage.End)
11286 }
ChunkedTransferMessage_End(const ChunkedTransferMessage_End & from)11287 ChunkedTransferMessage_End::ChunkedTransferMessage_End(const ChunkedTransferMessage_End& from)
11288   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
11289   ChunkedTransferMessage_End* const _this = this; (void)_this;
11290   new (&_impl_) Impl_{
11291       decltype(_impl_.chunk_count_){}
11292     , /*decltype(_impl_._cached_size_)*/{}};
11293 
11294   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
11295   _this->_impl_.chunk_count_ = from._impl_.chunk_count_;
11296   // @@protoc_insertion_point(copy_constructor:google.internal.federatedml.v2.ChunkedTransferMessage.End)
11297 }
11298 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)11299 inline void ChunkedTransferMessage_End::SharedCtor(
11300     ::_pb::Arena* arena, bool is_message_owned) {
11301   (void)arena;
11302   (void)is_message_owned;
11303   new (&_impl_) Impl_{
11304       decltype(_impl_.chunk_count_){0}
11305     , /*decltype(_impl_._cached_size_)*/{}
11306   };
11307 }
11308 
~ChunkedTransferMessage_End()11309 ChunkedTransferMessage_End::~ChunkedTransferMessage_End() {
11310   // @@protoc_insertion_point(destructor:google.internal.federatedml.v2.ChunkedTransferMessage.End)
11311   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
11312   (void)arena;
11313     return;
11314   }
11315   SharedDtor();
11316 }
11317 
SharedDtor()11318 inline void ChunkedTransferMessage_End::SharedDtor() {
11319   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
11320 }
11321 
SetCachedSize(int size) const11322 void ChunkedTransferMessage_End::SetCachedSize(int size) const {
11323   _impl_._cached_size_.Set(size);
11324 }
11325 
Clear()11326 void ChunkedTransferMessage_End::Clear() {
11327 // @@protoc_insertion_point(message_clear_start:google.internal.federatedml.v2.ChunkedTransferMessage.End)
11328   ::uint32_t cached_has_bits = 0;
11329   // Prevent compiler warnings about cached_has_bits being unused
11330   (void) cached_has_bits;
11331 
11332   _impl_.chunk_count_ = 0;
11333   _internal_metadata_.Clear<std::string>();
11334 }
11335 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)11336 const char* ChunkedTransferMessage_End::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
11337 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
11338   while (!ctx->Done(&ptr)) {
11339     ::uint32_t tag;
11340     ptr = ::_pbi::ReadTag(ptr, &tag);
11341     switch (tag >> 3) {
11342       // int32 chunk_count = 1;
11343       case 1:
11344         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
11345           _impl_.chunk_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
11346           CHK_(ptr);
11347         } else {
11348           goto handle_unusual;
11349         }
11350         continue;
11351       default:
11352         goto handle_unusual;
11353     }  // switch
11354   handle_unusual:
11355     if ((tag == 0) || ((tag & 7) == 4)) {
11356       CHK_(ptr);
11357       ctx->SetLastTag(tag);
11358       goto message_done;
11359     }
11360     ptr = UnknownFieldParse(
11361         tag,
11362         _internal_metadata_.mutable_unknown_fields<std::string>(),
11363         ptr, ctx);
11364     CHK_(ptr != nullptr);
11365   }  // while
11366 message_done:
11367   return ptr;
11368 failure:
11369   ptr = nullptr;
11370   goto message_done;
11371 #undef CHK_
11372 }
11373 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const11374 ::uint8_t* ChunkedTransferMessage_End::_InternalSerialize(
11375     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
11376   // @@protoc_insertion_point(serialize_to_array_start:google.internal.federatedml.v2.ChunkedTransferMessage.End)
11377   ::uint32_t cached_has_bits = 0;
11378   (void) cached_has_bits;
11379 
11380   // int32 chunk_count = 1;
11381   if (this->_internal_chunk_count() != 0) {
11382     target = stream->EnsureSpace(target);
11383     target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_chunk_count(), target);
11384   }
11385 
11386   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
11387     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
11388         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
11389   }
11390   // @@protoc_insertion_point(serialize_to_array_end:google.internal.federatedml.v2.ChunkedTransferMessage.End)
11391   return target;
11392 }
11393 
ByteSizeLong() const11394 size_t ChunkedTransferMessage_End::ByteSizeLong() const {
11395 // @@protoc_insertion_point(message_byte_size_start:google.internal.federatedml.v2.ChunkedTransferMessage.End)
11396   size_t total_size = 0;
11397 
11398   ::uint32_t cached_has_bits = 0;
11399   // Prevent compiler warnings about cached_has_bits being unused
11400   (void) cached_has_bits;
11401 
11402   // int32 chunk_count = 1;
11403   if (this->_internal_chunk_count() != 0) {
11404     total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_chunk_count());
11405   }
11406 
11407   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
11408     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
11409   }
11410   int cached_size = ::_pbi::ToCachedSize(total_size);
11411   SetCachedSize(cached_size);
11412   return total_size;
11413 }
11414 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)11415 void ChunkedTransferMessage_End::CheckTypeAndMergeFrom(
11416     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
11417   MergeFrom(*::_pbi::DownCast<const ChunkedTransferMessage_End*>(
11418       &from));
11419 }
11420 
MergeFrom(const ChunkedTransferMessage_End & from)11421 void ChunkedTransferMessage_End::MergeFrom(const ChunkedTransferMessage_End& from) {
11422   ChunkedTransferMessage_End* const _this = this;
11423   // @@protoc_insertion_point(class_specific_merge_from_start:google.internal.federatedml.v2.ChunkedTransferMessage.End)
11424   GOOGLE_DCHECK_NE(&from, _this);
11425   ::uint32_t cached_has_bits = 0;
11426   (void) cached_has_bits;
11427 
11428   if (from._internal_chunk_count() != 0) {
11429     _this->_internal_set_chunk_count(from._internal_chunk_count());
11430   }
11431   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
11432 }
11433 
CopyFrom(const ChunkedTransferMessage_End & from)11434 void ChunkedTransferMessage_End::CopyFrom(const ChunkedTransferMessage_End& from) {
11435 // @@protoc_insertion_point(class_specific_copy_from_start:google.internal.federatedml.v2.ChunkedTransferMessage.End)
11436   if (&from == this) return;
11437   Clear();
11438   MergeFrom(from);
11439 }
11440 
IsInitialized() const11441 bool ChunkedTransferMessage_End::IsInitialized() const {
11442   return true;
11443 }
11444 
InternalSwap(ChunkedTransferMessage_End * other)11445 void ChunkedTransferMessage_End::InternalSwap(ChunkedTransferMessage_End* other) {
11446   using std::swap;
11447   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
11448   swap(_impl_.chunk_count_, other->_impl_.chunk_count_);
11449 }
11450 
GetTypeName() const11451 std::string ChunkedTransferMessage_End::GetTypeName() const {
11452   return "google.internal.federatedml.v2.ChunkedTransferMessage.End";
11453 }
11454 
11455 
11456 // ===================================================================
11457 
11458 class ChunkedTransferMessage::_Internal {
11459  public:
11460   static const ::google::internal::federatedml::v2::ChunkedTransferMessage_Start& start(const ChunkedTransferMessage* msg);
11461   static const ::google::internal::federatedml::v2::ChunkedTransferMessage_Data& data(const ChunkedTransferMessage* msg);
11462   static const ::google::internal::federatedml::v2::ChunkedTransferMessage_Ack& ack(const ChunkedTransferMessage* msg);
11463   static const ::google::internal::federatedml::v2::ChunkedTransferMessage_End& end(const ChunkedTransferMessage* msg);
11464 };
11465 
11466 const ::google::internal::federatedml::v2::ChunkedTransferMessage_Start&
start(const ChunkedTransferMessage * msg)11467 ChunkedTransferMessage::_Internal::start(const ChunkedTransferMessage* msg) {
11468   return *msg->_impl_.kind_.start_;
11469 }
11470 const ::google::internal::federatedml::v2::ChunkedTransferMessage_Data&
data(const ChunkedTransferMessage * msg)11471 ChunkedTransferMessage::_Internal::data(const ChunkedTransferMessage* msg) {
11472   return *msg->_impl_.kind_.data_;
11473 }
11474 const ::google::internal::federatedml::v2::ChunkedTransferMessage_Ack&
ack(const ChunkedTransferMessage * msg)11475 ChunkedTransferMessage::_Internal::ack(const ChunkedTransferMessage* msg) {
11476   return *msg->_impl_.kind_.ack_;
11477 }
11478 const ::google::internal::federatedml::v2::ChunkedTransferMessage_End&
end(const ChunkedTransferMessage * msg)11479 ChunkedTransferMessage::_Internal::end(const ChunkedTransferMessage* msg) {
11480   return *msg->_impl_.kind_.end_;
11481 }
set_allocated_start(::google::internal::federatedml::v2::ChunkedTransferMessage_Start * start)11482 void ChunkedTransferMessage::set_allocated_start(::google::internal::federatedml::v2::ChunkedTransferMessage_Start* start) {
11483   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
11484   clear_kind();
11485   if (start) {
11486     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
11487       ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(start);
11488     if (message_arena != submessage_arena) {
11489       start = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
11490           message_arena, start, submessage_arena);
11491     }
11492     set_has_start();
11493     _impl_.kind_.start_ = start;
11494   }
11495   // @@protoc_insertion_point(field_set_allocated:google.internal.federatedml.v2.ChunkedTransferMessage.start)
11496 }
set_allocated_data(::google::internal::federatedml::v2::ChunkedTransferMessage_Data * data)11497 void ChunkedTransferMessage::set_allocated_data(::google::internal::federatedml::v2::ChunkedTransferMessage_Data* data) {
11498   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
11499   clear_kind();
11500   if (data) {
11501     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
11502       ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(data);
11503     if (message_arena != submessage_arena) {
11504       data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
11505           message_arena, data, submessage_arena);
11506     }
11507     set_has_data();
11508     _impl_.kind_.data_ = data;
11509   }
11510   // @@protoc_insertion_point(field_set_allocated:google.internal.federatedml.v2.ChunkedTransferMessage.data)
11511 }
set_allocated_ack(::google::internal::federatedml::v2::ChunkedTransferMessage_Ack * ack)11512 void ChunkedTransferMessage::set_allocated_ack(::google::internal::federatedml::v2::ChunkedTransferMessage_Ack* ack) {
11513   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
11514   clear_kind();
11515   if (ack) {
11516     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
11517       ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(ack);
11518     if (message_arena != submessage_arena) {
11519       ack = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
11520           message_arena, ack, submessage_arena);
11521     }
11522     set_has_ack();
11523     _impl_.kind_.ack_ = ack;
11524   }
11525   // @@protoc_insertion_point(field_set_allocated:google.internal.federatedml.v2.ChunkedTransferMessage.ack)
11526 }
set_allocated_end(::google::internal::federatedml::v2::ChunkedTransferMessage_End * end)11527 void ChunkedTransferMessage::set_allocated_end(::google::internal::federatedml::v2::ChunkedTransferMessage_End* end) {
11528   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
11529   clear_kind();
11530   if (end) {
11531     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
11532       ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(end);
11533     if (message_arena != submessage_arena) {
11534       end = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
11535           message_arena, end, submessage_arena);
11536     }
11537     set_has_end();
11538     _impl_.kind_.end_ = end;
11539   }
11540   // @@protoc_insertion_point(field_set_allocated:google.internal.federatedml.v2.ChunkedTransferMessage.end)
11541 }
ChunkedTransferMessage(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)11542 ChunkedTransferMessage::ChunkedTransferMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena,
11543                          bool is_message_owned)
11544   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
11545   SharedCtor(arena, is_message_owned);
11546   // @@protoc_insertion_point(arena_constructor:google.internal.federatedml.v2.ChunkedTransferMessage)
11547 }
ChunkedTransferMessage(const ChunkedTransferMessage & from)11548 ChunkedTransferMessage::ChunkedTransferMessage(const ChunkedTransferMessage& from)
11549   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
11550   ChunkedTransferMessage* const _this = this; (void)_this;
11551   new (&_impl_) Impl_{
11552       decltype(_impl_.kind_){}
11553     , /*decltype(_impl_._cached_size_)*/{}
11554     , /*decltype(_impl_._oneof_case_)*/{}};
11555 
11556   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
11557   clear_has_kind();
11558   switch (from.kind_case()) {
11559     case kStart: {
11560       _this->_internal_mutable_start()->::google::internal::federatedml::v2::ChunkedTransferMessage_Start::MergeFrom(
11561           from._internal_start());
11562       break;
11563     }
11564     case kData: {
11565       _this->_internal_mutable_data()->::google::internal::federatedml::v2::ChunkedTransferMessage_Data::MergeFrom(
11566           from._internal_data());
11567       break;
11568     }
11569     case kAck: {
11570       _this->_internal_mutable_ack()->::google::internal::federatedml::v2::ChunkedTransferMessage_Ack::MergeFrom(
11571           from._internal_ack());
11572       break;
11573     }
11574     case kEnd: {
11575       _this->_internal_mutable_end()->::google::internal::federatedml::v2::ChunkedTransferMessage_End::MergeFrom(
11576           from._internal_end());
11577       break;
11578     }
11579     case KIND_NOT_SET: {
11580       break;
11581     }
11582   }
11583   // @@protoc_insertion_point(copy_constructor:google.internal.federatedml.v2.ChunkedTransferMessage)
11584 }
11585 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)11586 inline void ChunkedTransferMessage::SharedCtor(
11587     ::_pb::Arena* arena, bool is_message_owned) {
11588   (void)arena;
11589   (void)is_message_owned;
11590   new (&_impl_) Impl_{
11591       decltype(_impl_.kind_){}
11592     , /*decltype(_impl_._cached_size_)*/{}
11593     , /*decltype(_impl_._oneof_case_)*/{}
11594   };
11595   clear_has_kind();
11596 }
11597 
~ChunkedTransferMessage()11598 ChunkedTransferMessage::~ChunkedTransferMessage() {
11599   // @@protoc_insertion_point(destructor:google.internal.federatedml.v2.ChunkedTransferMessage)
11600   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
11601   (void)arena;
11602     return;
11603   }
11604   SharedDtor();
11605 }
11606 
SharedDtor()11607 inline void ChunkedTransferMessage::SharedDtor() {
11608   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
11609   if (has_kind()) {
11610     clear_kind();
11611   }
11612 }
11613 
SetCachedSize(int size) const11614 void ChunkedTransferMessage::SetCachedSize(int size) const {
11615   _impl_._cached_size_.Set(size);
11616 }
11617 
clear_kind()11618 void ChunkedTransferMessage::clear_kind() {
11619 // @@protoc_insertion_point(one_of_clear_start:google.internal.federatedml.v2.ChunkedTransferMessage)
11620   switch (kind_case()) {
11621     case kStart: {
11622       if (GetArenaForAllocation() == nullptr) {
11623         delete _impl_.kind_.start_;
11624       }
11625       break;
11626     }
11627     case kData: {
11628       if (GetArenaForAllocation() == nullptr) {
11629         delete _impl_.kind_.data_;
11630       }
11631       break;
11632     }
11633     case kAck: {
11634       if (GetArenaForAllocation() == nullptr) {
11635         delete _impl_.kind_.ack_;
11636       }
11637       break;
11638     }
11639     case kEnd: {
11640       if (GetArenaForAllocation() == nullptr) {
11641         delete _impl_.kind_.end_;
11642       }
11643       break;
11644     }
11645     case KIND_NOT_SET: {
11646       break;
11647     }
11648   }
11649   _impl_._oneof_case_[0] = KIND_NOT_SET;
11650 }
11651 
11652 
Clear()11653 void ChunkedTransferMessage::Clear() {
11654 // @@protoc_insertion_point(message_clear_start:google.internal.federatedml.v2.ChunkedTransferMessage)
11655   ::uint32_t cached_has_bits = 0;
11656   // Prevent compiler warnings about cached_has_bits being unused
11657   (void) cached_has_bits;
11658 
11659   clear_kind();
11660   _internal_metadata_.Clear<std::string>();
11661 }
11662 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)11663 const char* ChunkedTransferMessage::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
11664 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
11665   while (!ctx->Done(&ptr)) {
11666     ::uint32_t tag;
11667     ptr = ::_pbi::ReadTag(ptr, &tag);
11668     switch (tag >> 3) {
11669       // .google.internal.federatedml.v2.ChunkedTransferMessage.Start start = 1;
11670       case 1:
11671         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
11672           ptr = ctx->ParseMessage(_internal_mutable_start(), ptr);
11673           CHK_(ptr);
11674         } else {
11675           goto handle_unusual;
11676         }
11677         continue;
11678       // .google.internal.federatedml.v2.ChunkedTransferMessage.Data data = 2;
11679       case 2:
11680         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
11681           ptr = ctx->ParseMessage(_internal_mutable_data(), ptr);
11682           CHK_(ptr);
11683         } else {
11684           goto handle_unusual;
11685         }
11686         continue;
11687       // .google.internal.federatedml.v2.ChunkedTransferMessage.Ack ack = 3;
11688       case 3:
11689         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
11690           ptr = ctx->ParseMessage(_internal_mutable_ack(), ptr);
11691           CHK_(ptr);
11692         } else {
11693           goto handle_unusual;
11694         }
11695         continue;
11696       // .google.internal.federatedml.v2.ChunkedTransferMessage.End end = 4;
11697       case 4:
11698         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
11699           ptr = ctx->ParseMessage(_internal_mutable_end(), ptr);
11700           CHK_(ptr);
11701         } else {
11702           goto handle_unusual;
11703         }
11704         continue;
11705       default:
11706         goto handle_unusual;
11707     }  // switch
11708   handle_unusual:
11709     if ((tag == 0) || ((tag & 7) == 4)) {
11710       CHK_(ptr);
11711       ctx->SetLastTag(tag);
11712       goto message_done;
11713     }
11714     ptr = UnknownFieldParse(
11715         tag,
11716         _internal_metadata_.mutable_unknown_fields<std::string>(),
11717         ptr, ctx);
11718     CHK_(ptr != nullptr);
11719   }  // while
11720 message_done:
11721   return ptr;
11722 failure:
11723   ptr = nullptr;
11724   goto message_done;
11725 #undef CHK_
11726 }
11727 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const11728 ::uint8_t* ChunkedTransferMessage::_InternalSerialize(
11729     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
11730   // @@protoc_insertion_point(serialize_to_array_start:google.internal.federatedml.v2.ChunkedTransferMessage)
11731   ::uint32_t cached_has_bits = 0;
11732   (void) cached_has_bits;
11733 
11734   // .google.internal.federatedml.v2.ChunkedTransferMessage.Start start = 1;
11735   if (_internal_has_start()) {
11736     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
11737       InternalWriteMessage(1, _Internal::start(this),
11738         _Internal::start(this).GetCachedSize(), target, stream);
11739   }
11740 
11741   // .google.internal.federatedml.v2.ChunkedTransferMessage.Data data = 2;
11742   if (_internal_has_data()) {
11743     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
11744       InternalWriteMessage(2, _Internal::data(this),
11745         _Internal::data(this).GetCachedSize(), target, stream);
11746   }
11747 
11748   // .google.internal.federatedml.v2.ChunkedTransferMessage.Ack ack = 3;
11749   if (_internal_has_ack()) {
11750     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
11751       InternalWriteMessage(3, _Internal::ack(this),
11752         _Internal::ack(this).GetCachedSize(), target, stream);
11753   }
11754 
11755   // .google.internal.federatedml.v2.ChunkedTransferMessage.End end = 4;
11756   if (_internal_has_end()) {
11757     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
11758       InternalWriteMessage(4, _Internal::end(this),
11759         _Internal::end(this).GetCachedSize(), target, stream);
11760   }
11761 
11762   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
11763     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
11764         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
11765   }
11766   // @@protoc_insertion_point(serialize_to_array_end:google.internal.federatedml.v2.ChunkedTransferMessage)
11767   return target;
11768 }
11769 
ByteSizeLong() const11770 size_t ChunkedTransferMessage::ByteSizeLong() const {
11771 // @@protoc_insertion_point(message_byte_size_start:google.internal.federatedml.v2.ChunkedTransferMessage)
11772   size_t total_size = 0;
11773 
11774   switch (kind_case()) {
11775     // .google.internal.federatedml.v2.ChunkedTransferMessage.Start start = 1;
11776     case kStart: {
11777       total_size += 1 +
11778         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
11779           *_impl_.kind_.start_);
11780       break;
11781     }
11782     // .google.internal.federatedml.v2.ChunkedTransferMessage.Data data = 2;
11783     case kData: {
11784       total_size += 1 +
11785         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
11786           *_impl_.kind_.data_);
11787       break;
11788     }
11789     // .google.internal.federatedml.v2.ChunkedTransferMessage.Ack ack = 3;
11790     case kAck: {
11791       total_size += 1 +
11792         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
11793           *_impl_.kind_.ack_);
11794       break;
11795     }
11796     // .google.internal.federatedml.v2.ChunkedTransferMessage.End end = 4;
11797     case kEnd: {
11798       total_size += 1 +
11799         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
11800           *_impl_.kind_.end_);
11801       break;
11802     }
11803     case KIND_NOT_SET: {
11804       break;
11805     }
11806   }
11807   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
11808     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
11809   }
11810   int cached_size = ::_pbi::ToCachedSize(total_size);
11811   SetCachedSize(cached_size);
11812   return total_size;
11813 }
11814 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)11815 void ChunkedTransferMessage::CheckTypeAndMergeFrom(
11816     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
11817   MergeFrom(*::_pbi::DownCast<const ChunkedTransferMessage*>(
11818       &from));
11819 }
11820 
MergeFrom(const ChunkedTransferMessage & from)11821 void ChunkedTransferMessage::MergeFrom(const ChunkedTransferMessage& from) {
11822   ChunkedTransferMessage* const _this = this;
11823   // @@protoc_insertion_point(class_specific_merge_from_start:google.internal.federatedml.v2.ChunkedTransferMessage)
11824   GOOGLE_DCHECK_NE(&from, _this);
11825   ::uint32_t cached_has_bits = 0;
11826   (void) cached_has_bits;
11827 
11828   switch (from.kind_case()) {
11829     case kStart: {
11830       _this->_internal_mutable_start()->::google::internal::federatedml::v2::ChunkedTransferMessage_Start::MergeFrom(
11831           from._internal_start());
11832       break;
11833     }
11834     case kData: {
11835       _this->_internal_mutable_data()->::google::internal::federatedml::v2::ChunkedTransferMessage_Data::MergeFrom(
11836           from._internal_data());
11837       break;
11838     }
11839     case kAck: {
11840       _this->_internal_mutable_ack()->::google::internal::federatedml::v2::ChunkedTransferMessage_Ack::MergeFrom(
11841           from._internal_ack());
11842       break;
11843     }
11844     case kEnd: {
11845       _this->_internal_mutable_end()->::google::internal::federatedml::v2::ChunkedTransferMessage_End::MergeFrom(
11846           from._internal_end());
11847       break;
11848     }
11849     case KIND_NOT_SET: {
11850       break;
11851     }
11852   }
11853   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
11854 }
11855 
CopyFrom(const ChunkedTransferMessage & from)11856 void ChunkedTransferMessage::CopyFrom(const ChunkedTransferMessage& from) {
11857 // @@protoc_insertion_point(class_specific_copy_from_start:google.internal.federatedml.v2.ChunkedTransferMessage)
11858   if (&from == this) return;
11859   Clear();
11860   MergeFrom(from);
11861 }
11862 
IsInitialized() const11863 bool ChunkedTransferMessage::IsInitialized() const {
11864   return true;
11865 }
11866 
InternalSwap(ChunkedTransferMessage * other)11867 void ChunkedTransferMessage::InternalSwap(ChunkedTransferMessage* other) {
11868   using std::swap;
11869   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
11870   swap(_impl_.kind_, other->_impl_.kind_);
11871   swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
11872 }
11873 
GetTypeName() const11874 std::string ChunkedTransferMessage::GetTypeName() const {
11875   return "google.internal.federatedml.v2.ChunkedTransferMessage";
11876 }
11877 
11878 
11879 // @@protoc_insertion_point(namespace_scope)
11880 }  // namespace v2
11881 }  // namespace federatedml
11882 }  // namespace internal
11883 }  // namespace google
11884 PROTOBUF_NAMESPACE_OPEN
11885 template<> PROTOBUF_NOINLINE ::google::internal::federatedml::v2::ClientStreamMessage*
CreateMaybeMessage(Arena * arena)11886 Arena::CreateMaybeMessage< ::google::internal::federatedml::v2::ClientStreamMessage >(Arena* arena) {
11887   return Arena::CreateMessageInternal< ::google::internal::federatedml::v2::ClientStreamMessage >(arena);
11888 }
11889 template<> PROTOBUF_NOINLINE ::google::internal::federatedml::v2::ServerStreamMessage*
CreateMaybeMessage(Arena * arena)11890 Arena::CreateMaybeMessage< ::google::internal::federatedml::v2::ServerStreamMessage >(Arena* arena) {
11891   return Arena::CreateMessageInternal< ::google::internal::federatedml::v2::ServerStreamMessage >(arena);
11892 }
11893 template<> PROTOBUF_NOINLINE ::google::internal::federatedml::v2::CheckinRequest*
CreateMaybeMessage(Arena * arena)11894 Arena::CreateMaybeMessage< ::google::internal::federatedml::v2::CheckinRequest >(Arena* arena) {
11895   return Arena::CreateMessageInternal< ::google::internal::federatedml::v2::CheckinRequest >(arena);
11896 }
11897 template<> PROTOBUF_NOINLINE ::google::internal::federatedml::v2::TaskEligibilityInfo*
CreateMaybeMessage(Arena * arena)11898 Arena::CreateMaybeMessage< ::google::internal::federatedml::v2::TaskEligibilityInfo >(Arena* arena) {
11899   return Arena::CreateMessageInternal< ::google::internal::federatedml::v2::TaskEligibilityInfo >(arena);
11900 }
11901 template<> PROTOBUF_NOINLINE ::google::internal::federatedml::v2::TaskWeight*
CreateMaybeMessage(Arena * arena)11902 Arena::CreateMaybeMessage< ::google::internal::federatedml::v2::TaskWeight >(Arena* arena) {
11903   return Arena::CreateMessageInternal< ::google::internal::federatedml::v2::TaskWeight >(arena);
11904 }
11905 template<> PROTOBUF_NOINLINE ::google::internal::federatedml::v2::CheckinResponse*
CreateMaybeMessage(Arena * arena)11906 Arena::CreateMaybeMessage< ::google::internal::federatedml::v2::CheckinResponse >(Arena* arena) {
11907   return Arena::CreateMessageInternal< ::google::internal::federatedml::v2::CheckinResponse >(arena);
11908 }
11909 template<> PROTOBUF_NOINLINE ::google::internal::federatedml::v2::CheckinRequestAck*
CreateMaybeMessage(Arena * arena)11910 Arena::CreateMaybeMessage< ::google::internal::federatedml::v2::CheckinRequestAck >(Arena* arena) {
11911   return Arena::CreateMessageInternal< ::google::internal::federatedml::v2::CheckinRequestAck >(arena);
11912 }
11913 template<> PROTOBUF_NOINLINE ::google::internal::federatedml::v2::EligibilityEvalCheckinRequest*
CreateMaybeMessage(Arena * arena)11914 Arena::CreateMaybeMessage< ::google::internal::federatedml::v2::EligibilityEvalCheckinRequest >(Arena* arena) {
11915   return Arena::CreateMessageInternal< ::google::internal::federatedml::v2::EligibilityEvalCheckinRequest >(arena);
11916 }
11917 template<> PROTOBUF_NOINLINE ::google::internal::federatedml::v2::EligibilityEvalTaskCapabilities*
CreateMaybeMessage(Arena * arena)11918 Arena::CreateMaybeMessage< ::google::internal::federatedml::v2::EligibilityEvalTaskCapabilities >(Arena* arena) {
11919   return Arena::CreateMessageInternal< ::google::internal::federatedml::v2::EligibilityEvalTaskCapabilities >(arena);
11920 }
11921 template<> PROTOBUF_NOINLINE ::google::internal::federatedml::v2::EligibilityEvalCheckinResponse*
CreateMaybeMessage(Arena * arena)11922 Arena::CreateMaybeMessage< ::google::internal::federatedml::v2::EligibilityEvalCheckinResponse >(Arena* arena) {
11923   return Arena::CreateMessageInternal< ::google::internal::federatedml::v2::EligibilityEvalCheckinResponse >(arena);
11924 }
11925 template<> PROTOBUF_NOINLINE ::google::internal::federatedml::v2::EligibilityEvalPayload*
CreateMaybeMessage(Arena * arena)11926 Arena::CreateMaybeMessage< ::google::internal::federatedml::v2::EligibilityEvalPayload >(Arena* arena) {
11927   return Arena::CreateMessageInternal< ::google::internal::federatedml::v2::EligibilityEvalPayload >(arena);
11928 }
11929 template<> PROTOBUF_NOINLINE ::google::internal::federatedml::v2::NoEligibilityEvalConfigured*
CreateMaybeMessage(Arena * arena)11930 Arena::CreateMaybeMessage< ::google::internal::federatedml::v2::NoEligibilityEvalConfigured >(Arena* arena) {
11931   return Arena::CreateMessageInternal< ::google::internal::federatedml::v2::NoEligibilityEvalConfigured >(arena);
11932 }
11933 template<> PROTOBUF_NOINLINE ::google::internal::federatedml::v2::SideChannelExecutionInfo_SecureAggregandExecutionInfo*
CreateMaybeMessage(Arena * arena)11934 Arena::CreateMaybeMessage< ::google::internal::federatedml::v2::SideChannelExecutionInfo_SecureAggregandExecutionInfo >(Arena* arena) {
11935   return Arena::CreateMessageInternal< ::google::internal::federatedml::v2::SideChannelExecutionInfo_SecureAggregandExecutionInfo >(arena);
11936 }
11937 template<> PROTOBUF_NOINLINE ::google::internal::federatedml::v2::SideChannelExecutionInfo*
CreateMaybeMessage(Arena * arena)11938 Arena::CreateMaybeMessage< ::google::internal::federatedml::v2::SideChannelExecutionInfo >(Arena* arena) {
11939   return Arena::CreateMessageInternal< ::google::internal::federatedml::v2::SideChannelExecutionInfo >(arena);
11940 }
11941 template<> PROTOBUF_NOINLINE ::google::internal::federatedml::v2::SideChannelProtocolOptionsRequest_SecureAggregation*
CreateMaybeMessage(Arena * arena)11942 Arena::CreateMaybeMessage< ::google::internal::federatedml::v2::SideChannelProtocolOptionsRequest_SecureAggregation >(Arena* arena) {
11943   return Arena::CreateMessageInternal< ::google::internal::federatedml::v2::SideChannelProtocolOptionsRequest_SecureAggregation >(arena);
11944 }
11945 template<> PROTOBUF_NOINLINE ::google::internal::federatedml::v2::SideChannelProtocolOptionsRequest*
CreateMaybeMessage(Arena * arena)11946 Arena::CreateMaybeMessage< ::google::internal::federatedml::v2::SideChannelProtocolOptionsRequest >(Arena* arena) {
11947   return Arena::CreateMessageInternal< ::google::internal::federatedml::v2::SideChannelProtocolOptionsRequest >(arena);
11948 }
11949 template<> PROTOBUF_NOINLINE ::google::internal::federatedml::v2::SideChannelProtocolOptionsResponse_SecureAggregation*
CreateMaybeMessage(Arena * arena)11950 Arena::CreateMaybeMessage< ::google::internal::federatedml::v2::SideChannelProtocolOptionsResponse_SecureAggregation >(Arena* arena) {
11951   return Arena::CreateMessageInternal< ::google::internal::federatedml::v2::SideChannelProtocolOptionsResponse_SecureAggregation >(arena);
11952 }
11953 template<> PROTOBUF_NOINLINE ::google::internal::federatedml::v2::SideChannelProtocolOptionsResponse*
CreateMaybeMessage(Arena * arena)11954 Arena::CreateMaybeMessage< ::google::internal::federatedml::v2::SideChannelProtocolOptionsResponse >(Arena* arena) {
11955   return Arena::CreateMessageInternal< ::google::internal::federatedml::v2::SideChannelProtocolOptionsResponse >(arena);
11956 }
11957 template<> PROTOBUF_NOINLINE ::google::internal::federatedml::v2::SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo*
CreateMaybeMessage(Arena * arena)11958 Arena::CreateMaybeMessage< ::google::internal::federatedml::v2::SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo >(Arena* arena) {
11959   return Arena::CreateMessageInternal< ::google::internal::federatedml::v2::SideChannelProtocolExecutionInfo_SecureAggregationProtocolExecutionInfo >(arena);
11960 }
11961 template<> PROTOBUF_NOINLINE ::google::internal::federatedml::v2::SideChannelProtocolExecutionInfo*
CreateMaybeMessage(Arena * arena)11962 Arena::CreateMaybeMessage< ::google::internal::federatedml::v2::SideChannelProtocolExecutionInfo >(Arena* arena) {
11963   return Arena::CreateMessageInternal< ::google::internal::federatedml::v2::SideChannelProtocolExecutionInfo >(arena);
11964 }
11965 template<> PROTOBUF_NOINLINE ::google::internal::federatedml::v2::UriResource*
CreateMaybeMessage(Arena * arena)11966 Arena::CreateMaybeMessage< ::google::internal::federatedml::v2::UriResource >(Arena* arena) {
11967   return Arena::CreateMessageInternal< ::google::internal::federatedml::v2::UriResource >(arena);
11968 }
11969 template<> PROTOBUF_NOINLINE ::google::internal::federatedml::v2::AcceptanceInfo_SideChannelsEntry_DoNotUse*
CreateMaybeMessage(Arena * arena)11970 Arena::CreateMaybeMessage< ::google::internal::federatedml::v2::AcceptanceInfo_SideChannelsEntry_DoNotUse >(Arena* arena) {
11971   return Arena::CreateMessageInternal< ::google::internal::federatedml::v2::AcceptanceInfo_SideChannelsEntry_DoNotUse >(arena);
11972 }
11973 template<> PROTOBUF_NOINLINE ::google::internal::federatedml::v2::AcceptanceInfo*
CreateMaybeMessage(Arena * arena)11974 Arena::CreateMaybeMessage< ::google::internal::federatedml::v2::AcceptanceInfo >(Arena* arena) {
11975   return Arena::CreateMessageInternal< ::google::internal::federatedml::v2::AcceptanceInfo >(arena);
11976 }
11977 template<> PROTOBUF_NOINLINE ::google::internal::federatedml::v2::FederatedSelectUriInfo*
CreateMaybeMessage(Arena * arena)11978 Arena::CreateMaybeMessage< ::google::internal::federatedml::v2::FederatedSelectUriInfo >(Arena* arena) {
11979   return Arena::CreateMessageInternal< ::google::internal::federatedml::v2::FederatedSelectUriInfo >(arena);
11980 }
11981 template<> PROTOBUF_NOINLINE ::google::internal::federatedml::v2::RejectionInfo*
CreateMaybeMessage(Arena * arena)11982 Arena::CreateMaybeMessage< ::google::internal::federatedml::v2::RejectionInfo >(Arena* arena) {
11983   return Arena::CreateMessageInternal< ::google::internal::federatedml::v2::RejectionInfo >(arena);
11984 }
11985 template<> PROTOBUF_NOINLINE ::google::internal::federatedml::v2::ReportRequest*
CreateMaybeMessage(Arena * arena)11986 Arena::CreateMaybeMessage< ::google::internal::federatedml::v2::ReportRequest >(Arena* arena) {
11987   return Arena::CreateMessageInternal< ::google::internal::federatedml::v2::ReportRequest >(arena);
11988 }
11989 template<> PROTOBUF_NOINLINE ::google::internal::federatedml::v2::ReportResponse*
CreateMaybeMessage(Arena * arena)11990 Arena::CreateMaybeMessage< ::google::internal::federatedml::v2::ReportResponse >(Arena* arena) {
11991   return Arena::CreateMessageInternal< ::google::internal::federatedml::v2::ReportResponse >(arena);
11992 }
11993 template<> PROTOBUF_NOINLINE ::google::internal::federatedml::v2::Report*
CreateMaybeMessage(Arena * arena)11994 Arena::CreateMaybeMessage< ::google::internal::federatedml::v2::Report >(Arena* arena) {
11995   return Arena::CreateMessageInternal< ::google::internal::federatedml::v2::Report >(arena);
11996 }
11997 template<> PROTOBUF_NOINLINE ::google::internal::federatedml::v2::ClientExecutionStats*
CreateMaybeMessage(Arena * arena)11998 Arena::CreateMaybeMessage< ::google::internal::federatedml::v2::ClientExecutionStats >(Arena* arena) {
11999   return Arena::CreateMessageInternal< ::google::internal::federatedml::v2::ClientExecutionStats >(arena);
12000 }
12001 template<> PROTOBUF_NOINLINE ::google::internal::federatedml::v2::RetryWindow*
CreateMaybeMessage(Arena * arena)12002 Arena::CreateMaybeMessage< ::google::internal::federatedml::v2::RetryWindow >(Arena* arena) {
12003   return Arena::CreateMessageInternal< ::google::internal::federatedml::v2::RetryWindow >(arena);
12004 }
12005 template<> PROTOBUF_NOINLINE ::google::internal::federatedml::v2::Checkpoint_Aggregand*
CreateMaybeMessage(Arena * arena)12006 Arena::CreateMaybeMessage< ::google::internal::federatedml::v2::Checkpoint_Aggregand >(Arena* arena) {
12007   return Arena::CreateMessageInternal< ::google::internal::federatedml::v2::Checkpoint_Aggregand >(arena);
12008 }
12009 template<> PROTOBUF_NOINLINE ::google::internal::federatedml::v2::Checkpoint_AggregandsEntry_DoNotUse*
CreateMaybeMessage(Arena * arena)12010 Arena::CreateMaybeMessage< ::google::internal::federatedml::v2::Checkpoint_AggregandsEntry_DoNotUse >(Arena* arena) {
12011   return Arena::CreateMessageInternal< ::google::internal::federatedml::v2::Checkpoint_AggregandsEntry_DoNotUse >(arena);
12012 }
12013 template<> PROTOBUF_NOINLINE ::google::internal::federatedml::v2::Checkpoint*
CreateMaybeMessage(Arena * arena)12014 Arena::CreateMaybeMessage< ::google::internal::federatedml::v2::Checkpoint >(Arena* arena) {
12015   return Arena::CreateMessageInternal< ::google::internal::federatedml::v2::Checkpoint >(arena);
12016 }
12017 template<> PROTOBUF_NOINLINE ::google::internal::federatedml::v2::ProtocolOptionsRequest*
CreateMaybeMessage(Arena * arena)12018 Arena::CreateMaybeMessage< ::google::internal::federatedml::v2::ProtocolOptionsRequest >(Arena* arena) {
12019   return Arena::CreateMessageInternal< ::google::internal::federatedml::v2::ProtocolOptionsRequest >(arena);
12020 }
12021 template<> PROTOBUF_NOINLINE ::google::internal::federatedml::v2::ProtocolOptionsResponse*
CreateMaybeMessage(Arena * arena)12022 Arena::CreateMaybeMessage< ::google::internal::federatedml::v2::ProtocolOptionsResponse >(Arena* arena) {
12023   return Arena::CreateMessageInternal< ::google::internal::federatedml::v2::ProtocolOptionsResponse >(arena);
12024 }
12025 template<> PROTOBUF_NOINLINE ::google::internal::federatedml::v2::ChunkedTransferMessage_Start*
CreateMaybeMessage(Arena * arena)12026 Arena::CreateMaybeMessage< ::google::internal::federatedml::v2::ChunkedTransferMessage_Start >(Arena* arena) {
12027   return Arena::CreateMessageInternal< ::google::internal::federatedml::v2::ChunkedTransferMessage_Start >(arena);
12028 }
12029 template<> PROTOBUF_NOINLINE ::google::internal::federatedml::v2::ChunkedTransferMessage_Data*
CreateMaybeMessage(Arena * arena)12030 Arena::CreateMaybeMessage< ::google::internal::federatedml::v2::ChunkedTransferMessage_Data >(Arena* arena) {
12031   return Arena::CreateMessageInternal< ::google::internal::federatedml::v2::ChunkedTransferMessage_Data >(arena);
12032 }
12033 template<> PROTOBUF_NOINLINE ::google::internal::federatedml::v2::ChunkedTransferMessage_Ack*
CreateMaybeMessage(Arena * arena)12034 Arena::CreateMaybeMessage< ::google::internal::federatedml::v2::ChunkedTransferMessage_Ack >(Arena* arena) {
12035   return Arena::CreateMessageInternal< ::google::internal::federatedml::v2::ChunkedTransferMessage_Ack >(arena);
12036 }
12037 template<> PROTOBUF_NOINLINE ::google::internal::federatedml::v2::ChunkedTransferMessage_End*
CreateMaybeMessage(Arena * arena)12038 Arena::CreateMaybeMessage< ::google::internal::federatedml::v2::ChunkedTransferMessage_End >(Arena* arena) {
12039   return Arena::CreateMessageInternal< ::google::internal::federatedml::v2::ChunkedTransferMessage_End >(arena);
12040 }
12041 template<> PROTOBUF_NOINLINE ::google::internal::federatedml::v2::ChunkedTransferMessage*
CreateMaybeMessage(Arena * arena)12042 Arena::CreateMaybeMessage< ::google::internal::federatedml::v2::ChunkedTransferMessage >(Arena* arena) {
12043   return Arena::CreateMessageInternal< ::google::internal::federatedml::v2::ChunkedTransferMessage >(arena);
12044 }
12045 PROTOBUF_NAMESPACE_CLOSE
12046 
12047 // @@protoc_insertion_point(global_scope)
12048 #include <google/protobuf/port_undef.inc>
12049