30 #ifndef GOOGLE_ANALYTICS_API_HASH_CLIENT_ID_RESPONSE_H_ 31 #define GOOGLE_ANALYTICS_API_HASH_CLIENT_ID_RESPONSE_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 84 return StringPiece(
"google_analytics_api::HashClientIdResponse");
93 return Storage().isMember(
"clientId");
100 MutableStorage()->removeMember(
"clientId");
108 const Json::Value& v = Storage(
"clientId");
109 if (v == Json::Value::null)
return StringPiece(
"");
110 return StringPiece(v.asCString());
118 *MutableStorage(
"clientId") = value.data();
127 return Storage().isMember(
"hashedClientId");
134 MutableStorage()->removeMember(
"hashedClientId");
142 const Json::Value& v = Storage(
"hashedClientId");
143 if (v == Json::Value::null)
return StringPiece(
"");
144 return StringPiece(v.asCString());
152 *MutableStorage(
"hashedClientId") = value.data();
161 return Storage().isMember(
"kind");
168 MutableStorage()->removeMember(
"kind");
176 const Json::Value& v = Storage(
"kind");
177 if (v == Json::Value::null)
return StringPiece(
"");
178 return StringPiece(v.asCString());
186 *MutableStorage(
"kind") = value.data();
195 return Storage().isMember(
"webPropertyId");
202 MutableStorage()->removeMember(
"webPropertyId");
210 const Json::Value& v = Storage(
"webPropertyId");
211 if (v == Json::Value::null)
return StringPiece(
"");
212 return StringPiece(v.asCString());
220 *MutableStorage(
"webPropertyId") = value.data();
227 #endif // GOOGLE_ANALYTICS_API_HASH_CLIENT_ID_RESPONSE_H_ void clear_client_id()
Definition: hash_client_id_response.h:99
void set_kind(const StringPiece &value)
Definition: hash_client_id_response.h:185
void clear_kind()
Definition: hash_client_id_response.h:167
const StringPiece get_web_property_id() const
Definition: hash_client_id_response.h:209
void set_hashed_client_id(const StringPiece &value)
Definition: hash_client_id_response.h:151
bool has_hashed_client_id() const
Definition: hash_client_id_response.h:126
const StringPiece get_hashed_client_id() const
Definition: hash_client_id_response.h:141
void clear_web_property_id()
Definition: hash_client_id_response.h:201
Definition: hash_client_id_response.h:50
void clear_hashed_client_id()
Definition: hash_client_id_response.h:133
const StringPiece get_client_id() const
Definition: hash_client_id_response.h:107
bool has_client_id() const
Definition: hash_client_id_response.h:92
Definition: account.cc:41
const StringPiece get_kind() const
Definition: hash_client_id_response.h:175
bool has_web_property_id() const
Definition: hash_client_id_response.h:194
const StringPiece GetTypeName() const
Definition: hash_client_id_response.h:83
void set_client_id(const StringPiece &value)
Definition: hash_client_id_response.h:117
void set_web_property_id(const StringPiece &value)
Definition: hash_client_id_response.h:219
bool has_kind() const
Definition: hash_client_id_response.h:160