30 #ifndef GOOGLE_DATAFLOW_API_STREAMING_APPLIANCE_SNAPSHOT_CONFIG_H_ 31 #define GOOGLE_DATAFLOW_API_STREAMING_APPLIANCE_SNAPSHOT_CONFIG_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::StreamingApplianceSnapshotConfig");
93 return Storage().isMember(
"importStateEndpoint");
100 MutableStorage()->removeMember(
"importStateEndpoint");
108 const Json::Value& v = Storage(
"importStateEndpoint");
109 if (v == Json::Value::null)
return StringPiece(
"");
110 return StringPiece(v.asCString());
121 *MutableStorage(
"importStateEndpoint") = value.data();
130 return Storage().isMember(
"snapshotId");
137 MutableStorage()->removeMember(
"snapshotId");
145 const Json::Value& v = Storage(
"snapshotId");
146 if (v == Json::Value::null)
return StringPiece(
"");
147 return StringPiece(v.asCString());
158 *MutableStorage(
"snapshotId") = value.data();
165 #endif // GOOGLE_DATAFLOW_API_STREAMING_APPLIANCE_SNAPSHOT_CONFIG_H_ void set_snapshot_id(const StringPiece &value)
Definition: streaming_appliance_snapshot_config.h:157
const StringPiece get_snapshot_id() const
Definition: streaming_appliance_snapshot_config.h:144
void set_import_state_endpoint(const StringPiece &value)
Definition: streaming_appliance_snapshot_config.h:120
Definition: streaming_appliance_snapshot_config.h:50
const StringPiece GetTypeName() const
Definition: streaming_appliance_snapshot_config.h:83
bool has_import_state_endpoint() const
Definition: streaming_appliance_snapshot_config.h:92
Definition: approximate_progress.h:40
bool has_snapshot_id() const
Definition: streaming_appliance_snapshot_config.h:129
void clear_import_state_endpoint()
Definition: streaming_appliance_snapshot_config.h:99
const StringPiece get_import_state_endpoint() const
Definition: streaming_appliance_snapshot_config.h:107
void clear_snapshot_id()
Definition: streaming_appliance_snapshot_config.h:136
Definition: approximate_progress.cc:42