aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/Protos/cpp/google/api
diff options
context:
space:
mode:
Diffstat (limited to 'Firestore/Protos/cpp/google/api')
-rw-r--r--Firestore/Protos/cpp/google/api/annotations.pb.cc106
-rw-r--r--Firestore/Protos/cpp/google/api/annotations.pb.h98
-rw-r--r--Firestore/Protos/cpp/google/api/http.pb.cc1620
-rw-r--r--Firestore/Protos/cpp/google/api/http.pb.h1798
4 files changed, 3622 insertions, 0 deletions
diff --git a/Firestore/Protos/cpp/google/api/annotations.pb.cc b/Firestore/Protos/cpp/google/api/annotations.pb.cc
new file mode 100644
index 0000000..bfc3456
--- /dev/null
+++ b/Firestore/Protos/cpp/google/api/annotations.pb.cc
@@ -0,0 +1,106 @@
+/*
+ * Copyright 2018 Google
+ *
+ * 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.
+ */
+
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/api/annotations.proto
+
+#include "google/api/annotations.pb.h"
+
+#include <algorithm>
+
+#include <google/protobuf/stubs/common.h>
+#include <google/protobuf/stubs/port.h>
+#include <google/protobuf/stubs/once.h>
+#include <google/protobuf/io/coded_stream.h>
+#include <google/protobuf/wire_format_lite_inl.h>
+#include <google/protobuf/descriptor.h>
+#include <google/protobuf/generated_message_reflection.h>
+#include <google/protobuf/reflection_ops.h>
+#include <google/protobuf/wire_format.h>
+// This is a temporary google only hack
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+#include "third_party/protobuf/version.h"
+#endif
+// @@protoc_insertion_point(includes)
+namespace google {
+namespace api {
+} // namespace api
+} // namespace google
+namespace protobuf_google_2fapi_2fannotations_2eproto {
+const ::google::protobuf::uint32 TableStruct::offsets[1] = {};
+static const ::google::protobuf::internal::MigrationSchema* schemas = NULL;
+static const ::google::protobuf::Message* const* file_default_instances = NULL;
+
+void protobuf_AssignDescriptors() {
+ AddDescriptors();
+ ::google::protobuf::MessageFactory* factory = NULL;
+ AssignDescriptors(
+ "google/api/annotations.proto", schemas, file_default_instances, TableStruct::offsets, factory,
+ NULL, NULL, NULL);
+}
+
+void protobuf_AssignDescriptorsOnce() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
+}
+
+void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
+void protobuf_RegisterTypes(const ::std::string&) {
+ protobuf_AssignDescriptorsOnce();
+}
+
+void AddDescriptorsImpl() {
+ InitDefaults();
+ static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ "\n\034google/api/annotations.proto\022\ngoogle.a"
+ "pi\032\025google/api/http.proto\032 google/protob"
+ "uf/descriptor.proto:E\n\004http\022\036.google.pro"
+ "tobuf.MethodOptions\030\260\312\274\" \001(\0132\024.google.ap"
+ "i.HttpRuleBn\n\016com.google.apiB\020Annotation"
+ "sProtoP\001ZAgoogle.golang.org/genproto/goo"
+ "gleapis/api/annotations;annotations\242\002\004GA"
+ "PIb\006proto3"
+ };
+ ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
+ descriptor, 290);
+ ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
+ "google/api/annotations.proto", &protobuf_RegisterTypes);
+ ::protobuf_google_2fapi_2fhttp_2eproto::AddDescriptors();
+ ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::AddDescriptors();
+}
+
+void AddDescriptors() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
+}
+// Force AddDescriptors() to be called at dynamic initialization time.
+struct StaticDescriptorInitializer {
+ StaticDescriptorInitializer() {
+ AddDescriptors();
+ }
+} static_descriptor_initializer;
+} // namespace protobuf_google_2fapi_2fannotations_2eproto
+namespace google {
+namespace api {
+::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MethodOptions,
+ ::google::protobuf::internal::MessageTypeTraits< ::google::api::HttpRule >, 11, false >
+ http(kHttpFieldNumber, *::google::api::HttpRule::internal_default_instance());
+
+// @@protoc_insertion_point(namespace_scope)
+} // namespace api
+} // namespace google
+
+// @@protoc_insertion_point(global_scope)
diff --git a/Firestore/Protos/cpp/google/api/annotations.pb.h b/Firestore/Protos/cpp/google/api/annotations.pb.h
new file mode 100644
index 0000000..a1335d6
--- /dev/null
+++ b/Firestore/Protos/cpp/google/api/annotations.pb.h
@@ -0,0 +1,98 @@
+/*
+ * Copyright 2018 Google
+ *
+ * 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.
+ */
+
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/api/annotations.proto
+
+#ifndef PROTOBUF_google_2fapi_2fannotations_2eproto__INCLUDED
+#define PROTOBUF_google_2fapi_2fannotations_2eproto__INCLUDED
+
+#include <string>
+
+#include <google/protobuf/stubs/common.h>
+
+#if GOOGLE_PROTOBUF_VERSION < 3005000
+#error This file was generated by a newer version of protoc which is
+#error incompatible with your Protocol Buffer headers. Please update
+#error your headers.
+#endif
+#if 3005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
+#error This file was generated by an older version of protoc which is
+#error incompatible with your Protocol Buffer headers. Please
+#error regenerate this file with a newer version of protoc.
+#endif
+
+#include <google/protobuf/io/coded_stream.h>
+#include <google/protobuf/arena.h>
+#include <google/protobuf/arenastring.h>
+#include <google/protobuf/generated_message_table_driven.h>
+#include <google/protobuf/generated_message_util.h>
+#include <google/protobuf/metadata.h>
+#include <google/protobuf/repeated_field.h> // IWYU pragma: export
+#include <google/protobuf/extension_set.h> // IWYU pragma: export
+#include "google/api/http.pb.h"
+#include <google/protobuf/descriptor.pb.h>
+// @@protoc_insertion_point(includes)
+
+namespace protobuf_google_2fapi_2fannotations_2eproto {
+// Internal implementation detail -- do not use these members.
+struct TableStruct {
+ static const ::google::protobuf::internal::ParseTableField entries[];
+ static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
+ static const ::google::protobuf::internal::ParseTable schema[1];
+ static const ::google::protobuf::internal::FieldMetadata field_metadata[];
+ static const ::google::protobuf::internal::SerializationTable serialization_table[];
+ static const ::google::protobuf::uint32 offsets[];
+};
+void AddDescriptors();
+inline void InitDefaults() {
+}
+} // namespace protobuf_google_2fapi_2fannotations_2eproto
+namespace google {
+namespace api {
+} // namespace api
+} // namespace google
+namespace google {
+namespace api {
+
+// ===================================================================
+
+
+// ===================================================================
+
+static const int kHttpFieldNumber = 72295728;
+extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MethodOptions,
+ ::google::protobuf::internal::MessageTypeTraits< ::google::api::HttpRule >, 11, false >
+ http;
+
+// ===================================================================
+
+#ifdef __GNUC__
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wstrict-aliasing"
+#endif // __GNUC__
+#ifdef __GNUC__
+ #pragma GCC diagnostic pop
+#endif // __GNUC__
+
+// @@protoc_insertion_point(namespace_scope)
+
+} // namespace api
+} // namespace google
+
+// @@protoc_insertion_point(global_scope)
+
+#endif // PROTOBUF_google_2fapi_2fannotations_2eproto__INCLUDED
diff --git a/Firestore/Protos/cpp/google/api/http.pb.cc b/Firestore/Protos/cpp/google/api/http.pb.cc
new file mode 100644
index 0000000..b691cfd
--- /dev/null
+++ b/Firestore/Protos/cpp/google/api/http.pb.cc
@@ -0,0 +1,1620 @@
+/*
+ * Copyright 2018 Google
+ *
+ * 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.
+ */
+
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/api/http.proto
+
+#include "google/api/http.pb.h"
+
+#include <algorithm>
+
+#include <google/protobuf/stubs/common.h>
+#include <google/protobuf/stubs/port.h>
+#include <google/protobuf/stubs/once.h>
+#include <google/protobuf/io/coded_stream.h>
+#include <google/protobuf/wire_format_lite_inl.h>
+#include <google/protobuf/descriptor.h>
+#include <google/protobuf/generated_message_reflection.h>
+#include <google/protobuf/reflection_ops.h>
+#include <google/protobuf/wire_format.h>
+// This is a temporary google only hack
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+#include "third_party/protobuf/version.h"
+#endif
+// @@protoc_insertion_point(includes)
+namespace google {
+namespace api {
+class HttpDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<Http>
+ _instance;
+} _Http_default_instance_;
+class HttpRuleDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<HttpRule>
+ _instance;
+ ::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_;
+ const ::google::api::CustomHttpPattern* custom_;
+} _HttpRule_default_instance_;
+class CustomHttpPatternDefaultTypeInternal {
+ public:
+ ::google::protobuf::internal::ExplicitlyConstructed<CustomHttpPattern>
+ _instance;
+} _CustomHttpPattern_default_instance_;
+} // namespace api
+} // namespace google
+namespace protobuf_google_2fapi_2fhttp_2eproto {
+void InitDefaultsHttpImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2fapi_2fhttp_2eproto::InitDefaultsHttpRule();
+ {
+ void* ptr = &::google::api::_Http_default_instance_;
+ new (ptr) ::google::api::Http();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::api::Http::InitAsDefaultInstance();
+}
+
+void InitDefaultsHttp() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsHttpImpl);
+}
+
+void InitDefaultsHttpRuleImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ protobuf_google_2fapi_2fhttp_2eproto::InitDefaultsCustomHttpPattern();
+ {
+ void* ptr = &::google::api::_HttpRule_default_instance_;
+ new (ptr) ::google::api::HttpRule();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::api::HttpRule::InitAsDefaultInstance();
+}
+
+void InitDefaultsHttpRule() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsHttpRuleImpl);
+}
+
+void InitDefaultsCustomHttpPatternImpl() {
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
+#else
+ ::google::protobuf::internal::InitProtobufDefaults();
+#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
+ {
+ void* ptr = &::google::api::_CustomHttpPattern_default_instance_;
+ new (ptr) ::google::api::CustomHttpPattern();
+ ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
+ }
+ ::google::api::CustomHttpPattern::InitAsDefaultInstance();
+}
+
+void InitDefaultsCustomHttpPattern() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCustomHttpPatternImpl);
+}
+
+::google::protobuf::Metadata file_level_metadata[3];
+
+const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::api::Http, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::api::Http, rules_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::api::HttpRule, _internal_metadata_),
+ ~0u, // no _extensions_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::api::HttpRule, _oneof_case_[0]),
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::api::HttpRule, selector_),
+ offsetof(::google::api::HttpRuleDefaultTypeInternal, get_),
+ offsetof(::google::api::HttpRuleDefaultTypeInternal, put_),
+ offsetof(::google::api::HttpRuleDefaultTypeInternal, post_),
+ offsetof(::google::api::HttpRuleDefaultTypeInternal, delete__),
+ offsetof(::google::api::HttpRuleDefaultTypeInternal, patch_),
+ offsetof(::google::api::HttpRuleDefaultTypeInternal, custom_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::api::HttpRule, body_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::api::HttpRule, additional_bindings_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::api::HttpRule, pattern_),
+ ~0u, // no _has_bits_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::api::CustomHttpPattern, _internal_metadata_),
+ ~0u, // no _extensions_
+ ~0u, // no _oneof_case_
+ ~0u, // no _weak_field_map_
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::api::CustomHttpPattern, kind_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::api::CustomHttpPattern, path_),
+};
+static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ { 0, -1, sizeof(::google::api::Http)},
+ { 6, -1, sizeof(::google::api::HttpRule)},
+ { 21, -1, sizeof(::google::api::CustomHttpPattern)},
+};
+
+static ::google::protobuf::Message const * const file_default_instances[] = {
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::api::_Http_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::api::_HttpRule_default_instance_),
+ reinterpret_cast<const ::google::protobuf::Message*>(&::google::api::_CustomHttpPattern_default_instance_),
+};
+
+void protobuf_AssignDescriptors() {
+ AddDescriptors();
+ ::google::protobuf::MessageFactory* factory = NULL;
+ AssignDescriptors(
+ "google/api/http.proto", schemas, file_default_instances, TableStruct::offsets, factory,
+ file_level_metadata, NULL, NULL);
+}
+
+void protobuf_AssignDescriptorsOnce() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
+}
+
+void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
+void protobuf_RegisterTypes(const ::std::string&) {
+ protobuf_AssignDescriptorsOnce();
+ ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 3);
+}
+
+void AddDescriptorsImpl() {
+ InitDefaults();
+ static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
+ "\n\025google/api/http.proto\022\ngoogle.api\"+\n\004H"
+ "ttp\022#\n\005rules\030\001 \003(\0132\024.google.api.HttpRule"
+ "\"\352\001\n\010HttpRule\022\020\n\010selector\030\001 \001(\t\022\r\n\003get\030\002"
+ " \001(\tH\000\022\r\n\003put\030\003 \001(\tH\000\022\016\n\004post\030\004 \001(\tH\000\022\020\n"
+ "\006delete\030\005 \001(\tH\000\022\017\n\005patch\030\006 \001(\tH\000\022/\n\006cust"
+ "om\030\010 \001(\0132\035.google.api.CustomHttpPatternH"
+ "\000\022\014\n\004body\030\007 \001(\t\0221\n\023additional_bindings\030\013"
+ " \003(\0132\024.google.api.HttpRuleB\t\n\007pattern\"/\n"
+ "\021CustomHttpPattern\022\014\n\004kind\030\001 \001(\t\022\014\n\004path"
+ "\030\002 \001(\tBj\n\016com.google.apiB\tHttpProtoP\001ZAg"
+ "oogle.golang.org/genproto/googleapis/api"
+ "/annotations;annotations\370\001\001\242\002\004GAPIb\006prot"
+ "o3"
+ };
+ ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
+ descriptor, 482);
+ ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
+ "google/api/http.proto", &protobuf_RegisterTypes);
+}
+
+void AddDescriptors() {
+ static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
+ ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
+}
+// Force AddDescriptors() to be called at dynamic initialization time.
+struct StaticDescriptorInitializer {
+ StaticDescriptorInitializer() {
+ AddDescriptors();
+ }
+} static_descriptor_initializer;
+} // namespace protobuf_google_2fapi_2fhttp_2eproto
+namespace google {
+namespace api {
+
+// ===================================================================
+
+void Http::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int Http::kRulesFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+Http::Http()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2fapi_2fhttp_2eproto::InitDefaultsHttp();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.api.Http)
+}
+Http::Http(::google::protobuf::Arena* arena)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(arena),
+ rules_(arena) {
+ ::protobuf_google_2fapi_2fhttp_2eproto::InitDefaultsHttp();
+ SharedCtor();
+ RegisterArenaDtor(arena);
+ // @@protoc_insertion_point(arena_constructor:google.api.Http)
+}
+Http::Http(const Http& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ rules_(from.rules_),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ // @@protoc_insertion_point(copy_constructor:google.api.Http)
+}
+
+void Http::SharedCtor() {
+ _cached_size_ = 0;
+}
+
+Http::~Http() {
+ // @@protoc_insertion_point(destructor:google.api.Http)
+ SharedDtor();
+}
+
+void Http::SharedDtor() {
+ GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
+}
+
+void Http::ArenaDtor(void* object) {
+ Http* _this = reinterpret_cast< Http* >(object);
+ (void)_this;
+}
+void Http::RegisterArenaDtor(::google::protobuf::Arena* arena) {
+}
+void Http::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* Http::descriptor() {
+ ::protobuf_google_2fapi_2fhttp_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2fapi_2fhttp_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const Http& Http::default_instance() {
+ ::protobuf_google_2fapi_2fhttp_2eproto::InitDefaultsHttp();
+ return *internal_default_instance();
+}
+
+Http* Http::New(::google::protobuf::Arena* arena) const {
+ return ::google::protobuf::Arena::CreateMessage<Http>(arena);
+}
+
+void Http::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.api.Http)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ rules_.Clear();
+ _internal_metadata_.Clear();
+}
+
+bool Http::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.api.Http)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // repeated .google.api.HttpRule rules = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_rules()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.api.Http)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.api.Http)
+ return false;
+#undef DO_
+}
+
+void Http::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.api.Http)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // repeated .google.api.HttpRule rules = 1;
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->rules_size()); i < n; i++) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 1, this->rules(static_cast<int>(i)), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.api.Http)
+}
+
+::google::protobuf::uint8* Http::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.api.Http)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // repeated .google.api.HttpRule rules = 1;
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->rules_size()); i < n; i++) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 1, this->rules(static_cast<int>(i)), deterministic, target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.api.Http)
+ return target;
+}
+
+size_t Http::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.api.Http)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // repeated .google.api.HttpRule rules = 1;
+ {
+ unsigned int count = static_cast<unsigned int>(this->rules_size());
+ total_size += 1UL * count;
+ for (unsigned int i = 0; i < count; i++) {
+ total_size +=
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ this->rules(static_cast<int>(i)));
+ }
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void Http::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.api.Http)
+ GOOGLE_DCHECK_NE(&from, this);
+ const Http* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const Http>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.api.Http)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.api.Http)
+ MergeFrom(*source);
+ }
+}
+
+void Http::MergeFrom(const Http& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.api.Http)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ rules_.MergeFrom(from.rules_);
+}
+
+void Http::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.api.Http)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void Http::CopyFrom(const Http& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.api.Http)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool Http::IsInitialized() const {
+ return true;
+}
+
+void Http::Swap(Http* other) {
+ if (other == this) return;
+ if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
+ InternalSwap(other);
+ } else {
+ Http* temp = New(GetArenaNoVirtual());
+ temp->MergeFrom(*other);
+ other->CopyFrom(*this);
+ InternalSwap(temp);
+ if (GetArenaNoVirtual() == NULL) {
+ delete temp;
+ }
+ }
+}
+void Http::UnsafeArenaSwap(Http* other) {
+ if (other == this) return;
+ GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
+ InternalSwap(other);
+}
+void Http::InternalSwap(Http* other) {
+ using std::swap;
+ rules_.InternalSwap(&other->rules_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata Http::GetMetadata() const {
+ protobuf_google_2fapi_2fhttp_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2fapi_2fhttp_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void HttpRule::InitAsDefaultInstance() {
+ ::google::api::_HttpRule_default_instance_.get_.UnsafeSetDefault(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::google::api::_HttpRule_default_instance_.put_.UnsafeSetDefault(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::google::api::_HttpRule_default_instance_.post_.UnsafeSetDefault(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::google::api::_HttpRule_default_instance_.delete__.UnsafeSetDefault(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::google::api::_HttpRule_default_instance_.patch_.UnsafeSetDefault(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::google::api::_HttpRule_default_instance_.custom_ = const_cast< ::google::api::CustomHttpPattern*>(
+ ::google::api::CustomHttpPattern::internal_default_instance());
+}
+void HttpRule::set_allocated_custom(::google::api::CustomHttpPattern* custom) {
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
+ clear_pattern();
+ if (custom) {
+ ::google::protobuf::Arena* submessage_arena =
+ ::google::protobuf::Arena::GetArena(custom);
+ if (message_arena != submessage_arena) {
+ custom = ::google::protobuf::internal::GetOwnedMessage(
+ message_arena, custom, submessage_arena);
+ }
+ set_has_custom();
+ pattern_.custom_ = custom;
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.custom)
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int HttpRule::kSelectorFieldNumber;
+const int HttpRule::kGetFieldNumber;
+const int HttpRule::kPutFieldNumber;
+const int HttpRule::kPostFieldNumber;
+const int HttpRule::kDeleteFieldNumber;
+const int HttpRule::kPatchFieldNumber;
+const int HttpRule::kCustomFieldNumber;
+const int HttpRule::kBodyFieldNumber;
+const int HttpRule::kAdditionalBindingsFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+HttpRule::HttpRule()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2fapi_2fhttp_2eproto::InitDefaultsHttpRule();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.api.HttpRule)
+}
+HttpRule::HttpRule(::google::protobuf::Arena* arena)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(arena),
+ additional_bindings_(arena) {
+ ::protobuf_google_2fapi_2fhttp_2eproto::InitDefaultsHttpRule();
+ SharedCtor();
+ RegisterArenaDtor(arena);
+ // @@protoc_insertion_point(arena_constructor:google.api.HttpRule)
+}
+HttpRule::HttpRule(const HttpRule& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ additional_bindings_(from.additional_bindings_),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ selector_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.selector().size() > 0) {
+ selector_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.selector(),
+ GetArenaNoVirtual());
+ }
+ body_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.body().size() > 0) {
+ body_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.body(),
+ GetArenaNoVirtual());
+ }
+ clear_has_pattern();
+ switch (from.pattern_case()) {
+ case kGet: {
+ set_get(from.get());
+ break;
+ }
+ case kPut: {
+ set_put(from.put());
+ break;
+ }
+ case kPost: {
+ set_post(from.post());
+ break;
+ }
+ case kDelete: {
+ set_delete_(from.delete_());
+ break;
+ }
+ case kPatch: {
+ set_patch(from.patch());
+ break;
+ }
+ case kCustom: {
+ mutable_custom()->::google::api::CustomHttpPattern::MergeFrom(from.custom());
+ break;
+ }
+ case PATTERN_NOT_SET: {
+ break;
+ }
+ }
+ // @@protoc_insertion_point(copy_constructor:google.api.HttpRule)
+}
+
+void HttpRule::SharedCtor() {
+ selector_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ body_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ clear_has_pattern();
+ _cached_size_ = 0;
+}
+
+HttpRule::~HttpRule() {
+ // @@protoc_insertion_point(destructor:google.api.HttpRule)
+ SharedDtor();
+}
+
+void HttpRule::SharedDtor() {
+ GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
+ selector_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ body_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (has_pattern()) {
+ clear_pattern();
+ }
+}
+
+void HttpRule::ArenaDtor(void* object) {
+ HttpRule* _this = reinterpret_cast< HttpRule* >(object);
+ (void)_this;
+}
+void HttpRule::RegisterArenaDtor(::google::protobuf::Arena* arena) {
+}
+void HttpRule::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* HttpRule::descriptor() {
+ ::protobuf_google_2fapi_2fhttp_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2fapi_2fhttp_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const HttpRule& HttpRule::default_instance() {
+ ::protobuf_google_2fapi_2fhttp_2eproto::InitDefaultsHttpRule();
+ return *internal_default_instance();
+}
+
+HttpRule* HttpRule::New(::google::protobuf::Arena* arena) const {
+ return ::google::protobuf::Arena::CreateMessage<HttpRule>(arena);
+}
+
+void HttpRule::clear_pattern() {
+// @@protoc_insertion_point(one_of_clear_start:google.api.HttpRule)
+ switch (pattern_case()) {
+ case kGet: {
+ pattern_.get_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ break;
+ }
+ case kPut: {
+ pattern_.put_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ break;
+ }
+ case kPost: {
+ pattern_.post_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ break;
+ }
+ case kDelete: {
+ pattern_.delete__.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ break;
+ }
+ case kPatch: {
+ pattern_.patch_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ break;
+ }
+ case kCustom: {
+ if (GetArenaNoVirtual() == NULL) {
+ delete pattern_.custom_;
+ }
+ break;
+ }
+ case PATTERN_NOT_SET: {
+ break;
+ }
+ }
+ _oneof_case_[0] = PATTERN_NOT_SET;
+}
+
+
+void HttpRule::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.api.HttpRule)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ additional_bindings_.Clear();
+ selector_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+ body_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+ clear_pattern();
+ _internal_metadata_.Clear();
+}
+
+bool HttpRule::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.api.HttpRule)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // string selector = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_selector()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->selector().data(), static_cast<int>(this->selector().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.api.HttpRule.selector"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // string get = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_get()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->get().data(), static_cast<int>(this->get().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.api.HttpRule.get"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // string put = 3;
+ case 3: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_put()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->put().data(), static_cast<int>(this->put().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.api.HttpRule.put"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // string post = 4;
+ case 4: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_post()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->post().data(), static_cast<int>(this->post().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.api.HttpRule.post"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // string delete = 5;
+ case 5: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_delete_()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->delete_().data(), static_cast<int>(this->delete_().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.api.HttpRule.delete"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // string patch = 6;
+ case 6: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_patch()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->patch().data(), static_cast<int>(this->patch().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.api.HttpRule.patch"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // string body = 7;
+ case 7: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_body()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->body().data(), static_cast<int>(this->body().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.api.HttpRule.body"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // .google.api.CustomHttpPattern custom = 8;
+ case 8: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
+ input, mutable_custom()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // repeated .google.api.HttpRule additional_bindings = 11;
+ case 11: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_additional_bindings()));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.api.HttpRule)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.api.HttpRule)
+ return false;
+#undef DO_
+}
+
+void HttpRule::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.api.HttpRule)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string selector = 1;
+ if (this->selector().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->selector().data(), static_cast<int>(this->selector().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.api.HttpRule.selector");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 1, this->selector(), output);
+ }
+
+ // string get = 2;
+ if (has_get()) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->get().data(), static_cast<int>(this->get().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.api.HttpRule.get");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 2, this->get(), output);
+ }
+
+ // string put = 3;
+ if (has_put()) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->put().data(), static_cast<int>(this->put().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.api.HttpRule.put");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 3, this->put(), output);
+ }
+
+ // string post = 4;
+ if (has_post()) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->post().data(), static_cast<int>(this->post().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.api.HttpRule.post");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 4, this->post(), output);
+ }
+
+ // string delete = 5;
+ if (has_delete_()) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->delete_().data(), static_cast<int>(this->delete_().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.api.HttpRule.delete");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 5, this->delete_(), output);
+ }
+
+ // string patch = 6;
+ if (has_patch()) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->patch().data(), static_cast<int>(this->patch().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.api.HttpRule.patch");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 6, this->patch(), output);
+ }
+
+ // string body = 7;
+ if (this->body().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->body().data(), static_cast<int>(this->body().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.api.HttpRule.body");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 7, this->body(), output);
+ }
+
+ // .google.api.CustomHttpPattern custom = 8;
+ if (has_custom()) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 8, *pattern_.custom_, output);
+ }
+
+ // repeated .google.api.HttpRule additional_bindings = 11;
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->additional_bindings_size()); i < n; i++) {
+ ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
+ 11, this->additional_bindings(static_cast<int>(i)), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.api.HttpRule)
+}
+
+::google::protobuf::uint8* HttpRule::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.api.HttpRule)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string selector = 1;
+ if (this->selector().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->selector().data(), static_cast<int>(this->selector().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.api.HttpRule.selector");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 1, this->selector(), target);
+ }
+
+ // string get = 2;
+ if (has_get()) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->get().data(), static_cast<int>(this->get().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.api.HttpRule.get");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 2, this->get(), target);
+ }
+
+ // string put = 3;
+ if (has_put()) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->put().data(), static_cast<int>(this->put().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.api.HttpRule.put");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 3, this->put(), target);
+ }
+
+ // string post = 4;
+ if (has_post()) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->post().data(), static_cast<int>(this->post().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.api.HttpRule.post");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 4, this->post(), target);
+ }
+
+ // string delete = 5;
+ if (has_delete_()) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->delete_().data(), static_cast<int>(this->delete_().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.api.HttpRule.delete");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 5, this->delete_(), target);
+ }
+
+ // string patch = 6;
+ if (has_patch()) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->patch().data(), static_cast<int>(this->patch().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.api.HttpRule.patch");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 6, this->patch(), target);
+ }
+
+ // string body = 7;
+ if (this->body().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->body().data(), static_cast<int>(this->body().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.api.HttpRule.body");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 7, this->body(), target);
+ }
+
+ // .google.api.CustomHttpPattern custom = 8;
+ if (has_custom()) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 8, *pattern_.custom_, deterministic, target);
+ }
+
+ // repeated .google.api.HttpRule additional_bindings = 11;
+ for (unsigned int i = 0,
+ n = static_cast<unsigned int>(this->additional_bindings_size()); i < n; i++) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ InternalWriteMessageToArray(
+ 11, this->additional_bindings(static_cast<int>(i)), deterministic, target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.api.HttpRule)
+ return target;
+}
+
+size_t HttpRule::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.api.HttpRule)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // repeated .google.api.HttpRule additional_bindings = 11;
+ {
+ unsigned int count = static_cast<unsigned int>(this->additional_bindings_size());
+ total_size += 1UL * count;
+ for (unsigned int i = 0; i < count; i++) {
+ total_size +=
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ this->additional_bindings(static_cast<int>(i)));
+ }
+ }
+
+ // string selector = 1;
+ if (this->selector().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->selector());
+ }
+
+ // string body = 7;
+ if (this->body().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->body());
+ }
+
+ switch (pattern_case()) {
+ // string get = 2;
+ case kGet: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->get());
+ break;
+ }
+ // string put = 3;
+ case kPut: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->put());
+ break;
+ }
+ // string post = 4;
+ case kPost: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->post());
+ break;
+ }
+ // string delete = 5;
+ case kDelete: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->delete_());
+ break;
+ }
+ // string patch = 6;
+ case kPatch: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->patch());
+ break;
+ }
+ // .google.api.CustomHttpPattern custom = 8;
+ case kCustom: {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::MessageSize(
+ *pattern_.custom_);
+ break;
+ }
+ case PATTERN_NOT_SET: {
+ break;
+ }
+ }
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void HttpRule::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.api.HttpRule)
+ GOOGLE_DCHECK_NE(&from, this);
+ const HttpRule* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const HttpRule>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.api.HttpRule)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.api.HttpRule)
+ MergeFrom(*source);
+ }
+}
+
+void HttpRule::MergeFrom(const HttpRule& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.api.HttpRule)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ additional_bindings_.MergeFrom(from.additional_bindings_);
+ if (from.selector().size() > 0) {
+ set_selector(from.selector());
+ }
+ if (from.body().size() > 0) {
+ set_body(from.body());
+ }
+ switch (from.pattern_case()) {
+ case kGet: {
+ set_get(from.get());
+ break;
+ }
+ case kPut: {
+ set_put(from.put());
+ break;
+ }
+ case kPost: {
+ set_post(from.post());
+ break;
+ }
+ case kDelete: {
+ set_delete_(from.delete_());
+ break;
+ }
+ case kPatch: {
+ set_patch(from.patch());
+ break;
+ }
+ case kCustom: {
+ mutable_custom()->::google::api::CustomHttpPattern::MergeFrom(from.custom());
+ break;
+ }
+ case PATTERN_NOT_SET: {
+ break;
+ }
+ }
+}
+
+void HttpRule::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.api.HttpRule)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void HttpRule::CopyFrom(const HttpRule& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.api.HttpRule)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool HttpRule::IsInitialized() const {
+ return true;
+}
+
+void HttpRule::Swap(HttpRule* other) {
+ if (other == this) return;
+ if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
+ InternalSwap(other);
+ } else {
+ HttpRule* temp = New(GetArenaNoVirtual());
+ temp->MergeFrom(*other);
+ other->CopyFrom(*this);
+ InternalSwap(temp);
+ if (GetArenaNoVirtual() == NULL) {
+ delete temp;
+ }
+ }
+}
+void HttpRule::UnsafeArenaSwap(HttpRule* other) {
+ if (other == this) return;
+ GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
+ InternalSwap(other);
+}
+void HttpRule::InternalSwap(HttpRule* other) {
+ using std::swap;
+ additional_bindings_.InternalSwap(&other->additional_bindings_);
+ selector_.Swap(&other->selector_);
+ body_.Swap(&other->body_);
+ swap(pattern_, other->pattern_);
+ swap(_oneof_case_[0], other->_oneof_case_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata HttpRule::GetMetadata() const {
+ protobuf_google_2fapi_2fhttp_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2fapi_2fhttp_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// ===================================================================
+
+void CustomHttpPattern::InitAsDefaultInstance() {
+}
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int CustomHttpPattern::kKindFieldNumber;
+const int CustomHttpPattern::kPathFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+CustomHttpPattern::CustomHttpPattern()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
+ ::protobuf_google_2fapi_2fhttp_2eproto::InitDefaultsCustomHttpPattern();
+ }
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:google.api.CustomHttpPattern)
+}
+CustomHttpPattern::CustomHttpPattern(::google::protobuf::Arena* arena)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(arena) {
+ ::protobuf_google_2fapi_2fhttp_2eproto::InitDefaultsCustomHttpPattern();
+ SharedCtor();
+ RegisterArenaDtor(arena);
+ // @@protoc_insertion_point(arena_constructor:google.api.CustomHttpPattern)
+}
+CustomHttpPattern::CustomHttpPattern(const CustomHttpPattern& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL),
+ _cached_size_(0) {
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ kind_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.kind().size() > 0) {
+ kind_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.kind(),
+ GetArenaNoVirtual());
+ }
+ path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ if (from.path().size() > 0) {
+ path_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.path(),
+ GetArenaNoVirtual());
+ }
+ // @@protoc_insertion_point(copy_constructor:google.api.CustomHttpPattern)
+}
+
+void CustomHttpPattern::SharedCtor() {
+ kind_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ _cached_size_ = 0;
+}
+
+CustomHttpPattern::~CustomHttpPattern() {
+ // @@protoc_insertion_point(destructor:google.api.CustomHttpPattern)
+ SharedDtor();
+}
+
+void CustomHttpPattern::SharedDtor() {
+ GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
+ kind_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ path_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+}
+
+void CustomHttpPattern::ArenaDtor(void* object) {
+ CustomHttpPattern* _this = reinterpret_cast< CustomHttpPattern* >(object);
+ (void)_this;
+}
+void CustomHttpPattern::RegisterArenaDtor(::google::protobuf::Arena* arena) {
+}
+void CustomHttpPattern::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* CustomHttpPattern::descriptor() {
+ ::protobuf_google_2fapi_2fhttp_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2fapi_2fhttp_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
+}
+
+const CustomHttpPattern& CustomHttpPattern::default_instance() {
+ ::protobuf_google_2fapi_2fhttp_2eproto::InitDefaultsCustomHttpPattern();
+ return *internal_default_instance();
+}
+
+CustomHttpPattern* CustomHttpPattern::New(::google::protobuf::Arena* arena) const {
+ return ::google::protobuf::Arena::CreateMessage<CustomHttpPattern>(arena);
+}
+
+void CustomHttpPattern::Clear() {
+// @@protoc_insertion_point(message_clear_start:google.api.CustomHttpPattern)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ // Prevent compiler warnings about cached_has_bits being unused
+ (void) cached_has_bits;
+
+ kind_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+ path_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+ _internal_metadata_.Clear();
+}
+
+bool CustomHttpPattern::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:google.api.CustomHttpPattern)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // string kind = 1;
+ case 1: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_kind()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->kind().data(), static_cast<int>(this->kind().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.api.CustomHttpPattern.kind"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ // string path = 2;
+ case 2: {
+ if (static_cast< ::google::protobuf::uint8>(tag) ==
+ static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
+ DO_(::google::protobuf::internal::WireFormatLite::ReadString(
+ input, this->mutable_path()));
+ DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->path().data(), static_cast<int>(this->path().length()),
+ ::google::protobuf::internal::WireFormatLite::PARSE,
+ "google.api.CustomHttpPattern.path"));
+ } else {
+ goto handle_unusual;
+ }
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, _internal_metadata_.mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:google.api.CustomHttpPattern)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:google.api.CustomHttpPattern)
+ return false;
+#undef DO_
+}
+
+void CustomHttpPattern::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:google.api.CustomHttpPattern)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string kind = 1;
+ if (this->kind().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->kind().data(), static_cast<int>(this->kind().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.api.CustomHttpPattern.kind");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 1, this->kind(), output);
+ }
+
+ // string path = 2;
+ if (this->path().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->path().data(), static_cast<int>(this->path().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.api.CustomHttpPattern.path");
+ ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
+ 2, this->path(), output);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
+ }
+ // @@protoc_insertion_point(serialize_end:google.api.CustomHttpPattern)
+}
+
+::google::protobuf::uint8* CustomHttpPattern::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:google.api.CustomHttpPattern)
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ // string kind = 1;
+ if (this->kind().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->kind().data(), static_cast<int>(this->kind().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.api.CustomHttpPattern.kind");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 1, this->kind(), target);
+ }
+
+ // string path = 2;
+ if (this->path().size() > 0) {
+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
+ this->path().data(), static_cast<int>(this->path().length()),
+ ::google::protobuf::internal::WireFormatLite::SERIALIZE,
+ "google.api.CustomHttpPattern.path");
+ target =
+ ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
+ 2, this->path(), target);
+ }
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:google.api.CustomHttpPattern)
+ return target;
+}
+
+size_t CustomHttpPattern::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:google.api.CustomHttpPattern)
+ size_t total_size = 0;
+
+ if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
+ }
+ // string kind = 1;
+ if (this->kind().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->kind());
+ }
+
+ // string path = 2;
+ if (this->path().size() > 0) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::StringSize(
+ this->path());
+ }
+
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void CustomHttpPattern::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:google.api.CustomHttpPattern)
+ GOOGLE_DCHECK_NE(&from, this);
+ const CustomHttpPattern* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const CustomHttpPattern>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.api.CustomHttpPattern)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:google.api.CustomHttpPattern)
+ MergeFrom(*source);
+ }
+}
+
+void CustomHttpPattern::MergeFrom(const CustomHttpPattern& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:google.api.CustomHttpPattern)
+ GOOGLE_DCHECK_NE(&from, this);
+ _internal_metadata_.MergeFrom(from._internal_metadata_);
+ ::google::protobuf::uint32 cached_has_bits = 0;
+ (void) cached_has_bits;
+
+ if (from.kind().size() > 0) {
+ set_kind(from.kind());
+ }
+ if (from.path().size() > 0) {
+ set_path(from.path());
+ }
+}
+
+void CustomHttpPattern::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:google.api.CustomHttpPattern)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void CustomHttpPattern::CopyFrom(const CustomHttpPattern& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:google.api.CustomHttpPattern)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+bool CustomHttpPattern::IsInitialized() const {
+ return true;
+}
+
+void CustomHttpPattern::Swap(CustomHttpPattern* other) {
+ if (other == this) return;
+ if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
+ InternalSwap(other);
+ } else {
+ CustomHttpPattern* temp = New(GetArenaNoVirtual());
+ temp->MergeFrom(*other);
+ other->CopyFrom(*this);
+ InternalSwap(temp);
+ if (GetArenaNoVirtual() == NULL) {
+ delete temp;
+ }
+ }
+}
+void CustomHttpPattern::UnsafeArenaSwap(CustomHttpPattern* other) {
+ if (other == this) return;
+ GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
+ InternalSwap(other);
+}
+void CustomHttpPattern::InternalSwap(CustomHttpPattern* other) {
+ using std::swap;
+ kind_.Swap(&other->kind_);
+ path_.Swap(&other->path_);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata CustomHttpPattern::GetMetadata() const {
+ protobuf_google_2fapi_2fhttp_2eproto::protobuf_AssignDescriptorsOnce();
+ return ::protobuf_google_2fapi_2fhttp_2eproto::file_level_metadata[kIndexInFileMessages];
+}
+
+
+// @@protoc_insertion_point(namespace_scope)
+} // namespace api
+} // namespace google
+
+// @@protoc_insertion_point(global_scope)
diff --git a/Firestore/Protos/cpp/google/api/http.pb.h b/Firestore/Protos/cpp/google/api/http.pb.h
new file mode 100644
index 0000000..337aec7
--- /dev/null
+++ b/Firestore/Protos/cpp/google/api/http.pb.h
@@ -0,0 +1,1798 @@
+/*
+ * Copyright 2018 Google
+ *
+ * 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.
+ */
+
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/api/http.proto
+
+#ifndef PROTOBUF_google_2fapi_2fhttp_2eproto__INCLUDED
+#define PROTOBUF_google_2fapi_2fhttp_2eproto__INCLUDED
+
+#include <string>
+
+#include <google/protobuf/stubs/common.h>
+
+#if GOOGLE_PROTOBUF_VERSION < 3005000
+#error This file was generated by a newer version of protoc which is
+#error incompatible with your Protocol Buffer headers. Please update
+#error your headers.
+#endif
+#if 3005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
+#error This file was generated by an older version of protoc which is
+#error incompatible with your Protocol Buffer headers. Please
+#error regenerate this file with a newer version of protoc.
+#endif
+
+#include <google/protobuf/io/coded_stream.h>
+#include <google/protobuf/arena.h>
+#include <google/protobuf/arenastring.h>
+#include <google/protobuf/generated_message_table_driven.h>
+#include <google/protobuf/generated_message_util.h>
+#include <google/protobuf/metadata.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)
+
+namespace protobuf_google_2fapi_2fhttp_2eproto {
+// Internal implementation detail -- do not use these members.
+struct TableStruct {
+ static const ::google::protobuf::internal::ParseTableField entries[];
+ static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
+ static const ::google::protobuf::internal::ParseTable schema[3];
+ static const ::google::protobuf::internal::FieldMetadata field_metadata[];
+ static const ::google::protobuf::internal::SerializationTable serialization_table[];
+ static const ::google::protobuf::uint32 offsets[];
+};
+void AddDescriptors();
+void InitDefaultsHttpImpl();
+void InitDefaultsHttp();
+void InitDefaultsHttpRuleImpl();
+void InitDefaultsHttpRule();
+void InitDefaultsCustomHttpPatternImpl();
+void InitDefaultsCustomHttpPattern();
+inline void InitDefaults() {
+ InitDefaultsHttp();
+ InitDefaultsHttpRule();
+ InitDefaultsCustomHttpPattern();
+}
+} // namespace protobuf_google_2fapi_2fhttp_2eproto
+namespace google {
+namespace api {
+class CustomHttpPattern;
+class CustomHttpPatternDefaultTypeInternal;
+extern CustomHttpPatternDefaultTypeInternal _CustomHttpPattern_default_instance_;
+class Http;
+class HttpDefaultTypeInternal;
+extern HttpDefaultTypeInternal _Http_default_instance_;
+class HttpRule;
+class HttpRuleDefaultTypeInternal;
+extern HttpRuleDefaultTypeInternal _HttpRule_default_instance_;
+} // namespace api
+} // namespace google
+namespace google {
+namespace api {
+
+// ===================================================================
+
+class Http : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.Http) */ {
+ public:
+ Http();
+ virtual ~Http();
+
+ Http(const Http& from);
+
+ inline Http& operator=(const Http& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ Http(Http&& from) noexcept
+ : Http() {
+ *this = ::std::move(from);
+ }
+
+ inline Http& operator=(Http&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
+ inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
+ return GetArenaNoVirtual();
+ }
+ inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
+ return MaybeArenaPtr();
+ }
+ static const ::google::protobuf::Descriptor* descriptor();
+ static const Http& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const Http* internal_default_instance() {
+ return reinterpret_cast<const Http*>(
+ &_Http_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 0;
+
+ void UnsafeArenaSwap(Http* other);
+ void Swap(Http* other);
+ friend void swap(Http& a, Http& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline Http* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ Http* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
+ void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
+ void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
+ void CopyFrom(const Http& from);
+ void MergeFrom(const Http& from);
+ void Clear() PROTOBUF_FINAL;
+ bool IsInitialized() const PROTOBUF_FINAL;
+
+ size_t ByteSizeLong() const PROTOBUF_FINAL;
+ bool MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
+ void SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
+ int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
+ private:
+ void SharedCtor();
+ void SharedDtor();
+ void SetCachedSize(int size) const PROTOBUF_FINAL;
+ void InternalSwap(Http* other);
+ protected:
+ explicit Http(::google::protobuf::Arena* arena);
+ private:
+ static void ArenaDtor(void* object);
+ inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return _internal_metadata_.arena();
+ }
+ inline void* MaybeArenaPtr() const {
+ return _internal_metadata_.raw_arena_ptr();
+ }
+ public:
+
+ ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
+
+ // nested types ----------------------------------------------------
+
+ // accessors -------------------------------------------------------
+
+ // repeated .google.api.HttpRule rules = 1;
+ int rules_size() const;
+ void clear_rules();
+ static const int kRulesFieldNumber = 1;
+ const ::google::api::HttpRule& rules(int index) const;
+ ::google::api::HttpRule* mutable_rules(int index);
+ ::google::api::HttpRule* add_rules();
+ ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule >*
+ mutable_rules();
+ const ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule >&
+ rules() const;
+
+ // @@protoc_insertion_point(class_scope:google.api.Http)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
+ typedef void InternalArenaConstructable_;
+ typedef void DestructorSkippable_;
+ ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule > rules_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2fapi_2fhttp_2eproto::TableStruct;
+ friend void ::protobuf_google_2fapi_2fhttp_2eproto::InitDefaultsHttpImpl();
+};
+// -------------------------------------------------------------------
+
+class HttpRule : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.HttpRule) */ {
+ public:
+ HttpRule();
+ virtual ~HttpRule();
+
+ HttpRule(const HttpRule& from);
+
+ inline HttpRule& operator=(const HttpRule& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ HttpRule(HttpRule&& from) noexcept
+ : HttpRule() {
+ *this = ::std::move(from);
+ }
+
+ inline HttpRule& operator=(HttpRule&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
+ inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
+ return GetArenaNoVirtual();
+ }
+ inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
+ return MaybeArenaPtr();
+ }
+ static const ::google::protobuf::Descriptor* descriptor();
+ static const HttpRule& default_instance();
+
+ enum PatternCase {
+ kGet = 2,
+ kPut = 3,
+ kPost = 4,
+ kDelete = 5,
+ kPatch = 6,
+ kCustom = 8,
+ PATTERN_NOT_SET = 0,
+ };
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const HttpRule* internal_default_instance() {
+ return reinterpret_cast<const HttpRule*>(
+ &_HttpRule_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 1;
+
+ void UnsafeArenaSwap(HttpRule* other);
+ void Swap(HttpRule* other);
+ friend void swap(HttpRule& a, HttpRule& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline HttpRule* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ HttpRule* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
+ void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
+ void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
+ void CopyFrom(const HttpRule& from);
+ void MergeFrom(const HttpRule& from);
+ void Clear() PROTOBUF_FINAL;
+ bool IsInitialized() const PROTOBUF_FINAL;
+
+ size_t ByteSizeLong() const PROTOBUF_FINAL;
+ bool MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
+ void SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
+ int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
+ private:
+ void SharedCtor();
+ void SharedDtor();
+ void SetCachedSize(int size) const PROTOBUF_FINAL;
+ void InternalSwap(HttpRule* other);
+ protected:
+ explicit HttpRule(::google::protobuf::Arena* arena);
+ private:
+ static void ArenaDtor(void* object);
+ inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return _internal_metadata_.arena();
+ }
+ inline void* MaybeArenaPtr() const {
+ return _internal_metadata_.raw_arena_ptr();
+ }
+ public:
+
+ ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
+
+ // nested types ----------------------------------------------------
+
+ // accessors -------------------------------------------------------
+
+ // repeated .google.api.HttpRule additional_bindings = 11;
+ int additional_bindings_size() const;
+ void clear_additional_bindings();
+ static const int kAdditionalBindingsFieldNumber = 11;
+ const ::google::api::HttpRule& additional_bindings(int index) const;
+ ::google::api::HttpRule* mutable_additional_bindings(int index);
+ ::google::api::HttpRule* add_additional_bindings();
+ ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule >*
+ mutable_additional_bindings();
+ const ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule >&
+ additional_bindings() const;
+
+ // string selector = 1;
+ void clear_selector();
+ static const int kSelectorFieldNumber = 1;
+ const ::std::string& selector() const;
+ void set_selector(const ::std::string& value);
+ #if LANG_CXX11
+ void set_selector(::std::string&& value);
+ #endif
+ void set_selector(const char* value);
+ void set_selector(const char* value, size_t size);
+ ::std::string* mutable_selector();
+ ::std::string* release_selector();
+ void set_allocated_selector(::std::string* selector);
+ PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
+ " string fields are deprecated and will be removed in a"
+ " future release.")
+ ::std::string* unsafe_arena_release_selector();
+ PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
+ " string fields are deprecated and will be removed in a"
+ " future release.")
+ void unsafe_arena_set_allocated_selector(
+ ::std::string* selector);
+
+ // string body = 7;
+ void clear_body();
+ static const int kBodyFieldNumber = 7;
+ const ::std::string& body() const;
+ void set_body(const ::std::string& value);
+ #if LANG_CXX11
+ void set_body(::std::string&& value);
+ #endif
+ void set_body(const char* value);
+ void set_body(const char* value, size_t size);
+ ::std::string* mutable_body();
+ ::std::string* release_body();
+ void set_allocated_body(::std::string* body);
+ PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
+ " string fields are deprecated and will be removed in a"
+ " future release.")
+ ::std::string* unsafe_arena_release_body();
+ PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
+ " string fields are deprecated and will be removed in a"
+ " future release.")
+ void unsafe_arena_set_allocated_body(
+ ::std::string* body);
+
+ // string get = 2;
+ private:
+ bool has_get() const;
+ public:
+ void clear_get();
+ static const int kGetFieldNumber = 2;
+ const ::std::string& get() const;
+ void set_get(const ::std::string& value);
+ #if LANG_CXX11
+ void set_get(::std::string&& value);
+ #endif
+ void set_get(const char* value);
+ void set_get(const char* value, size_t size);
+ ::std::string* mutable_get();
+ ::std::string* release_get();
+ void set_allocated_get(::std::string* get);
+ PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
+ " string fields are deprecated and will be removed in a"
+ " future release.")
+ ::std::string* unsafe_arena_release_get();
+ PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
+ " string fields are deprecated and will be removed in a"
+ " future release.")
+ void unsafe_arena_set_allocated_get(
+ ::std::string* get);
+
+ // string put = 3;
+ private:
+ bool has_put() const;
+ public:
+ void clear_put();
+ static const int kPutFieldNumber = 3;
+ const ::std::string& put() const;
+ void set_put(const ::std::string& value);
+ #if LANG_CXX11
+ void set_put(::std::string&& value);
+ #endif
+ void set_put(const char* value);
+ void set_put(const char* value, size_t size);
+ ::std::string* mutable_put();
+ ::std::string* release_put();
+ void set_allocated_put(::std::string* put);
+ PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
+ " string fields are deprecated and will be removed in a"
+ " future release.")
+ ::std::string* unsafe_arena_release_put();
+ PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
+ " string fields are deprecated and will be removed in a"
+ " future release.")
+ void unsafe_arena_set_allocated_put(
+ ::std::string* put);
+
+ // string post = 4;
+ private:
+ bool has_post() const;
+ public:
+ void clear_post();
+ static const int kPostFieldNumber = 4;
+ const ::std::string& post() const;
+ void set_post(const ::std::string& value);
+ #if LANG_CXX11
+ void set_post(::std::string&& value);
+ #endif
+ void set_post(const char* value);
+ void set_post(const char* value, size_t size);
+ ::std::string* mutable_post();
+ ::std::string* release_post();
+ void set_allocated_post(::std::string* post);
+ PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
+ " string fields are deprecated and will be removed in a"
+ " future release.")
+ ::std::string* unsafe_arena_release_post();
+ PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
+ " string fields are deprecated and will be removed in a"
+ " future release.")
+ void unsafe_arena_set_allocated_post(
+ ::std::string* post);
+
+ // string delete = 5;
+ private:
+ bool has_delete_() const;
+ public:
+ void clear_delete_();
+ static const int kDeleteFieldNumber = 5;
+ const ::std::string& delete_() const;
+ void set_delete_(const ::std::string& value);
+ #if LANG_CXX11
+ void set_delete_(::std::string&& value);
+ #endif
+ void set_delete_(const char* value);
+ void set_delete_(const char* value, size_t size);
+ ::std::string* mutable_delete_();
+ ::std::string* release_delete_();
+ void set_allocated_delete_(::std::string* delete_);
+ PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
+ " string fields are deprecated and will be removed in a"
+ " future release.")
+ ::std::string* unsafe_arena_release_delete_();
+ PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
+ " string fields are deprecated and will be removed in a"
+ " future release.")
+ void unsafe_arena_set_allocated_delete_(
+ ::std::string* delete_);
+
+ // string patch = 6;
+ private:
+ bool has_patch() const;
+ public:
+ void clear_patch();
+ static const int kPatchFieldNumber = 6;
+ const ::std::string& patch() const;
+ void set_patch(const ::std::string& value);
+ #if LANG_CXX11
+ void set_patch(::std::string&& value);
+ #endif
+ void set_patch(const char* value);
+ void set_patch(const char* value, size_t size);
+ ::std::string* mutable_patch();
+ ::std::string* release_patch();
+ void set_allocated_patch(::std::string* patch);
+ PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
+ " string fields are deprecated and will be removed in a"
+ " future release.")
+ ::std::string* unsafe_arena_release_patch();
+ PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
+ " string fields are deprecated and will be removed in a"
+ " future release.")
+ void unsafe_arena_set_allocated_patch(
+ ::std::string* patch);
+
+ // .google.api.CustomHttpPattern custom = 8;
+ bool has_custom() const;
+ void clear_custom();
+ static const int kCustomFieldNumber = 8;
+ private:
+ void _slow_mutable_custom();
+ public:
+ const ::google::api::CustomHttpPattern& custom() const;
+ ::google::api::CustomHttpPattern* release_custom();
+ ::google::api::CustomHttpPattern* mutable_custom();
+ void set_allocated_custom(::google::api::CustomHttpPattern* custom);
+ void unsafe_arena_set_allocated_custom(
+ ::google::api::CustomHttpPattern* custom);
+ ::google::api::CustomHttpPattern* unsafe_arena_release_custom();
+
+ PatternCase pattern_case() const;
+ // @@protoc_insertion_point(class_scope:google.api.HttpRule)
+ private:
+ 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;
+ void clear_pattern();
+ inline void clear_has_pattern();
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
+ typedef void InternalArenaConstructable_;
+ typedef void DestructorSkippable_;
+ ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule > additional_bindings_;
+ ::google::protobuf::internal::ArenaStringPtr selector_;
+ ::google::protobuf::internal::ArenaStringPtr body_;
+ union PatternUnion {
+ PatternUnion() {}
+ ::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 int _cached_size_;
+ ::google::protobuf::uint32 _oneof_case_[1];
+
+ friend struct ::protobuf_google_2fapi_2fhttp_2eproto::TableStruct;
+ friend void ::protobuf_google_2fapi_2fhttp_2eproto::InitDefaultsHttpRuleImpl();
+};
+// -------------------------------------------------------------------
+
+class CustomHttpPattern : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.CustomHttpPattern) */ {
+ public:
+ CustomHttpPattern();
+ virtual ~CustomHttpPattern();
+
+ CustomHttpPattern(const CustomHttpPattern& from);
+
+ inline CustomHttpPattern& operator=(const CustomHttpPattern& from) {
+ CopyFrom(from);
+ return *this;
+ }
+ #if LANG_CXX11
+ CustomHttpPattern(CustomHttpPattern&& from) noexcept
+ : CustomHttpPattern() {
+ *this = ::std::move(from);
+ }
+
+ inline CustomHttpPattern& operator=(CustomHttpPattern&& from) noexcept {
+ if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
+ if (this != &from) InternalSwap(&from);
+ } else {
+ CopyFrom(from);
+ }
+ return *this;
+ }
+ #endif
+ inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
+ return GetArenaNoVirtual();
+ }
+ inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
+ return MaybeArenaPtr();
+ }
+ static const ::google::protobuf::Descriptor* descriptor();
+ static const CustomHttpPattern& default_instance();
+
+ static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
+ static inline const CustomHttpPattern* internal_default_instance() {
+ return reinterpret_cast<const CustomHttpPattern*>(
+ &_CustomHttpPattern_default_instance_);
+ }
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
+ 2;
+
+ void UnsafeArenaSwap(CustomHttpPattern* other);
+ void Swap(CustomHttpPattern* other);
+ friend void swap(CustomHttpPattern& a, CustomHttpPattern& b) {
+ a.Swap(&b);
+ }
+
+ // implements Message ----------------------------------------------
+
+ inline CustomHttpPattern* New() const PROTOBUF_FINAL { return New(NULL); }
+
+ CustomHttpPattern* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
+ void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
+ void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
+ void CopyFrom(const CustomHttpPattern& from);
+ void MergeFrom(const CustomHttpPattern& from);
+ void Clear() PROTOBUF_FINAL;
+ bool IsInitialized() const PROTOBUF_FINAL;
+
+ size_t ByteSizeLong() const PROTOBUF_FINAL;
+ bool MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
+ void SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
+ int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
+ private:
+ void SharedCtor();
+ void SharedDtor();
+ void SetCachedSize(int size) const PROTOBUF_FINAL;
+ void InternalSwap(CustomHttpPattern* other);
+ protected:
+ explicit CustomHttpPattern(::google::protobuf::Arena* arena);
+ private:
+ static void ArenaDtor(void* object);
+ inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
+ private:
+ inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
+ return _internal_metadata_.arena();
+ }
+ inline void* MaybeArenaPtr() const {
+ return _internal_metadata_.raw_arena_ptr();
+ }
+ public:
+
+ ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
+
+ // nested types ----------------------------------------------------
+
+ // accessors -------------------------------------------------------
+
+ // string kind = 1;
+ void clear_kind();
+ static const int kKindFieldNumber = 1;
+ const ::std::string& kind() const;
+ void set_kind(const ::std::string& value);
+ #if LANG_CXX11
+ void set_kind(::std::string&& value);
+ #endif
+ void set_kind(const char* value);
+ void set_kind(const char* value, size_t size);
+ ::std::string* mutable_kind();
+ ::std::string* release_kind();
+ void set_allocated_kind(::std::string* kind);
+ PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
+ " string fields are deprecated and will be removed in a"
+ " future release.")
+ ::std::string* unsafe_arena_release_kind();
+ PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
+ " string fields are deprecated and will be removed in a"
+ " future release.")
+ void unsafe_arena_set_allocated_kind(
+ ::std::string* kind);
+
+ // string path = 2;
+ void clear_path();
+ static const int kPathFieldNumber = 2;
+ const ::std::string& path() const;
+ void set_path(const ::std::string& value);
+ #if LANG_CXX11
+ void set_path(::std::string&& value);
+ #endif
+ void set_path(const char* value);
+ void set_path(const char* value, size_t size);
+ ::std::string* mutable_path();
+ ::std::string* release_path();
+ void set_allocated_path(::std::string* path);
+ PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
+ " string fields are deprecated and will be removed in a"
+ " future release.")
+ ::std::string* unsafe_arena_release_path();
+ PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
+ " string fields are deprecated and will be removed in a"
+ " future release.")
+ void unsafe_arena_set_allocated_path(
+ ::std::string* path);
+
+ // @@protoc_insertion_point(class_scope:google.api.CustomHttpPattern)
+ private:
+
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
+ template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
+ typedef void InternalArenaConstructable_;
+ typedef void DestructorSkippable_;
+ ::google::protobuf::internal::ArenaStringPtr kind_;
+ ::google::protobuf::internal::ArenaStringPtr path_;
+ mutable int _cached_size_;
+ friend struct ::protobuf_google_2fapi_2fhttp_2eproto::TableStruct;
+ friend void ::protobuf_google_2fapi_2fhttp_2eproto::InitDefaultsCustomHttpPatternImpl();
+};
+// ===================================================================
+
+
+// ===================================================================
+
+#ifdef __GNUC__
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wstrict-aliasing"
+#endif // __GNUC__
+// Http
+
+// repeated .google.api.HttpRule rules = 1;
+inline int Http::rules_size() const {
+ return rules_.size();
+}
+inline void Http::clear_rules() {
+ rules_.Clear();
+}
+inline const ::google::api::HttpRule& Http::rules(int index) const {
+ // @@protoc_insertion_point(field_get:google.api.Http.rules)
+ return rules_.Get(index);
+}
+inline ::google::api::HttpRule* Http::mutable_rules(int index) {
+ // @@protoc_insertion_point(field_mutable:google.api.Http.rules)
+ return rules_.Mutable(index);
+}
+inline ::google::api::HttpRule* Http::add_rules() {
+ // @@protoc_insertion_point(field_add:google.api.Http.rules)
+ return rules_.Add();
+}
+inline ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule >*
+Http::mutable_rules() {
+ // @@protoc_insertion_point(field_mutable_list:google.api.Http.rules)
+ return &rules_;
+}
+inline const ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule >&
+Http::rules() const {
+ // @@protoc_insertion_point(field_list:google.api.Http.rules)
+ return rules_;
+}
+
+// -------------------------------------------------------------------
+
+// HttpRule
+
+// string selector = 1;
+inline void HttpRule::clear_selector() {
+ selector_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+}
+inline const ::std::string& HttpRule::selector() const {
+ // @@protoc_insertion_point(field_get:google.api.HttpRule.selector)
+ return selector_.Get();
+}
+inline void HttpRule::set_selector(const ::std::string& value) {
+
+ selector_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set:google.api.HttpRule.selector)
+}
+#if LANG_CXX11
+inline void HttpRule::set_selector(::std::string&& value) {
+
+ selector_.Set(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.selector)
+}
+#endif
+inline void HttpRule::set_selector(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ selector_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_char:google.api.HttpRule.selector)
+}
+inline void HttpRule::set_selector(const char* value,
+ size_t size) {
+
+ selector_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
+ reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_pointer:google.api.HttpRule.selector)
+}
+inline ::std::string* HttpRule::mutable_selector() {
+
+ // @@protoc_insertion_point(field_mutable:google.api.HttpRule.selector)
+ return selector_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+}
+inline ::std::string* HttpRule::release_selector() {
+ // @@protoc_insertion_point(field_release:google.api.HttpRule.selector)
+
+ return selector_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+}
+inline void HttpRule::set_allocated_selector(::std::string* selector) {
+ if (selector != NULL) {
+
+ } else {
+
+ }
+ selector_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), selector,
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.selector)
+}
+inline ::std::string* HttpRule::unsafe_arena_release_selector() {
+ // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.selector)
+ GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
+
+ return selector_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+}
+inline void HttpRule::unsafe_arena_set_allocated_selector(
+ ::std::string* selector) {
+ GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
+ if (selector != NULL) {
+
+ } else {
+
+ }
+ selector_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ selector, GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_unsafe_arena_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() {
+ _oneof_case_[0] = kGet;
+}
+inline void HttpRule::clear_get() {
+ if (has_get()) {
+ pattern_.get_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ clear_has_pattern();
+ }
+}
+inline const ::std::string& HttpRule::get() const {
+ // @@protoc_insertion_point(field_get:google.api.HttpRule.get)
+ if (has_get()) {
+ return pattern_.get_.Get();
+ }
+ return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
+}
+inline void HttpRule::set_get(const ::std::string& value) {
+ if (!has_get()) {
+ clear_pattern();
+ set_has_get();
+ pattern_.get_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ pattern_.get_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value,
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set:google.api.HttpRule.get)
+}
+#if LANG_CXX11
+inline void HttpRule::set_get(::std::string&& value) {
+ // @@protoc_insertion_point(field_set:google.api.HttpRule.get)
+ if (!has_get()) {
+ clear_pattern();
+ set_has_get();
+ pattern_.get_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ pattern_.get_.Set(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.get)
+}
+#endif
+inline void HttpRule::set_get(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+ if (!has_get()) {
+ clear_pattern();
+ set_has_get();
+ pattern_.get_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ pattern_.get_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(value), GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_char:google.api.HttpRule.get)
+}
+inline void HttpRule::set_get(const char* value,
+ size_t size) {
+ if (!has_get()) {
+ clear_pattern();
+ set_has_get();
+ pattern_.get_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ pattern_.get_.Set(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
+ reinterpret_cast<const char*>(value), size),
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_pointer:google.api.HttpRule.get)
+}
+inline ::std::string* HttpRule::mutable_get() {
+ if (!has_get()) {
+ clear_pattern();
+ set_has_get();
+ pattern_.get_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ return pattern_.get_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_mutable:google.api.HttpRule.get)
+}
+inline ::std::string* HttpRule::release_get() {
+ // @@protoc_insertion_point(field_release:google.api.HttpRule.get)
+ if (has_get()) {
+ clear_has_pattern();
+ return pattern_.get_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ } else {
+ return NULL;
+ }
+}
+inline void HttpRule::set_allocated_get(::std::string* get) {
+ if (!has_get()) {
+ pattern_.get_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ clear_pattern();
+ if (get != NULL) {
+ set_has_get();
+ pattern_.get_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), get,
+ GetArenaNoVirtual());
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.get)
+}
+inline ::std::string* HttpRule::unsafe_arena_release_get() {
+ // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.get)
+ GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
+ if (has_get()) {
+ clear_has_pattern();
+ return pattern_.get_.UnsafeArenaRelease(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+ } else {
+ return NULL;
+ }
+}
+inline void HttpRule::unsafe_arena_set_allocated_get(::std::string* get) {
+ GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
+ if (!has_get()) {
+ pattern_.get_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ clear_pattern();
+ if (get) {
+ set_has_get();
+ pattern_.get_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), get, GetArenaNoVirtual());
+ }
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.get)
+}
+
+// string put = 3;
+inline bool HttpRule::has_put() const {
+ return pattern_case() == kPut;
+}
+inline void HttpRule::set_has_put() {
+ _oneof_case_[0] = kPut;
+}
+inline void HttpRule::clear_put() {
+ if (has_put()) {
+ pattern_.put_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ clear_has_pattern();
+ }
+}
+inline const ::std::string& HttpRule::put() const {
+ // @@protoc_insertion_point(field_get:google.api.HttpRule.put)
+ if (has_put()) {
+ return pattern_.put_.Get();
+ }
+ return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
+}
+inline void HttpRule::set_put(const ::std::string& value) {
+ if (!has_put()) {
+ clear_pattern();
+ set_has_put();
+ pattern_.put_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ pattern_.put_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value,
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set:google.api.HttpRule.put)
+}
+#if LANG_CXX11
+inline void HttpRule::set_put(::std::string&& value) {
+ // @@protoc_insertion_point(field_set:google.api.HttpRule.put)
+ if (!has_put()) {
+ clear_pattern();
+ set_has_put();
+ pattern_.put_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ pattern_.put_.Set(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.put)
+}
+#endif
+inline void HttpRule::set_put(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+ if (!has_put()) {
+ clear_pattern();
+ set_has_put();
+ pattern_.put_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ pattern_.put_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(value), GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_char:google.api.HttpRule.put)
+}
+inline void HttpRule::set_put(const char* value,
+ size_t size) {
+ if (!has_put()) {
+ clear_pattern();
+ set_has_put();
+ pattern_.put_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ pattern_.put_.Set(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
+ reinterpret_cast<const char*>(value), size),
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_pointer:google.api.HttpRule.put)
+}
+inline ::std::string* HttpRule::mutable_put() {
+ if (!has_put()) {
+ clear_pattern();
+ set_has_put();
+ pattern_.put_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ return pattern_.put_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_mutable:google.api.HttpRule.put)
+}
+inline ::std::string* HttpRule::release_put() {
+ // @@protoc_insertion_point(field_release:google.api.HttpRule.put)
+ if (has_put()) {
+ clear_has_pattern();
+ return pattern_.put_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ } else {
+ return NULL;
+ }
+}
+inline void HttpRule::set_allocated_put(::std::string* put) {
+ if (!has_put()) {
+ pattern_.put_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ clear_pattern();
+ if (put != NULL) {
+ set_has_put();
+ pattern_.put_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), put,
+ GetArenaNoVirtual());
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.put)
+}
+inline ::std::string* HttpRule::unsafe_arena_release_put() {
+ // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.put)
+ GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
+ if (has_put()) {
+ clear_has_pattern();
+ return pattern_.put_.UnsafeArenaRelease(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+ } else {
+ return NULL;
+ }
+}
+inline void HttpRule::unsafe_arena_set_allocated_put(::std::string* put) {
+ GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
+ if (!has_put()) {
+ pattern_.put_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ clear_pattern();
+ if (put) {
+ set_has_put();
+ pattern_.put_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), put, GetArenaNoVirtual());
+ }
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.put)
+}
+
+// string post = 4;
+inline bool HttpRule::has_post() const {
+ return pattern_case() == kPost;
+}
+inline void HttpRule::set_has_post() {
+ _oneof_case_[0] = kPost;
+}
+inline void HttpRule::clear_post() {
+ if (has_post()) {
+ pattern_.post_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ clear_has_pattern();
+ }
+}
+inline const ::std::string& HttpRule::post() const {
+ // @@protoc_insertion_point(field_get:google.api.HttpRule.post)
+ if (has_post()) {
+ return pattern_.post_.Get();
+ }
+ return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
+}
+inline void HttpRule::set_post(const ::std::string& value) {
+ if (!has_post()) {
+ clear_pattern();
+ set_has_post();
+ pattern_.post_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ pattern_.post_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value,
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set:google.api.HttpRule.post)
+}
+#if LANG_CXX11
+inline void HttpRule::set_post(::std::string&& value) {
+ // @@protoc_insertion_point(field_set:google.api.HttpRule.post)
+ if (!has_post()) {
+ clear_pattern();
+ set_has_post();
+ pattern_.post_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ pattern_.post_.Set(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.post)
+}
+#endif
+inline void HttpRule::set_post(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+ if (!has_post()) {
+ clear_pattern();
+ set_has_post();
+ pattern_.post_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ pattern_.post_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(value), GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_char:google.api.HttpRule.post)
+}
+inline void HttpRule::set_post(const char* value,
+ size_t size) {
+ if (!has_post()) {
+ clear_pattern();
+ set_has_post();
+ pattern_.post_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ pattern_.post_.Set(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
+ reinterpret_cast<const char*>(value), size),
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_pointer:google.api.HttpRule.post)
+}
+inline ::std::string* HttpRule::mutable_post() {
+ if (!has_post()) {
+ clear_pattern();
+ set_has_post();
+ pattern_.post_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ return pattern_.post_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_mutable:google.api.HttpRule.post)
+}
+inline ::std::string* HttpRule::release_post() {
+ // @@protoc_insertion_point(field_release:google.api.HttpRule.post)
+ if (has_post()) {
+ clear_has_pattern();
+ return pattern_.post_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ } else {
+ return NULL;
+ }
+}
+inline void HttpRule::set_allocated_post(::std::string* post) {
+ if (!has_post()) {
+ pattern_.post_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ clear_pattern();
+ if (post != NULL) {
+ set_has_post();
+ pattern_.post_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), post,
+ GetArenaNoVirtual());
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.post)
+}
+inline ::std::string* HttpRule::unsafe_arena_release_post() {
+ // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.post)
+ GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
+ if (has_post()) {
+ clear_has_pattern();
+ return pattern_.post_.UnsafeArenaRelease(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+ } else {
+ return NULL;
+ }
+}
+inline void HttpRule::unsafe_arena_set_allocated_post(::std::string* post) {
+ GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
+ if (!has_post()) {
+ pattern_.post_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ clear_pattern();
+ if (post) {
+ set_has_post();
+ pattern_.post_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), post, GetArenaNoVirtual());
+ }
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.post)
+}
+
+// string delete = 5;
+inline bool HttpRule::has_delete_() const {
+ return pattern_case() == kDelete;
+}
+inline void HttpRule::set_has_delete_() {
+ _oneof_case_[0] = kDelete;
+}
+inline void HttpRule::clear_delete_() {
+ if (has_delete_()) {
+ pattern_.delete__.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ clear_has_pattern();
+ }
+}
+inline const ::std::string& HttpRule::delete_() const {
+ // @@protoc_insertion_point(field_get:google.api.HttpRule.delete)
+ if (has_delete_()) {
+ return pattern_.delete__.Get();
+ }
+ return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
+}
+inline void HttpRule::set_delete_(const ::std::string& value) {
+ if (!has_delete_()) {
+ clear_pattern();
+ set_has_delete_();
+ pattern_.delete__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ pattern_.delete__.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value,
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set:google.api.HttpRule.delete)
+}
+#if LANG_CXX11
+inline void HttpRule::set_delete_(::std::string&& value) {
+ // @@protoc_insertion_point(field_set:google.api.HttpRule.delete)
+ if (!has_delete_()) {
+ clear_pattern();
+ set_has_delete_();
+ pattern_.delete__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ pattern_.delete__.Set(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.delete)
+}
+#endif
+inline void HttpRule::set_delete_(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+ if (!has_delete_()) {
+ clear_pattern();
+ set_has_delete_();
+ pattern_.delete__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ pattern_.delete__.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(value), GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_char:google.api.HttpRule.delete)
+}
+inline void HttpRule::set_delete_(const char* value,
+ size_t size) {
+ if (!has_delete_()) {
+ clear_pattern();
+ set_has_delete_();
+ pattern_.delete__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ pattern_.delete__.Set(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
+ reinterpret_cast<const char*>(value), size),
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_pointer:google.api.HttpRule.delete)
+}
+inline ::std::string* HttpRule::mutable_delete_() {
+ if (!has_delete_()) {
+ clear_pattern();
+ set_has_delete_();
+ pattern_.delete__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ return pattern_.delete__.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_mutable:google.api.HttpRule.delete)
+}
+inline ::std::string* HttpRule::release_delete_() {
+ // @@protoc_insertion_point(field_release:google.api.HttpRule.delete)
+ if (has_delete_()) {
+ clear_has_pattern();
+ return pattern_.delete__.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ } else {
+ return NULL;
+ }
+}
+inline void HttpRule::set_allocated_delete_(::std::string* delete_) {
+ if (!has_delete_()) {
+ pattern_.delete__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ clear_pattern();
+ if (delete_ != NULL) {
+ set_has_delete_();
+ pattern_.delete__.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), delete_,
+ GetArenaNoVirtual());
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.delete)
+}
+inline ::std::string* HttpRule::unsafe_arena_release_delete_() {
+ // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.delete)
+ GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
+ if (has_delete_()) {
+ clear_has_pattern();
+ return pattern_.delete__.UnsafeArenaRelease(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+ } else {
+ return NULL;
+ }
+}
+inline void HttpRule::unsafe_arena_set_allocated_delete_(::std::string* delete_) {
+ GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
+ if (!has_delete_()) {
+ pattern_.delete__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ clear_pattern();
+ if (delete_) {
+ set_has_delete_();
+ pattern_.delete__.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), delete_, GetArenaNoVirtual());
+ }
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.delete)
+}
+
+// string patch = 6;
+inline bool HttpRule::has_patch() const {
+ return pattern_case() == kPatch;
+}
+inline void HttpRule::set_has_patch() {
+ _oneof_case_[0] = kPatch;
+}
+inline void HttpRule::clear_patch() {
+ if (has_patch()) {
+ pattern_.patch_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ clear_has_pattern();
+ }
+}
+inline const ::std::string& HttpRule::patch() const {
+ // @@protoc_insertion_point(field_get:google.api.HttpRule.patch)
+ if (has_patch()) {
+ return pattern_.patch_.Get();
+ }
+ return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
+}
+inline void HttpRule::set_patch(const ::std::string& value) {
+ if (!has_patch()) {
+ clear_pattern();
+ set_has_patch();
+ pattern_.patch_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ pattern_.patch_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value,
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set:google.api.HttpRule.patch)
+}
+#if LANG_CXX11
+inline void HttpRule::set_patch(::std::string&& value) {
+ // @@protoc_insertion_point(field_set:google.api.HttpRule.patch)
+ if (!has_patch()) {
+ clear_pattern();
+ set_has_patch();
+ pattern_.patch_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ pattern_.patch_.Set(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.patch)
+}
+#endif
+inline void HttpRule::set_patch(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+ if (!has_patch()) {
+ clear_pattern();
+ set_has_patch();
+ pattern_.patch_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ pattern_.patch_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ ::std::string(value), GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_char:google.api.HttpRule.patch)
+}
+inline void HttpRule::set_patch(const char* value,
+ size_t size) {
+ if (!has_patch()) {
+ clear_pattern();
+ set_has_patch();
+ pattern_.patch_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ pattern_.patch_.Set(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
+ reinterpret_cast<const char*>(value), size),
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_pointer:google.api.HttpRule.patch)
+}
+inline ::std::string* HttpRule::mutable_patch() {
+ if (!has_patch()) {
+ clear_pattern();
+ set_has_patch();
+ pattern_.patch_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ return pattern_.patch_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_mutable:google.api.HttpRule.patch)
+}
+inline ::std::string* HttpRule::release_patch() {
+ // @@protoc_insertion_point(field_release:google.api.HttpRule.patch)
+ if (has_patch()) {
+ clear_has_pattern();
+ return pattern_.patch_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+ } else {
+ return NULL;
+ }
+}
+inline void HttpRule::set_allocated_patch(::std::string* patch) {
+ if (!has_patch()) {
+ pattern_.patch_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ clear_pattern();
+ if (patch != NULL) {
+ set_has_patch();
+ pattern_.patch_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), patch,
+ GetArenaNoVirtual());
+ }
+ // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.patch)
+}
+inline ::std::string* HttpRule::unsafe_arena_release_patch() {
+ // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.patch)
+ GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
+ if (has_patch()) {
+ clear_has_pattern();
+ return pattern_.patch_.UnsafeArenaRelease(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+ } else {
+ return NULL;
+ }
+}
+inline void HttpRule::unsafe_arena_set_allocated_patch(::std::string* patch) {
+ GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
+ if (!has_patch()) {
+ pattern_.patch_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ clear_pattern();
+ if (patch) {
+ set_has_patch();
+ pattern_.patch_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), patch, GetArenaNoVirtual());
+ }
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.patch)
+}
+
+// .google.api.CustomHttpPattern custom = 8;
+inline bool HttpRule::has_custom() const {
+ return pattern_case() == kCustom;
+}
+inline void HttpRule::set_has_custom() {
+ _oneof_case_[0] = kCustom;
+}
+inline void HttpRule::clear_custom() {
+ if (has_custom()) {
+ if (GetArenaNoVirtual() == NULL) {
+ delete pattern_.custom_;
+ }
+ clear_has_pattern();
+ }
+}
+inline ::google::api::CustomHttpPattern* HttpRule::release_custom() {
+ // @@protoc_insertion_point(field_release:google.api.HttpRule.custom)
+ if (has_custom()) {
+ clear_has_pattern();
+ ::google::api::CustomHttpPattern* temp = pattern_.custom_;
+ if (GetArenaNoVirtual() != NULL) {
+ temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL);
+ }
+ pattern_.custom_ = NULL;
+ return temp;
+ } else {
+ return NULL;
+ }
+}
+inline const ::google::api::CustomHttpPattern& HttpRule::custom() const {
+ // @@protoc_insertion_point(field_get:google.api.HttpRule.custom)
+ return has_custom()
+ ? *pattern_.custom_
+ : *reinterpret_cast< ::google::api::CustomHttpPattern*>(&::google::api::_CustomHttpPattern_default_instance_);
+}
+inline ::google::api::CustomHttpPattern* HttpRule::unsafe_arena_release_custom() {
+ // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.custom)
+ if (has_custom()) {
+ clear_has_pattern();
+ ::google::api::CustomHttpPattern* temp = pattern_.custom_;
+ pattern_.custom_ = NULL;
+ return temp;
+ } else {
+ return NULL;
+ }
+}
+inline void HttpRule::unsafe_arena_set_allocated_custom(::google::api::CustomHttpPattern* custom) {
+ clear_pattern();
+ if (custom) {
+ set_has_custom();
+ pattern_.custom_ = custom;
+ }
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.custom)
+}
+inline ::google::api::CustomHttpPattern* HttpRule::mutable_custom() {
+ if (!has_custom()) {
+ clear_pattern();
+ set_has_custom();
+ pattern_.custom_ =
+ ::google::protobuf::Arena::CreateMessage< ::google::api::CustomHttpPattern >(
+ GetArenaNoVirtual());
+ }
+ // @@protoc_insertion_point(field_mutable:google.api.HttpRule.custom)
+ return pattern_.custom_;
+}
+
+// string body = 7;
+inline void HttpRule::clear_body() {
+ body_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+}
+inline const ::std::string& HttpRule::body() const {
+ // @@protoc_insertion_point(field_get:google.api.HttpRule.body)
+ return body_.Get();
+}
+inline void HttpRule::set_body(const ::std::string& value) {
+
+ body_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set:google.api.HttpRule.body)
+}
+#if LANG_CXX11
+inline void HttpRule::set_body(::std::string&& value) {
+
+ body_.Set(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.body)
+}
+#endif
+inline void HttpRule::set_body(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ body_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_char:google.api.HttpRule.body)
+}
+inline void HttpRule::set_body(const char* value,
+ size_t size) {
+
+ body_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
+ reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_pointer:google.api.HttpRule.body)
+}
+inline ::std::string* HttpRule::mutable_body() {
+
+ // @@protoc_insertion_point(field_mutable:google.api.HttpRule.body)
+ return body_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+}
+inline ::std::string* HttpRule::release_body() {
+ // @@protoc_insertion_point(field_release:google.api.HttpRule.body)
+
+ return body_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+}
+inline void HttpRule::set_allocated_body(::std::string* body) {
+ if (body != NULL) {
+
+ } else {
+
+ }
+ body_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), body,
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.body)
+}
+inline ::std::string* HttpRule::unsafe_arena_release_body() {
+ // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.body)
+ GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
+
+ return body_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+}
+inline void HttpRule::unsafe_arena_set_allocated_body(
+ ::std::string* body) {
+ GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
+ if (body != NULL) {
+
+ } else {
+
+ }
+ body_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ body, GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.body)
+}
+
+// repeated .google.api.HttpRule additional_bindings = 11;
+inline int HttpRule::additional_bindings_size() const {
+ return additional_bindings_.size();
+}
+inline void HttpRule::clear_additional_bindings() {
+ additional_bindings_.Clear();
+}
+inline const ::google::api::HttpRule& HttpRule::additional_bindings(int index) const {
+ // @@protoc_insertion_point(field_get:google.api.HttpRule.additional_bindings)
+ return additional_bindings_.Get(index);
+}
+inline ::google::api::HttpRule* HttpRule::mutable_additional_bindings(int index) {
+ // @@protoc_insertion_point(field_mutable:google.api.HttpRule.additional_bindings)
+ return additional_bindings_.Mutable(index);
+}
+inline ::google::api::HttpRule* HttpRule::add_additional_bindings() {
+ // @@protoc_insertion_point(field_add:google.api.HttpRule.additional_bindings)
+ return additional_bindings_.Add();
+}
+inline ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule >*
+HttpRule::mutable_additional_bindings() {
+ // @@protoc_insertion_point(field_mutable_list:google.api.HttpRule.additional_bindings)
+ return &additional_bindings_;
+}
+inline const ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule >&
+HttpRule::additional_bindings() const {
+ // @@protoc_insertion_point(field_list:google.api.HttpRule.additional_bindings)
+ return additional_bindings_;
+}
+
+inline bool HttpRule::has_pattern() const {
+ return pattern_case() != PATTERN_NOT_SET;
+}
+inline void HttpRule::clear_has_pattern() {
+ _oneof_case_[0] = PATTERN_NOT_SET;
+}
+inline HttpRule::PatternCase HttpRule::pattern_case() const {
+ return HttpRule::PatternCase(_oneof_case_[0]);
+}
+// -------------------------------------------------------------------
+
+// CustomHttpPattern
+
+// string kind = 1;
+inline void CustomHttpPattern::clear_kind() {
+ kind_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+}
+inline const ::std::string& CustomHttpPattern::kind() const {
+ // @@protoc_insertion_point(field_get:google.api.CustomHttpPattern.kind)
+ return kind_.Get();
+}
+inline void CustomHttpPattern::set_kind(const ::std::string& value) {
+
+ kind_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set:google.api.CustomHttpPattern.kind)
+}
+#if LANG_CXX11
+inline void CustomHttpPattern::set_kind(::std::string&& value) {
+
+ kind_.Set(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_rvalue:google.api.CustomHttpPattern.kind)
+}
+#endif
+inline void CustomHttpPattern::set_kind(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ kind_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_char:google.api.CustomHttpPattern.kind)
+}
+inline void CustomHttpPattern::set_kind(const char* value,
+ size_t size) {
+
+ kind_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
+ reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_pointer:google.api.CustomHttpPattern.kind)
+}
+inline ::std::string* CustomHttpPattern::mutable_kind() {
+
+ // @@protoc_insertion_point(field_mutable:google.api.CustomHttpPattern.kind)
+ return kind_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+}
+inline ::std::string* CustomHttpPattern::release_kind() {
+ // @@protoc_insertion_point(field_release:google.api.CustomHttpPattern.kind)
+
+ return kind_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+}
+inline void CustomHttpPattern::set_allocated_kind(::std::string* kind) {
+ if (kind != NULL) {
+
+ } else {
+
+ }
+ kind_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), kind,
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_allocated:google.api.CustomHttpPattern.kind)
+}
+inline ::std::string* CustomHttpPattern::unsafe_arena_release_kind() {
+ // @@protoc_insertion_point(field_unsafe_arena_release:google.api.CustomHttpPattern.kind)
+ GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
+
+ return kind_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+}
+inline void CustomHttpPattern::unsafe_arena_set_allocated_kind(
+ ::std::string* kind) {
+ GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
+ if (kind != NULL) {
+
+ } else {
+
+ }
+ kind_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ kind, GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.CustomHttpPattern.kind)
+}
+
+// string path = 2;
+inline void CustomHttpPattern::clear_path() {
+ path_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+}
+inline const ::std::string& CustomHttpPattern::path() const {
+ // @@protoc_insertion_point(field_get:google.api.CustomHttpPattern.path)
+ return path_.Get();
+}
+inline void CustomHttpPattern::set_path(const ::std::string& value) {
+
+ path_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set:google.api.CustomHttpPattern.path)
+}
+#if LANG_CXX11
+inline void CustomHttpPattern::set_path(::std::string&& value) {
+
+ path_.Set(
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_rvalue:google.api.CustomHttpPattern.path)
+}
+#endif
+inline void CustomHttpPattern::set_path(const char* value) {
+ GOOGLE_DCHECK(value != NULL);
+
+ path_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_char:google.api.CustomHttpPattern.path)
+}
+inline void CustomHttpPattern::set_path(const char* value,
+ size_t size) {
+
+ path_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
+ reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_pointer:google.api.CustomHttpPattern.path)
+}
+inline ::std::string* CustomHttpPattern::mutable_path() {
+
+ // @@protoc_insertion_point(field_mutable:google.api.CustomHttpPattern.path)
+ return path_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+}
+inline ::std::string* CustomHttpPattern::release_path() {
+ // @@protoc_insertion_point(field_release:google.api.CustomHttpPattern.path)
+
+ return path_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
+}
+inline void CustomHttpPattern::set_allocated_path(::std::string* path) {
+ if (path != NULL) {
+
+ } else {
+
+ }
+ path_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), path,
+ GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_set_allocated:google.api.CustomHttpPattern.path)
+}
+inline ::std::string* CustomHttpPattern::unsafe_arena_release_path() {
+ // @@protoc_insertion_point(field_unsafe_arena_release:google.api.CustomHttpPattern.path)
+ GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
+
+ return path_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ GetArenaNoVirtual());
+}
+inline void CustomHttpPattern::unsafe_arena_set_allocated_path(
+ ::std::string* path) {
+ GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
+ if (path != NULL) {
+
+ } else {
+
+ }
+ path_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
+ path, GetArenaNoVirtual());
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.CustomHttpPattern.path)
+}
+
+#ifdef __GNUC__
+ #pragma GCC diagnostic pop
+#endif // __GNUC__
+// -------------------------------------------------------------------
+
+// -------------------------------------------------------------------
+
+
+// @@protoc_insertion_point(namespace_scope)
+
+} // namespace api
+} // namespace google
+
+// @@protoc_insertion_point(global_scope)
+
+#endif // PROTOBUF_google_2fapi_2fhttp_2eproto__INCLUDED