30 #ifndef GOOGLE_DATAFLOW_API_INSTRUCTION_OUTPUT_H_ 31 #define GOOGLE_DATAFLOW_API_INSTRUCTION_OUTPUT_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_dataflow_api::InstructionOutput");
93 return Storage().isMember(
"codec");
100 MutableStorage()->removeMember(
"codec");
107 const client::JsonCppAssociativeArray<client::JsonCppData >
get_codec()
const {
108 const Json::Value& storage = Storage(
"codec");
109 return client::JsonValueToCppValueHelper<client::JsonCppAssociativeArray<client::JsonCppData > >(storage);
120 Json::Value* storage = MutableStorage(
"codec");
121 return client::JsonValueToMutableCppValueHelper<client::JsonCppAssociativeArray<client::JsonCppData > >(storage);
130 return Storage().isMember(
"name");
137 MutableStorage()->removeMember(
"name");
145 const Json::Value& v = Storage(
"name");
146 if (v == Json::Value::null)
return StringPiece(
"");
147 return StringPiece(v.asCString());
158 *MutableStorage(
"name") = value.data();
167 return Storage().isMember(
"onlyCountKeyBytes");
174 MutableStorage()->removeMember(
"onlyCountKeyBytes");
182 const Json::Value& storage = Storage(
"onlyCountKeyBytes");
183 return client::JsonValueToCppValueHelper<bool >(storage);
195 client::SetJsonValueFromCppValueHelper<bool >(
196 value, MutableStorage(
"onlyCountKeyBytes"));
205 return Storage().isMember(
"onlyCountValueBytes");
212 MutableStorage()->removeMember(
"onlyCountValueBytes");
220 const Json::Value& storage = Storage(
"onlyCountValueBytes");
221 return client::JsonValueToCppValueHelper<bool >(storage);
233 client::SetJsonValueFromCppValueHelper<bool >(
234 value, MutableStorage(
"onlyCountValueBytes"));
243 return Storage().isMember(
"originalName");
250 MutableStorage()->removeMember(
"originalName");
258 const Json::Value& v = Storage(
"originalName");
259 if (v == Json::Value::null)
return StringPiece(
"");
260 return StringPiece(v.asCString());
272 *MutableStorage(
"originalName") = value.data();
281 return Storage().isMember(
"systemName");
288 MutableStorage()->removeMember(
"systemName");
296 const Json::Value& v = Storage(
"systemName");
297 if (v == Json::Value::null)
return StringPiece(
"");
298 return StringPiece(v.asCString());
310 *MutableStorage(
"systemName") = value.data();
317 #endif // GOOGLE_DATAFLOW_API_INSTRUCTION_OUTPUT_H_ bool has_only_count_value_bytes() const
Definition: instruction_output.h:204
void clear_only_count_key_bytes()
Definition: instruction_output.h:173
bool get_only_count_value_bytes() const
Definition: instruction_output.h:219
const StringPiece get_original_name() const
Definition: instruction_output.h:257
const StringPiece get_system_name() const
Definition: instruction_output.h:295
bool has_original_name() const
Definition: instruction_output.h:242
const StringPiece GetTypeName() const
Definition: instruction_output.h:83
void clear_name()
Definition: instruction_output.h:136
client::JsonCppAssociativeArray< client::JsonCppData > mutable_codec()
Definition: instruction_output.h:119
void clear_system_name()
Definition: instruction_output.h:287
void set_only_count_key_bytes(bool value)
Definition: instruction_output.h:194
bool has_codec() const
Definition: instruction_output.h:92
bool get_only_count_key_bytes() const
Definition: instruction_output.h:181
void clear_only_count_value_bytes()
Definition: instruction_output.h:211
const client::JsonCppAssociativeArray< client::JsonCppData > get_codec() const
Definition: instruction_output.h:107
void clear_original_name()
Definition: instruction_output.h:249
bool has_name() const
Definition: instruction_output.h:129
bool has_system_name() const
Definition: instruction_output.h:280
Definition: approximate_progress.h:40
void set_only_count_value_bytes(bool value)
Definition: instruction_output.h:232
const StringPiece get_name() const
Definition: instruction_output.h:144
void set_name(const StringPiece &value)
Definition: instruction_output.h:157
void set_original_name(const StringPiece &value)
Definition: instruction_output.h:271
Definition: instruction_output.h:50
void clear_codec()
Definition: instruction_output.h:99
Definition: approximate_progress.cc:42
void set_system_name(const StringPiece &value)
Definition: instruction_output.h:309
bool has_only_count_key_bytes() const
Definition: instruction_output.h:166