30 #ifndef GOOGLE_COMPUTE_API_PATH_MATCHER_H_ 31 #define GOOGLE_COMPUTE_API_PATH_MATCHER_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 38 #include "google/compute_api/path_rule.h" 88 return StringPiece(
"google_compute_api::PathMatcher");
97 return Storage().isMember(
"defaultService");
104 MutableStorage()->removeMember(
"defaultService");
112 const Json::Value& v = Storage(
"defaultService");
113 if (v == Json::Value::null)
return StringPiece(
"");
114 return StringPiece(v.asCString());
143 *MutableStorage(
"defaultService") = value.data();
152 return Storage().isMember(
"description");
159 MutableStorage()->removeMember(
"description");
167 const Json::Value& v = Storage(
"description");
168 if (v == Json::Value::null)
return StringPiece(
"");
169 return StringPiece(v.asCString());
181 *MutableStorage(
"description") = value.data();
190 return Storage().isMember(
"name");
197 MutableStorage()->removeMember(
"name");
205 const Json::Value& v = Storage(
"name");
206 if (v == Json::Value::null)
return StringPiece(
"");
207 return StringPiece(v.asCString());
218 *MutableStorage(
"name") = value.data();
227 return Storage().isMember(
"pathRules");
234 MutableStorage()->removeMember(
"pathRules");
241 const client::JsonCppArray<PathRule > get_path_rules()
const;
257 client::JsonCppArray<PathRule > mutable_pathRules();
263 #endif // GOOGLE_COMPUTE_API_PATH_MATCHER_H_ const StringPiece get_description() const
Definition: path_matcher.h:166
void set_name(const StringPiece &value)
Definition: path_matcher.h:217
void clear_description()
Definition: path_matcher.h:158
bool has_name() const
Definition: path_matcher.h:189
const StringPiece GetTypeName() const
Definition: path_matcher.h:87
void set_default_service(const StringPiece &value)
Definition: path_matcher.h:142
void clear_name()
Definition: path_matcher.h:196
const StringPiece get_name() const
Definition: path_matcher.h:204
Definition: accelerator_config.h:39
void clear_path_rules()
Definition: path_matcher.h:233
Definition: accelerator_config.cc:41
const StringPiece get_default_service() const
Definition: path_matcher.h:111
bool has_path_rules() const
Definition: path_matcher.h:226
void clear_default_service()
Definition: path_matcher.h:103
void set_description(const StringPiece &value)
Definition: path_matcher.h:180
bool has_description() const
Definition: path_matcher.h:151
bool has_default_service() const
Definition: path_matcher.h:96
Definition: path_matcher.h:54