-
Notifications
You must be signed in to change notification settings - Fork 813
/
http.pb.h
1753 lines (1626 loc) · 62.2 KB
/
http.pb.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright 2024 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// This code was autogenerated. Do not edit directly.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/http.proto
// Protobuf C++ Version: 5.26.1
#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fhttp_2eproto_2epb_2eh
#define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fhttp_2eproto_2epb_2eh
#include <limits>
#include <string>
#include <type_traits>
#include <utility>
#include "google/protobuf/port_def.inc"
#if PROTOBUF_VERSION != 5026001
#error "Protobuf C++ gencode is built with an incompatible version of"
#error "Protobuf C++ headers/runtime. See"
#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp"
#endif
#include "google/protobuf/port_undef.inc"
#include "google/protobuf/io/coded_stream.h"
#include "google/protobuf/arena.h"
#include "google/protobuf/arenastring.h"
#include "google/protobuf/generated_message_tctable_decl.h"
#include "google/protobuf/generated_message_util.h"
#include "google/protobuf/metadata_lite.h"
#include "google/protobuf/generated_message_reflection.h"
#include "google/protobuf/message.h"
#include "google/protobuf/repeated_field.h" // IWYU pragma: export
#include "google/protobuf/extension_set.h" // IWYU pragma: export
#include "google/protobuf/unknown_field_set.h"
// @@protoc_insertion_point(includes)
// Must be included last.
#include "google/protobuf/port_def.inc"
#define PROTOBUF_INTERNAL_EXPORT_google_2fapi_2fhttp_2eproto AGONES_EXPORT
namespace google {
namespace protobuf {
namespace internal {
class AnyMetadata;
} // namespace internal
} // namespace protobuf
} // namespace google
// Internal implementation detail -- do not use these members.
struct AGONES_EXPORT TableStruct_google_2fapi_2fhttp_2eproto {
static const ::uint32_t offsets[];
};
AGONES_EXPORT extern const ::google::protobuf::internal::DescriptorTable
descriptor_table_google_2fapi_2fhttp_2eproto;
namespace google {
namespace api {
class CustomHttpPattern;
struct CustomHttpPatternDefaultTypeInternal;
AGONES_EXPORT extern CustomHttpPatternDefaultTypeInternal _CustomHttpPattern_default_instance_;
class Http;
struct HttpDefaultTypeInternal;
AGONES_EXPORT extern HttpDefaultTypeInternal _Http_default_instance_;
class HttpRule;
struct HttpRuleDefaultTypeInternal;
AGONES_EXPORT extern HttpRuleDefaultTypeInternal _HttpRule_default_instance_;
} // namespace api
namespace protobuf {
} // namespace protobuf
} // namespace google
namespace google {
namespace api {
// ===================================================================
// -------------------------------------------------------------------
class AGONES_EXPORT CustomHttpPattern final : public ::google::protobuf::Message
/* @@protoc_insertion_point(class_definition:google.api.CustomHttpPattern) */ {
public:
inline CustomHttpPattern() : CustomHttpPattern(nullptr) {}
~CustomHttpPattern() override;
template <typename = void>
explicit PROTOBUF_CONSTEXPR CustomHttpPattern(
::google::protobuf::internal::ConstantInitialized);
inline CustomHttpPattern(const CustomHttpPattern& from) : CustomHttpPattern(nullptr, from) {}
inline CustomHttpPattern(CustomHttpPattern&& from) noexcept
: CustomHttpPattern(nullptr, std::move(from)) {}
inline CustomHttpPattern& operator=(const CustomHttpPattern& from) {
CopyFrom(from);
return *this;
}
inline CustomHttpPattern& operator=(CustomHttpPattern&& from) noexcept {
if (this == &from) return *this;
if (GetArena() == from.GetArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
}
static const ::google::protobuf::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::google::protobuf::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::google::protobuf::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const CustomHttpPattern& default_instance() {
return *internal_default_instance();
}
static inline const CustomHttpPattern* internal_default_instance() {
return reinterpret_cast<const CustomHttpPattern*>(
&_CustomHttpPattern_default_instance_);
}
static constexpr int kIndexInFileMessages = 2;
friend void swap(CustomHttpPattern& a, CustomHttpPattern& b) { a.Swap(&b); }
inline void Swap(CustomHttpPattern* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() != nullptr && GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::google::protobuf::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(CustomHttpPattern* other) {
if (other == this) return;
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
CustomHttpPattern* New(::google::protobuf::Arena* arena = nullptr) const final {
return ::google::protobuf::Message::DefaultConstruct<CustomHttpPattern>(arena);
}
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const CustomHttpPattern& from);
using ::google::protobuf::Message::MergeFrom;
void MergeFrom(const CustomHttpPattern& from) { CustomHttpPattern::MergeImpl(*this, from); }
private:
static void MergeImpl(
::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg);
public:
ABSL_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
::size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
::uint8_t* _InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::google::protobuf::Arena* arena);
void SharedDtor();
void InternalSwap(CustomHttpPattern* other);
private:
friend class ::google::protobuf::internal::AnyMetadata;
static ::absl::string_view FullMessageName() { return "google.api.CustomHttpPattern"; }
protected:
explicit CustomHttpPattern(::google::protobuf::Arena* arena);
CustomHttpPattern(::google::protobuf::Arena* arena, const CustomHttpPattern& from);
CustomHttpPattern(::google::protobuf::Arena* arena, CustomHttpPattern&& from) noexcept
: CustomHttpPattern(arena) {
*this = ::std::move(from);
}
const ::google::protobuf::MessageLite::ClassData* GetClassData()
const final;
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kKindFieldNumber = 1,
kPathFieldNumber = 2,
};
// string kind = 1;
void clear_kind() ;
const std::string& kind() const;
template <typename Arg_ = const std::string&, typename... Args_>
void set_kind(Arg_&& arg, Args_... args);
std::string* mutable_kind();
PROTOBUF_NODISCARD std::string* release_kind();
void set_allocated_kind(std::string* value);
private:
const std::string& _internal_kind() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_kind(
const std::string& value);
std::string* _internal_mutable_kind();
public:
// string path = 2;
void clear_path() ;
const std::string& path() const;
template <typename Arg_ = const std::string&, typename... Args_>
void set_path(Arg_&& arg, Args_... args);
std::string* mutable_path();
PROTOBUF_NODISCARD std::string* release_path();
void set_allocated_path(std::string* value);
private:
const std::string& _internal_path() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_path(
const std::string& value);
std::string* _internal_mutable_path();
public:
// @@protoc_insertion_point(class_scope:google.api.CustomHttpPattern)
private:
class _Internal;
friend class ::google::protobuf::internal::TcParser;
static const ::google::protobuf::internal::TcParseTable<
1, 2, 0,
45, 2>
_table_;
friend class ::google::protobuf::MessageLite;
friend class ::google::protobuf::Arena;
template <typename T>
friend class ::google::protobuf::Arena::InternalHelper;
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct Impl_ {
inline explicit constexpr Impl_(
::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
::google::protobuf::Arena* arena);
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
::google::protobuf::Arena* arena, const Impl_& from);
::google::protobuf::internal::ArenaStringPtr kind_;
::google::protobuf::internal::ArenaStringPtr path_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
PROTOBUF_TSAN_DECLARE_MEMBER
};
union { Impl_ _impl_; };
friend struct ::TableStruct_google_2fapi_2fhttp_2eproto;
};
// -------------------------------------------------------------------
class AGONES_EXPORT HttpRule final : public ::google::protobuf::Message
/* @@protoc_insertion_point(class_definition:google.api.HttpRule) */ {
public:
inline HttpRule() : HttpRule(nullptr) {}
~HttpRule() override;
template <typename = void>
explicit PROTOBUF_CONSTEXPR HttpRule(
::google::protobuf::internal::ConstantInitialized);
inline HttpRule(const HttpRule& from) : HttpRule(nullptr, from) {}
inline HttpRule(HttpRule&& from) noexcept
: HttpRule(nullptr, std::move(from)) {}
inline HttpRule& operator=(const HttpRule& from) {
CopyFrom(from);
return *this;
}
inline HttpRule& operator=(HttpRule&& from) noexcept {
if (this == &from) return *this;
if (GetArena() == from.GetArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
}
static const ::google::protobuf::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::google::protobuf::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::google::protobuf::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const HttpRule& default_instance() {
return *internal_default_instance();
}
enum PatternCase {
kGet = 2,
kPut = 3,
kPost = 4,
kDelete = 5,
kPatch = 6,
kCustom = 8,
PATTERN_NOT_SET = 0,
};
static inline const HttpRule* internal_default_instance() {
return reinterpret_cast<const HttpRule*>(
&_HttpRule_default_instance_);
}
static constexpr int kIndexInFileMessages = 1;
friend void swap(HttpRule& a, HttpRule& b) { a.Swap(&b); }
inline void Swap(HttpRule* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() != nullptr && GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::google::protobuf::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(HttpRule* other) {
if (other == this) return;
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
HttpRule* New(::google::protobuf::Arena* arena = nullptr) const final {
return ::google::protobuf::Message::DefaultConstruct<HttpRule>(arena);
}
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const HttpRule& from);
using ::google::protobuf::Message::MergeFrom;
void MergeFrom(const HttpRule& from) { HttpRule::MergeImpl(*this, from); }
private:
static void MergeImpl(
::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg);
public:
ABSL_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
::size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
::uint8_t* _InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::google::protobuf::Arena* arena);
void SharedDtor();
void InternalSwap(HttpRule* other);
private:
friend class ::google::protobuf::internal::AnyMetadata;
static ::absl::string_view FullMessageName() { return "google.api.HttpRule"; }
protected:
explicit HttpRule(::google::protobuf::Arena* arena);
HttpRule(::google::protobuf::Arena* arena, const HttpRule& from);
HttpRule(::google::protobuf::Arena* arena, HttpRule&& from) noexcept
: HttpRule(arena) {
*this = ::std::move(from);
}
const ::google::protobuf::MessageLite::ClassData* GetClassData()
const final;
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kAdditionalBindingsFieldNumber = 11,
kSelectorFieldNumber = 1,
kBodyFieldNumber = 7,
kResponseBodyFieldNumber = 12,
kGetFieldNumber = 2,
kPutFieldNumber = 3,
kPostFieldNumber = 4,
kDeleteFieldNumber = 5,
kPatchFieldNumber = 6,
kCustomFieldNumber = 8,
};
// repeated .google.api.HttpRule additional_bindings = 11;
int additional_bindings_size() const;
private:
int _internal_additional_bindings_size() const;
public:
void clear_additional_bindings() ;
::google::api::HttpRule* mutable_additional_bindings(int index);
::google::protobuf::RepeatedPtrField<::google::api::HttpRule>* mutable_additional_bindings();
private:
const ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>& _internal_additional_bindings() const;
::google::protobuf::RepeatedPtrField<::google::api::HttpRule>* _internal_mutable_additional_bindings();
public:
const ::google::api::HttpRule& additional_bindings(int index) const;
::google::api::HttpRule* add_additional_bindings();
const ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>& additional_bindings() const;
// string selector = 1;
void clear_selector() ;
const std::string& selector() const;
template <typename Arg_ = const std::string&, typename... Args_>
void set_selector(Arg_&& arg, Args_... args);
std::string* mutable_selector();
PROTOBUF_NODISCARD std::string* release_selector();
void set_allocated_selector(std::string* value);
private:
const std::string& _internal_selector() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_selector(
const std::string& value);
std::string* _internal_mutable_selector();
public:
// string body = 7;
void clear_body() ;
const std::string& body() const;
template <typename Arg_ = const std::string&, typename... Args_>
void set_body(Arg_&& arg, Args_... args);
std::string* mutable_body();
PROTOBUF_NODISCARD std::string* release_body();
void set_allocated_body(std::string* value);
private:
const std::string& _internal_body() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_body(
const std::string& value);
std::string* _internal_mutable_body();
public:
// string response_body = 12;
void clear_response_body() ;
const std::string& response_body() const;
template <typename Arg_ = const std::string&, typename... Args_>
void set_response_body(Arg_&& arg, Args_... args);
std::string* mutable_response_body();
PROTOBUF_NODISCARD std::string* release_response_body();
void set_allocated_response_body(std::string* value);
private:
const std::string& _internal_response_body() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_response_body(
const std::string& value);
std::string* _internal_mutable_response_body();
public:
// string get = 2;
bool has_get() const;
void clear_get() ;
const std::string& get() const;
template <typename Arg_ = const std::string&, typename... Args_>
void set_get(Arg_&& arg, Args_... args);
std::string* mutable_get();
PROTOBUF_NODISCARD std::string* release_get();
void set_allocated_get(std::string* value);
private:
const std::string& _internal_get() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_get(
const std::string& value);
std::string* _internal_mutable_get();
public:
// string put = 3;
bool has_put() const;
void clear_put() ;
const std::string& put() const;
template <typename Arg_ = const std::string&, typename... Args_>
void set_put(Arg_&& arg, Args_... args);
std::string* mutable_put();
PROTOBUF_NODISCARD std::string* release_put();
void set_allocated_put(std::string* value);
private:
const std::string& _internal_put() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_put(
const std::string& value);
std::string* _internal_mutable_put();
public:
// string post = 4;
bool has_post() const;
void clear_post() ;
const std::string& post() const;
template <typename Arg_ = const std::string&, typename... Args_>
void set_post(Arg_&& arg, Args_... args);
std::string* mutable_post();
PROTOBUF_NODISCARD std::string* release_post();
void set_allocated_post(std::string* value);
private:
const std::string& _internal_post() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_post(
const std::string& value);
std::string* _internal_mutable_post();
public:
// string delete = 5;
bool has_delete_() const;
void clear_delete_() ;
const std::string& delete_() const;
template <typename Arg_ = const std::string&, typename... Args_>
void set_delete_(Arg_&& arg, Args_... args);
std::string* mutable_delete_();
PROTOBUF_NODISCARD std::string* release_delete_();
void set_allocated_delete_(std::string* value);
private:
const std::string& _internal_delete_() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_delete_(
const std::string& value);
std::string* _internal_mutable_delete_();
public:
// string patch = 6;
bool has_patch() const;
void clear_patch() ;
const std::string& patch() const;
template <typename Arg_ = const std::string&, typename... Args_>
void set_patch(Arg_&& arg, Args_... args);
std::string* mutable_patch();
PROTOBUF_NODISCARD std::string* release_patch();
void set_allocated_patch(std::string* value);
private:
const std::string& _internal_patch() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_patch(
const std::string& value);
std::string* _internal_mutable_patch();
public:
// .google.api.CustomHttpPattern custom = 8;
bool has_custom() const;
private:
bool _internal_has_custom() const;
public:
void clear_custom() ;
const ::google::api::CustomHttpPattern& custom() const;
PROTOBUF_NODISCARD ::google::api::CustomHttpPattern* release_custom();
::google::api::CustomHttpPattern* mutable_custom();
void set_allocated_custom(::google::api::CustomHttpPattern* value);
void unsafe_arena_set_allocated_custom(::google::api::CustomHttpPattern* value);
::google::api::CustomHttpPattern* unsafe_arena_release_custom();
private:
const ::google::api::CustomHttpPattern& _internal_custom() const;
::google::api::CustomHttpPattern* _internal_mutable_custom();
public:
void clear_pattern();
PatternCase pattern_case() const;
// @@protoc_insertion_point(class_scope:google.api.HttpRule)
private:
class _Internal;
void set_has_get();
void set_has_put();
void set_has_post();
void set_has_delete_();
void set_has_patch();
void set_has_custom();
inline bool has_pattern() const;
inline void clear_has_pattern();
friend class ::google::protobuf::internal::TcParser;
static const ::google::protobuf::internal::TcParseTable<
3, 10, 2,
82, 2>
_table_;
friend class ::google::protobuf::MessageLite;
friend class ::google::protobuf::Arena;
template <typename T>
friend class ::google::protobuf::Arena::InternalHelper;
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct Impl_ {
inline explicit constexpr Impl_(
::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
::google::protobuf::Arena* arena);
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
::google::protobuf::Arena* arena, const Impl_& from);
::google::protobuf::RepeatedPtrField< ::google::api::HttpRule > additional_bindings_;
::google::protobuf::internal::ArenaStringPtr selector_;
::google::protobuf::internal::ArenaStringPtr body_;
::google::protobuf::internal::ArenaStringPtr response_body_;
union PatternUnion {
constexpr PatternUnion() : _constinit_{} {}
::google::protobuf::internal::ConstantInitialized _constinit_;
::google::protobuf::internal::ArenaStringPtr get_;
::google::protobuf::internal::ArenaStringPtr put_;
::google::protobuf::internal::ArenaStringPtr post_;
::google::protobuf::internal::ArenaStringPtr delete__;
::google::protobuf::internal::ArenaStringPtr patch_;
::google::api::CustomHttpPattern* custom_;
} pattern_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
::uint32_t _oneof_case_[1];
PROTOBUF_TSAN_DECLARE_MEMBER
};
union { Impl_ _impl_; };
friend struct ::TableStruct_google_2fapi_2fhttp_2eproto;
};
// -------------------------------------------------------------------
class AGONES_EXPORT Http final : public ::google::protobuf::Message
/* @@protoc_insertion_point(class_definition:google.api.Http) */ {
public:
inline Http() : Http(nullptr) {}
~Http() override;
template <typename = void>
explicit PROTOBUF_CONSTEXPR Http(
::google::protobuf::internal::ConstantInitialized);
inline Http(const Http& from) : Http(nullptr, from) {}
inline Http(Http&& from) noexcept
: Http(nullptr, std::move(from)) {}
inline Http& operator=(const Http& from) {
CopyFrom(from);
return *this;
}
inline Http& operator=(Http&& from) noexcept {
if (this == &from) return *this;
if (GetArena() == from.GetArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
}
static const ::google::protobuf::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::google::protobuf::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::google::protobuf::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const Http& default_instance() {
return *internal_default_instance();
}
static inline const Http* internal_default_instance() {
return reinterpret_cast<const Http*>(
&_Http_default_instance_);
}
static constexpr int kIndexInFileMessages = 0;
friend void swap(Http& a, Http& b) { a.Swap(&b); }
inline void Swap(Http* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() != nullptr && GetArena() == other->GetArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetArena() == other->GetArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::google::protobuf::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(Http* other) {
if (other == this) return;
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
Http* New(::google::protobuf::Arena* arena = nullptr) const final {
return ::google::protobuf::Message::DefaultConstruct<Http>(arena);
}
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const Http& from);
using ::google::protobuf::Message::MergeFrom;
void MergeFrom(const Http& from) { Http::MergeImpl(*this, from); }
private:
static void MergeImpl(
::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg);
public:
ABSL_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
::size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
::uint8_t* _InternalSerialize(
::uint8_t* target,
::google::protobuf::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::google::protobuf::Arena* arena);
void SharedDtor();
void InternalSwap(Http* other);
private:
friend class ::google::protobuf::internal::AnyMetadata;
static ::absl::string_view FullMessageName() { return "google.api.Http"; }
protected:
explicit Http(::google::protobuf::Arena* arena);
Http(::google::protobuf::Arena* arena, const Http& from);
Http(::google::protobuf::Arena* arena, Http&& from) noexcept
: Http(arena) {
*this = ::std::move(from);
}
const ::google::protobuf::MessageLite::ClassData* GetClassData()
const final;
public:
::google::protobuf::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kRulesFieldNumber = 1,
kFullyDecodeReservedExpansionFieldNumber = 2,
};
// repeated .google.api.HttpRule rules = 1;
int rules_size() const;
private:
int _internal_rules_size() const;
public:
void clear_rules() ;
::google::api::HttpRule* mutable_rules(int index);
::google::protobuf::RepeatedPtrField<::google::api::HttpRule>* mutable_rules();
private:
const ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>& _internal_rules() const;
::google::protobuf::RepeatedPtrField<::google::api::HttpRule>* _internal_mutable_rules();
public:
const ::google::api::HttpRule& rules(int index) const;
::google::api::HttpRule* add_rules();
const ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>& rules() const;
// bool fully_decode_reserved_expansion = 2;
void clear_fully_decode_reserved_expansion() ;
bool fully_decode_reserved_expansion() const;
void set_fully_decode_reserved_expansion(bool value);
private:
bool _internal_fully_decode_reserved_expansion() const;
void _internal_set_fully_decode_reserved_expansion(bool value);
public:
// @@protoc_insertion_point(class_scope:google.api.Http)
private:
class _Internal;
friend class ::google::protobuf::internal::TcParser;
static const ::google::protobuf::internal::TcParseTable<
1, 2, 1,
0, 2>
_table_;
friend class ::google::protobuf::MessageLite;
friend class ::google::protobuf::Arena;
template <typename T>
friend class ::google::protobuf::Arena::InternalHelper;
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct Impl_ {
inline explicit constexpr Impl_(
::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
::google::protobuf::Arena* arena);
inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
::google::protobuf::Arena* arena, const Impl_& from);
::google::protobuf::RepeatedPtrField< ::google::api::HttpRule > rules_;
bool fully_decode_reserved_expansion_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
PROTOBUF_TSAN_DECLARE_MEMBER
};
union { Impl_ _impl_; };
friend struct ::TableStruct_google_2fapi_2fhttp_2eproto;
};
// ===================================================================
// ===================================================================
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif // __GNUC__
// -------------------------------------------------------------------
// Http
// repeated .google.api.HttpRule rules = 1;
inline int Http::_internal_rules_size() const {
return _internal_rules().size();
}
inline int Http::rules_size() const {
return _internal_rules_size();
}
inline void Http::clear_rules() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.rules_.Clear();
}
inline ::google::api::HttpRule* Http::mutable_rules(int index)
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_mutable:google.api.Http.rules)
return _internal_mutable_rules()->Mutable(index);
}
inline ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>* Http::mutable_rules()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_mutable_list:google.api.Http.rules)
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
return _internal_mutable_rules();
}
inline const ::google::api::HttpRule& Http::rules(int index) const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:google.api.Http.rules)
return _internal_rules().Get(index);
}
inline ::google::api::HttpRule* Http::add_rules() ABSL_ATTRIBUTE_LIFETIME_BOUND {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
::google::api::HttpRule* _add = _internal_mutable_rules()->Add();
// @@protoc_insertion_point(field_add:google.api.Http.rules)
return _add;
}
inline const ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>& Http::rules() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_list:google.api.Http.rules)
return _internal_rules();
}
inline const ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>&
Http::_internal_rules() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.rules_;
}
inline ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>*
Http::_internal_mutable_rules() {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return &_impl_.rules_;
}
// bool fully_decode_reserved_expansion = 2;
inline void Http::clear_fully_decode_reserved_expansion() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.fully_decode_reserved_expansion_ = false;
}
inline bool Http::fully_decode_reserved_expansion() const {
// @@protoc_insertion_point(field_get:google.api.Http.fully_decode_reserved_expansion)
return _internal_fully_decode_reserved_expansion();
}
inline void Http::set_fully_decode_reserved_expansion(bool value) {
_internal_set_fully_decode_reserved_expansion(value);
// @@protoc_insertion_point(field_set:google.api.Http.fully_decode_reserved_expansion)
}
inline bool Http::_internal_fully_decode_reserved_expansion() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.fully_decode_reserved_expansion_;
}
inline void Http::_internal_set_fully_decode_reserved_expansion(bool value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.fully_decode_reserved_expansion_ = value;
}
// -------------------------------------------------------------------
// HttpRule
// string selector = 1;
inline void HttpRule::clear_selector() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.selector_.ClearToEmpty();
}
inline const std::string& HttpRule::selector() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:google.api.HttpRule.selector)
return _internal_selector();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void HttpRule::set_selector(Arg_&& arg,
Args_... args) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.selector_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
// @@protoc_insertion_point(field_set:google.api.HttpRule.selector)
}
inline std::string* HttpRule::mutable_selector() ABSL_ATTRIBUTE_LIFETIME_BOUND {
std::string* _s = _internal_mutable_selector();
// @@protoc_insertion_point(field_mutable:google.api.HttpRule.selector)
return _s;
}
inline const std::string& HttpRule::_internal_selector() const {
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
return _impl_.selector_.Get();
}
inline void HttpRule::_internal_set_selector(const std::string& value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.selector_.Set(value, GetArena());
}
inline std::string* HttpRule::_internal_mutable_selector() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
return _impl_.selector_.Mutable( GetArena());
}
inline std::string* HttpRule::release_selector() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
// @@protoc_insertion_point(field_release:google.api.HttpRule.selector)
return _impl_.selector_.Release();
}
inline void HttpRule::set_allocated_selector(std::string* value) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
_impl_.selector_.SetAllocated(value, GetArena());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.selector_.IsDefault()) {
_impl_.selector_.Set("", GetArena());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.selector)
}
// string get = 2;
inline bool HttpRule::has_get() const {
return pattern_case() == kGet;
}
inline void HttpRule::set_has_get() {
_impl_._oneof_case_[0] = kGet;
}
inline void HttpRule::clear_get() {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
if (pattern_case() == kGet) {
_impl_.pattern_.get_.Destroy();
clear_has_pattern();
}
}
inline const std::string& HttpRule::get() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:google.api.HttpRule.get)
return _internal_get();
}
template <typename Arg_, typename... Args_>
inline PROTOBUF_ALWAYS_INLINE void HttpRule::set_get(Arg_&& arg,
Args_... args) {
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
if (pattern_case() != kGet) {
clear_pattern();