4 #ifndef PROTOBUF_erasurecoding_2eproto__INCLUDED
5 #define PROTOBUF_erasurecoding_2eproto__INCLUDED
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 3000000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
16 #if 3000000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
22 #include <google/protobuf/arena.h>
23 #include <google/protobuf/arenastring.h>
24 #include <google/protobuf/generated_message_util.h>
25 #include <google/protobuf/metadata.h>
26 #include <google/protobuf/message.h>
27 #include <google/protobuf/repeated_field.h>
28 #include <google/protobuf/extension_set.h>
29 #include <google/protobuf/unknown_field_set.h>
37 void protobuf_AddDesc_erasurecoding_2eproto();
38 void protobuf_AssignDesc_erasurecoding_2eproto();
39 void protobuf_ShutdownFile_erasurecoding_2eproto();
42 class GetErasureCodingCodecsRequestProto;
43 class GetErasureCodingCodecsResponseProto;
44 class GetErasureCodingPoliciesRequestProto;
45 class GetErasureCodingPoliciesResponseProto;
46 class GetErasureCodingPolicyRequestProto;
47 class GetErasureCodingPolicyResponseProto;
48 class SetErasureCodingPolicyRequestProto;
49 class SetErasureCodingPolicyResponseProto;
65 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
66 return _internal_metadata_.unknown_fields();
69 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
70 return _internal_metadata_.mutable_unknown_fields();
73 static const ::google::protobuf::Descriptor* descriptor();
83 void CopyFrom(const ::google::protobuf::Message& from);
84 void MergeFrom(const ::google::protobuf::Message& from);
88 bool IsInitialized()
const;
91 bool MergePartialFromCodedStream(
92 ::google::protobuf::io::CodedInputStream* input);
93 void SerializeWithCachedSizes(
94 ::google::protobuf::io::CodedOutputStream* output)
const;
95 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
96 bool deterministic, ::google::protobuf::uint8* output)
const;
97 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const {
98 return InternalSerializeWithCachedSizesToArray(
false, output);
100 int GetCachedSize()
const {
return _cached_size_; }
104 void SetCachedSize(
int size)
const;
107 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
108 return _internal_metadata_.arena();
110 inline void* MaybeArenaPtr()
const {
111 return _internal_metadata_.raw_arena_ptr();
115 ::google::protobuf::Metadata GetMetadata()
const;
122 bool has_src()
const;
124 static const int kSrcFieldNumber = 1;
125 const ::std::string& src()
const;
126 void set_src(const ::std::string& value);
127 void set_src(
const char* value);
128 void set_src(
const char* value,
size_t size);
129 ::std::string* mutable_src();
130 ::std::string* release_src();
131 void set_allocated_src(::std::string* src);
134 bool has_ecpolicyname()
const;
135 void clear_ecpolicyname();
136 static const int kEcPolicyNameFieldNumber = 2;
137 const ::std::string& ecpolicyname()
const;
138 void set_ecpolicyname(const ::std::string& value);
139 void set_ecpolicyname(
const char* value);
140 void set_ecpolicyname(
const char* value,
size_t size);
141 ::std::string* mutable_ecpolicyname();
142 ::std::string* release_ecpolicyname();
143 void set_allocated_ecpolicyname(::std::string* ecpolicyname);
147 inline void set_has_src();
148 inline void clear_has_src();
149 inline void set_has_ecpolicyname();
150 inline void clear_has_ecpolicyname();
152 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
153 ::google::protobuf::uint32 _has_bits_[1];
154 mutable int _cached_size_;
155 ::google::protobuf::internal::ArenaStringPtr src_;
156 ::google::protobuf::internal::ArenaStringPtr ecpolicyname_;
157 friend void protobuf_AddDesc_erasurecoding_2eproto();
158 friend void protobuf_AssignDesc_erasurecoding_2eproto();
159 friend void protobuf_ShutdownFile_erasurecoding_2eproto();
161 void InitAsDefaultInstance();
178 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
179 return _internal_metadata_.unknown_fields();
182 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
183 return _internal_metadata_.mutable_unknown_fields();
186 static const ::google::protobuf::Descriptor* descriptor();
196 void CopyFrom(const ::google::protobuf::Message& from);
197 void MergeFrom(const ::google::protobuf::Message& from);
201 bool IsInitialized()
const;
203 int ByteSize()
const;
204 bool MergePartialFromCodedStream(
205 ::google::protobuf::io::CodedInputStream* input);
206 void SerializeWithCachedSizes(
207 ::google::protobuf::io::CodedOutputStream* output)
const;
208 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
209 bool deterministic, ::google::protobuf::uint8* output)
const;
210 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const {
211 return InternalSerializeWithCachedSizesToArray(
false, output);
213 int GetCachedSize()
const {
return _cached_size_; }
217 void SetCachedSize(
int size)
const;
220 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
221 return _internal_metadata_.arena();
223 inline void* MaybeArenaPtr()
const {
224 return _internal_metadata_.raw_arena_ptr();
228 ::google::protobuf::Metadata GetMetadata()
const;
237 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
238 ::google::protobuf::uint32 _has_bits_[1];
239 mutable int _cached_size_;
240 friend void protobuf_AddDesc_erasurecoding_2eproto();
241 friend void protobuf_AssignDesc_erasurecoding_2eproto();
242 friend void protobuf_ShutdownFile_erasurecoding_2eproto();
244 void InitAsDefaultInstance();
261 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
262 return _internal_metadata_.unknown_fields();
265 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
266 return _internal_metadata_.mutable_unknown_fields();
269 static const ::google::protobuf::Descriptor* descriptor();
279 void CopyFrom(const ::google::protobuf::Message& from);
280 void MergeFrom(const ::google::protobuf::Message& from);
284 bool IsInitialized()
const;
286 int ByteSize()
const;
287 bool MergePartialFromCodedStream(
288 ::google::protobuf::io::CodedInputStream* input);
289 void SerializeWithCachedSizes(
290 ::google::protobuf::io::CodedOutputStream* output)
const;
291 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
292 bool deterministic, ::google::protobuf::uint8* output)
const;
293 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const {
294 return InternalSerializeWithCachedSizesToArray(
false, output);
296 int GetCachedSize()
const {
return _cached_size_; }
300 void SetCachedSize(
int size)
const;
303 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
304 return _internal_metadata_.arena();
306 inline void* MaybeArenaPtr()
const {
307 return _internal_metadata_.raw_arena_ptr();
311 ::google::protobuf::Metadata GetMetadata()
const;
320 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
321 ::google::protobuf::uint32 _has_bits_[1];
322 mutable int _cached_size_;
323 friend void protobuf_AddDesc_erasurecoding_2eproto();
324 friend void protobuf_AssignDesc_erasurecoding_2eproto();
325 friend void protobuf_ShutdownFile_erasurecoding_2eproto();
327 void InitAsDefaultInstance();
344 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
345 return _internal_metadata_.unknown_fields();
348 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
349 return _internal_metadata_.mutable_unknown_fields();
352 static const ::google::protobuf::Descriptor* descriptor();
362 void CopyFrom(const ::google::protobuf::Message& from);
363 void MergeFrom(const ::google::protobuf::Message& from);
367 bool IsInitialized()
const;
369 int ByteSize()
const;
370 bool MergePartialFromCodedStream(
371 ::google::protobuf::io::CodedInputStream* input);
372 void SerializeWithCachedSizes(
373 ::google::protobuf::io::CodedOutputStream* output)
const;
374 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
375 bool deterministic, ::google::protobuf::uint8* output)
const;
376 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const {
377 return InternalSerializeWithCachedSizesToArray(
false, output);
379 int GetCachedSize()
const {
return _cached_size_; }
383 void SetCachedSize(
int size)
const;
386 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
387 return _internal_metadata_.arena();
389 inline void* MaybeArenaPtr()
const {
390 return _internal_metadata_.raw_arena_ptr();
394 ::google::protobuf::Metadata GetMetadata()
const;
401 int ecpolicies_size()
const;
402 void clear_ecpolicies();
403 static const int kEcPoliciesFieldNumber = 1;
404 const ::hadoop::hdfs::ErasureCodingPolicyProto& ecpolicies(
int index)
const;
407 ::google::protobuf::RepeatedPtrField< ::hadoop::hdfs::ErasureCodingPolicyProto >*
408 mutable_ecpolicies();
409 const ::google::protobuf::RepeatedPtrField< ::hadoop::hdfs::ErasureCodingPolicyProto >&
415 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
416 ::google::protobuf::uint32 _has_bits_[1];
417 mutable int _cached_size_;
418 ::google::protobuf::RepeatedPtrField< ::hadoop::hdfs::ErasureCodingPolicyProto > ecpolicies_;
419 friend void protobuf_AddDesc_erasurecoding_2eproto();
420 friend void protobuf_AssignDesc_erasurecoding_2eproto();
421 friend void protobuf_ShutdownFile_erasurecoding_2eproto();
423 void InitAsDefaultInstance();
440 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
441 return _internal_metadata_.unknown_fields();
444 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
445 return _internal_metadata_.mutable_unknown_fields();
448 static const ::google::protobuf::Descriptor* descriptor();
458 void CopyFrom(const ::google::protobuf::Message& from);
459 void MergeFrom(const ::google::protobuf::Message& from);
463 bool IsInitialized()
const;
465 int ByteSize()
const;
466 bool MergePartialFromCodedStream(
467 ::google::protobuf::io::CodedInputStream* input);
468 void SerializeWithCachedSizes(
469 ::google::protobuf::io::CodedOutputStream* output)
const;
470 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
471 bool deterministic, ::google::protobuf::uint8* output)
const;
472 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const {
473 return InternalSerializeWithCachedSizesToArray(
false, output);
475 int GetCachedSize()
const {
return _cached_size_; }
479 void SetCachedSize(
int size)
const;
482 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
483 return _internal_metadata_.arena();
485 inline void* MaybeArenaPtr()
const {
486 return _internal_metadata_.raw_arena_ptr();
490 ::google::protobuf::Metadata GetMetadata()
const;
499 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
500 ::google::protobuf::uint32 _has_bits_[1];
501 mutable int _cached_size_;
502 friend void protobuf_AddDesc_erasurecoding_2eproto();
503 friend void protobuf_AssignDesc_erasurecoding_2eproto();
504 friend void protobuf_ShutdownFile_erasurecoding_2eproto();
506 void InitAsDefaultInstance();
523 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
524 return _internal_metadata_.unknown_fields();
527 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
528 return _internal_metadata_.mutable_unknown_fields();
531 static const ::google::protobuf::Descriptor* descriptor();
541 void CopyFrom(const ::google::protobuf::Message& from);
542 void MergeFrom(const ::google::protobuf::Message& from);
546 bool IsInitialized()
const;
548 int ByteSize()
const;
549 bool MergePartialFromCodedStream(
550 ::google::protobuf::io::CodedInputStream* input);
551 void SerializeWithCachedSizes(
552 ::google::protobuf::io::CodedOutputStream* output)
const;
553 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
554 bool deterministic, ::google::protobuf::uint8* output)
const;
555 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const {
556 return InternalSerializeWithCachedSizesToArray(
false, output);
558 int GetCachedSize()
const {
return _cached_size_; }
562 void SetCachedSize(
int size)
const;
565 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
566 return _internal_metadata_.arena();
568 inline void* MaybeArenaPtr()
const {
569 return _internal_metadata_.raw_arena_ptr();
573 ::google::protobuf::Metadata GetMetadata()
const;
580 int codec_size()
const;
582 static const int kCodecFieldNumber = 1;
583 const ::hadoop::hdfs::CodecProto& codec(
int index)
const;
586 ::google::protobuf::RepeatedPtrField< ::hadoop::hdfs::CodecProto >*
588 const ::google::protobuf::RepeatedPtrField< ::hadoop::hdfs::CodecProto >&
594 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
595 ::google::protobuf::uint32 _has_bits_[1];
596 mutable int _cached_size_;
597 ::google::protobuf::RepeatedPtrField< ::hadoop::hdfs::CodecProto > codec_;
598 friend void protobuf_AddDesc_erasurecoding_2eproto();
599 friend void protobuf_AssignDesc_erasurecoding_2eproto();
600 friend void protobuf_ShutdownFile_erasurecoding_2eproto();
602 void InitAsDefaultInstance();
619 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
620 return _internal_metadata_.unknown_fields();
623 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
624 return _internal_metadata_.mutable_unknown_fields();
627 static const ::google::protobuf::Descriptor* descriptor();
637 void CopyFrom(const ::google::protobuf::Message& from);
638 void MergeFrom(const ::google::protobuf::Message& from);
642 bool IsInitialized()
const;
644 int ByteSize()
const;
645 bool MergePartialFromCodedStream(
646 ::google::protobuf::io::CodedInputStream* input);
647 void SerializeWithCachedSizes(
648 ::google::protobuf::io::CodedOutputStream* output)
const;
649 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
650 bool deterministic, ::google::protobuf::uint8* output)
const;
651 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const {
652 return InternalSerializeWithCachedSizesToArray(
false, output);
654 int GetCachedSize()
const {
return _cached_size_; }
658 void SetCachedSize(
int size)
const;
661 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
662 return _internal_metadata_.arena();
664 inline void* MaybeArenaPtr()
const {
665 return _internal_metadata_.raw_arena_ptr();
669 ::google::protobuf::Metadata GetMetadata()
const;
676 bool has_src()
const;
678 static const int kSrcFieldNumber = 1;
679 const ::std::string& src()
const;
680 void set_src(const ::std::string& value);
681 void set_src(
const char* value);
682 void set_src(
const char* value,
size_t size);
683 ::std::string* mutable_src();
684 ::std::string* release_src();
685 void set_allocated_src(::std::string* src);
689 inline void set_has_src();
690 inline void clear_has_src();
692 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
693 ::google::protobuf::uint32 _has_bits_[1];
694 mutable int _cached_size_;
695 ::google::protobuf::internal::ArenaStringPtr src_;
696 friend void protobuf_AddDesc_erasurecoding_2eproto();
697 friend void protobuf_AssignDesc_erasurecoding_2eproto();
698 friend void protobuf_ShutdownFile_erasurecoding_2eproto();
700 void InitAsDefaultInstance();
717 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
718 return _internal_metadata_.unknown_fields();
721 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
722 return _internal_metadata_.mutable_unknown_fields();
725 static const ::google::protobuf::Descriptor* descriptor();
735 void CopyFrom(const ::google::protobuf::Message& from);
736 void MergeFrom(const ::google::protobuf::Message& from);
740 bool IsInitialized()
const;
742 int ByteSize()
const;
743 bool MergePartialFromCodedStream(
744 ::google::protobuf::io::CodedInputStream* input);
745 void SerializeWithCachedSizes(
746 ::google::protobuf::io::CodedOutputStream* output)
const;
747 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
748 bool deterministic, ::google::protobuf::uint8* output)
const;
749 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const {
750 return InternalSerializeWithCachedSizesToArray(
false, output);
752 int GetCachedSize()
const {
return _cached_size_; }
756 void SetCachedSize(
int size)
const;
759 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
760 return _internal_metadata_.arena();
762 inline void* MaybeArenaPtr()
const {
763 return _internal_metadata_.raw_arena_ptr();
767 ::google::protobuf::Metadata GetMetadata()
const;
774 bool has_ecpolicy()
const;
775 void clear_ecpolicy();
776 static const int kEcPolicyFieldNumber = 1;
777 const ::hadoop::hdfs::ErasureCodingPolicyProto& ecpolicy()
const;
784 inline void set_has_ecpolicy();
785 inline void clear_has_ecpolicy();
787 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
788 ::google::protobuf::uint32 _has_bits_[1];
789 mutable int _cached_size_;
791 friend void protobuf_AddDesc_erasurecoding_2eproto();
792 friend void protobuf_AssignDesc_erasurecoding_2eproto();
793 friend void protobuf_ShutdownFile_erasurecoding_2eproto();
795 void InitAsDefaultInstance();
812 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
813 return _internal_metadata_.unknown_fields();
816 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
817 return _internal_metadata_.mutable_unknown_fields();
820 static const ::google::protobuf::Descriptor* descriptor();
827 inline CodecProto* New()
const {
return New(NULL); }
829 CodecProto* New(::google::protobuf::Arena* arena)
const;
830 void CopyFrom(const ::google::protobuf::Message& from);
831 void MergeFrom(const ::google::protobuf::Message& from);
835 bool IsInitialized()
const;
837 int ByteSize()
const;
838 bool MergePartialFromCodedStream(
839 ::google::protobuf::io::CodedInputStream* input);
840 void SerializeWithCachedSizes(
841 ::google::protobuf::io::CodedOutputStream* output)
const;
842 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
843 bool deterministic, ::google::protobuf::uint8* output)
const;
844 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const {
845 return InternalSerializeWithCachedSizesToArray(
false, output);
847 int GetCachedSize()
const {
return _cached_size_; }
851 void SetCachedSize(
int size)
const;
854 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
855 return _internal_metadata_.arena();
857 inline void* MaybeArenaPtr()
const {
858 return _internal_metadata_.raw_arena_ptr();
862 ::google::protobuf::Metadata GetMetadata()
const;
869 bool has_codec()
const;
871 static const int kCodecFieldNumber = 1;
872 const ::std::string& codec()
const;
873 void set_codec(const ::std::string& value);
874 void set_codec(
const char* value);
875 void set_codec(
const char* value,
size_t size);
876 ::std::string* mutable_codec();
877 ::std::string* release_codec();
878 void set_allocated_codec(::std::string* codec);
881 bool has_coders()
const;
883 static const int kCodersFieldNumber = 2;
884 const ::std::string& coders()
const;
885 void set_coders(const ::std::string& value);
886 void set_coders(
const char* value);
887 void set_coders(
const char* value,
size_t size);
888 ::std::string* mutable_coders();
889 ::std::string* release_coders();
890 void set_allocated_coders(::std::string* coders);
894 inline void set_has_codec();
895 inline void clear_has_codec();
896 inline void set_has_coders();
897 inline void clear_has_coders();
900 int RequiredFieldsByteSizeFallback()
const;
902 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
903 ::google::protobuf::uint32 _has_bits_[1];
904 mutable int _cached_size_;
905 ::google::protobuf::internal::ArenaStringPtr codec_;
906 ::google::protobuf::internal::ArenaStringPtr coders_;
907 friend void protobuf_AddDesc_erasurecoding_2eproto();
908 friend void protobuf_AssignDesc_erasurecoding_2eproto();
909 friend void protobuf_ShutdownFile_erasurecoding_2eproto();
911 void InitAsDefaultInstance();
919 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
923 inline bool SetErasureCodingPolicyRequestProto::has_src()
const {
924 return (_has_bits_[0] & 0x00000001u) != 0;
926 inline void SetErasureCodingPolicyRequestProto::set_has_src() {
927 _has_bits_[0] |= 0x00000001u;
929 inline void SetErasureCodingPolicyRequestProto::clear_has_src() {
930 _has_bits_[0] &= ~0x00000001u;
932 inline void SetErasureCodingPolicyRequestProto::clear_src() {
933 src_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
936 inline const ::std::string& SetErasureCodingPolicyRequestProto::src()
const {
938 return src_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
940 inline void SetErasureCodingPolicyRequestProto::set_src(const ::std::string& value) {
942 src_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
945 inline void SetErasureCodingPolicyRequestProto::set_src(
const char* value) {
947 src_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
950 inline void SetErasureCodingPolicyRequestProto::set_src(
const char* value,
size_t size) {
952 src_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
953 ::std::string(reinterpret_cast<const char*>(value), size));
956 inline ::std::string* SetErasureCodingPolicyRequestProto::mutable_src() {
959 return src_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
961 inline ::std::string* SetErasureCodingPolicyRequestProto::release_src() {
964 return src_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
966 inline void SetErasureCodingPolicyRequestProto::set_allocated_src(::std::string* src) {
972 src_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), src);
977 inline bool SetErasureCodingPolicyRequestProto::has_ecpolicyname()
const {
978 return (_has_bits_[0] & 0x00000002u) != 0;
980 inline void SetErasureCodingPolicyRequestProto::set_has_ecpolicyname() {
981 _has_bits_[0] |= 0x00000002u;
983 inline void SetErasureCodingPolicyRequestProto::clear_has_ecpolicyname() {
984 _has_bits_[0] &= ~0x00000002u;
986 inline void SetErasureCodingPolicyRequestProto::clear_ecpolicyname() {
987 ecpolicyname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
988 clear_has_ecpolicyname();
990 inline const ::std::string& SetErasureCodingPolicyRequestProto::ecpolicyname()
const {
992 return ecpolicyname_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
994 inline void SetErasureCodingPolicyRequestProto::set_ecpolicyname(const ::std::string& value) {
995 set_has_ecpolicyname();
996 ecpolicyname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
999 inline void SetErasureCodingPolicyRequestProto::set_ecpolicyname(
const char* value) {
1000 set_has_ecpolicyname();
1001 ecpolicyname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1004 inline void SetErasureCodingPolicyRequestProto::set_ecpolicyname(
const char* value,
size_t size) {
1005 set_has_ecpolicyname();
1006 ecpolicyname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1007 ::std::string(reinterpret_cast<const char*>(value), size));
1010 inline ::std::string* SetErasureCodingPolicyRequestProto::mutable_ecpolicyname() {
1011 set_has_ecpolicyname();
1013 return ecpolicyname_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1015 inline ::std::string* SetErasureCodingPolicyRequestProto::release_ecpolicyname() {
1017 clear_has_ecpolicyname();
1018 return ecpolicyname_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1020 inline void SetErasureCodingPolicyRequestProto::set_allocated_ecpolicyname(::std::string* ecpolicyname) {
1021 if (ecpolicyname != NULL) {
1022 set_has_ecpolicyname();
1024 clear_has_ecpolicyname();
1026 ecpolicyname_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ecpolicyname);
1043 inline int GetErasureCodingPoliciesResponseProto::ecpolicies_size()
const {
1044 return ecpolicies_.size();
1046 inline void GetErasureCodingPoliciesResponseProto::clear_ecpolicies() {
1047 ecpolicies_.Clear();
1049 inline const ::hadoop::hdfs::ErasureCodingPolicyProto& GetErasureCodingPoliciesResponseProto::ecpolicies(
int index)
const {
1051 return ecpolicies_.Get(index);
1053 inline ::hadoop::hdfs::ErasureCodingPolicyProto* GetErasureCodingPoliciesResponseProto::mutable_ecpolicies(
int index) {
1055 return ecpolicies_.Mutable(index);
1057 inline ::hadoop::hdfs::ErasureCodingPolicyProto* GetErasureCodingPoliciesResponseProto::add_ecpolicies() {
1059 return ecpolicies_.Add();
1061 inline ::google::protobuf::RepeatedPtrField< ::hadoop::hdfs::ErasureCodingPolicyProto >*
1062 GetErasureCodingPoliciesResponseProto::mutable_ecpolicies() {
1064 return &ecpolicies_;
1066 inline const ::google::protobuf::RepeatedPtrField< ::hadoop::hdfs::ErasureCodingPolicyProto >&
1067 GetErasureCodingPoliciesResponseProto::ecpolicies()
const {
1081 inline int GetErasureCodingCodecsResponseProto::codec_size()
const {
1082 return codec_.size();
1084 inline void GetErasureCodingCodecsResponseProto::clear_codec() {
1087 inline const ::hadoop::hdfs::CodecProto& GetErasureCodingCodecsResponseProto::codec(
int index)
const {
1089 return codec_.Get(index);
1091 inline ::hadoop::hdfs::CodecProto* GetErasureCodingCodecsResponseProto::mutable_codec(
int index) {
1093 return codec_.Mutable(index);
1095 inline ::hadoop::hdfs::CodecProto* GetErasureCodingCodecsResponseProto::add_codec() {
1097 return codec_.Add();
1099 inline ::google::protobuf::RepeatedPtrField< ::hadoop::hdfs::CodecProto >*
1100 GetErasureCodingCodecsResponseProto::mutable_codec() {
1104 inline const ::google::protobuf::RepeatedPtrField< ::hadoop::hdfs::CodecProto >&
1105 GetErasureCodingCodecsResponseProto::codec()
const {
1115 inline bool GetErasureCodingPolicyRequestProto::has_src()
const {
1116 return (_has_bits_[0] & 0x00000001u) != 0;
1118 inline void GetErasureCodingPolicyRequestProto::set_has_src() {
1119 _has_bits_[0] |= 0x00000001u;
1121 inline void GetErasureCodingPolicyRequestProto::clear_has_src() {
1122 _has_bits_[0] &= ~0x00000001u;
1124 inline void GetErasureCodingPolicyRequestProto::clear_src() {
1125 src_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1128 inline const ::std::string& GetErasureCodingPolicyRequestProto::src()
const {
1130 return src_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1132 inline void GetErasureCodingPolicyRequestProto::set_src(const ::std::string& value) {
1134 src_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1137 inline void GetErasureCodingPolicyRequestProto::set_src(
const char* value) {
1139 src_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1142 inline void GetErasureCodingPolicyRequestProto::set_src(
const char* value,
size_t size) {
1144 src_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1145 ::std::string(reinterpret_cast<const char*>(value), size));
1148 inline ::std::string* GetErasureCodingPolicyRequestProto::mutable_src() {
1151 return src_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1153 inline ::std::string* GetErasureCodingPolicyRequestProto::release_src() {
1156 return src_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1158 inline void GetErasureCodingPolicyRequestProto::set_allocated_src(::std::string* src) {
1164 src_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), src);
1173 inline bool GetErasureCodingPolicyResponseProto::has_ecpolicy()
const {
1174 return (_has_bits_[0] & 0x00000001u) != 0;
1176 inline void GetErasureCodingPolicyResponseProto::set_has_ecpolicy() {
1177 _has_bits_[0] |= 0x00000001u;
1179 inline void GetErasureCodingPolicyResponseProto::clear_has_ecpolicy() {
1180 _has_bits_[0] &= ~0x00000001u;
1182 inline void GetErasureCodingPolicyResponseProto::clear_ecpolicy() {
1183 if (ecpolicy_ != NULL) ecpolicy_->::hadoop::hdfs::ErasureCodingPolicyProto::Clear();
1184 clear_has_ecpolicy();
1186 inline const ::hadoop::hdfs::ErasureCodingPolicyProto& GetErasureCodingPolicyResponseProto::ecpolicy()
const {
1188 return ecpolicy_ != NULL ? *ecpolicy_ : *default_instance_->ecpolicy_;
1190 inline ::hadoop::hdfs::ErasureCodingPolicyProto* GetErasureCodingPolicyResponseProto::mutable_ecpolicy() {
1192 if (ecpolicy_ == NULL) {
1193 ecpolicy_ = new ::hadoop::hdfs::ErasureCodingPolicyProto;
1198 inline ::hadoop::hdfs::ErasureCodingPolicyProto* GetErasureCodingPolicyResponseProto::release_ecpolicy() {
1200 clear_has_ecpolicy();
1207 ecpolicy_ = ecpolicy;
1211 clear_has_ecpolicy();
1221 inline bool CodecProto::has_codec()
const {
1222 return (_has_bits_[0] & 0x00000001u) != 0;
1224 inline void CodecProto::set_has_codec() {
1225 _has_bits_[0] |= 0x00000001u;
1227 inline void CodecProto::clear_has_codec() {
1228 _has_bits_[0] &= ~0x00000001u;
1230 inline void CodecProto::clear_codec() {
1231 codec_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1234 inline const ::std::string& CodecProto::codec()
const {
1236 return codec_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1238 inline void CodecProto::set_codec(const ::std::string& value) {
1240 codec_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1243 inline void CodecProto::set_codec(
const char* value) {
1245 codec_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1248 inline void CodecProto::set_codec(
const char* value,
size_t size) {
1250 codec_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1251 ::std::string(reinterpret_cast<const char*>(value), size));
1254 inline ::std::string* CodecProto::mutable_codec() {
1257 return codec_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1259 inline ::std::string* CodecProto::release_codec() {
1262 return codec_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1264 inline void CodecProto::set_allocated_codec(::std::string* codec) {
1265 if (codec != NULL) {
1270 codec_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), codec);
1275 inline bool CodecProto::has_coders()
const {
1276 return (_has_bits_[0] & 0x00000002u) != 0;
1278 inline void CodecProto::set_has_coders() {
1279 _has_bits_[0] |= 0x00000002u;
1281 inline void CodecProto::clear_has_coders() {
1282 _has_bits_[0] &= ~0x00000002u;
1284 inline void CodecProto::clear_coders() {
1285 coders_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1288 inline const ::std::string& CodecProto::coders()
const {
1290 return coders_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1292 inline void CodecProto::set_coders(const ::std::string& value) {
1294 coders_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1297 inline void CodecProto::set_coders(
const char* value) {
1299 coders_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1302 inline void CodecProto::set_coders(
const char* value,
size_t size) {
1304 coders_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1305 ::std::string(reinterpret_cast<const char*>(value), size));
1308 inline ::std::string* CodecProto::mutable_coders() {
1311 return coders_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1313 inline ::std::string* CodecProto::release_coders() {
1316 return coders_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1318 inline void CodecProto::set_allocated_coders(::std::string* coders) {
1319 if (coders != NULL) {
1324 coders_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), coders);
1328 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
1353 #endif // PROTOBUF_erasurecoding_2eproto__INCLUDED
Definition: erasurecoding.pb.h:800
Definition: erasurecoding.pb.h:53
Definition: erasurecoding.pb.h:607
Definition: erasurecoding.pb.h:249
Definition: erasurecoding.pb.h:332
Definition: erasurecoding.pb.h:511
Definition: erasurecoding.pb.h:705
Definition: erasurecoding.pb.h:428
Definition: hdfs.pb.h:3719
Definition: erasurecoding.pb.h:166