dataflow  v1b3
stream_location.h
1 // Copyright 2010 Google Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); you may not
4 // use this file except in compliance with the License. You may obtain a copy of
5 // the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 // License for the specific language governing permissions and limitations under
13 // the License.
14 
15 // This code was generated by google-apis-code-generator 1.5.1
16 // Build date: 2018-10-08 17:45:39 UTC
17 // on: 2020-03-19, 02:23:49 UTC
18 // C++ generator version: 0.1.4
19 
20 // ----------------------------------------------------------------------------
21 // NOTE: This file is generated from Google APIs Discovery Service.
22 // Service:
23 // Dataflow API (dataflow/v1b3)
24 // Generated from:
25 // Version: v1b3
26 // Revision: 302
27 // Generated by:
28 // Tool: google-apis-code-generator 1.5.1
29 // C++: 0.1.4
30 #ifndef GOOGLE_DATAFLOW_API_STREAM_LOCATION_H_
31 #define GOOGLE_DATAFLOW_API_STREAM_LOCATION_H_
32 
33 #include "googleapis/base/macros.h"
34 #include "googleapis/client/data/jsoncpp_data.h"
35 #include "googleapis/strings/stringpiece.h"
36 
37 #include "google/dataflow_api/custom_source_location.h"
38 #include "google/dataflow_api/pubsub_location.h"
39 #include "google/dataflow_api/streaming_side_input_location.h"
40 #include "google/dataflow_api/streaming_stage_location.h"
41 
42 namespace Json {
43 class Value;
44 } // namespace Json
45 
46 namespace google_dataflow_api {
47 using namespace googleapis;
48 
55 class StreamLocation : public client::JsonCppData {
56  public:
62  static StreamLocation* New();
63 
69  explicit StreamLocation(const Json::Value& storage);
70 
76  explicit StreamLocation(Json::Value* storage);
77 
81  virtual ~StreamLocation();
82 
88  const StringPiece GetTypeName() const {
89  return StringPiece("google_dataflow_api::StreamLocation");
90  }
91 
98  return Storage().isMember("customSourceLocation");
99  }
100 
105  MutableStorage()->removeMember("customSourceLocation");
106  }
107 
108 
113  const CustomSourceLocation get_custom_source_location() const;
114 
123  CustomSourceLocation mutable_customSourceLocation();
124 
130  bool has_pubsub_location() const {
131  return Storage().isMember("pubsubLocation");
132  }
133 
138  MutableStorage()->removeMember("pubsubLocation");
139  }
140 
141 
146  const PubsubLocation get_pubsub_location() const;
147 
156  PubsubLocation mutable_pubsubLocation();
157 
163  bool has_side_input_location() const {
164  return Storage().isMember("sideInputLocation");
165  }
166 
171  MutableStorage()->removeMember("sideInputLocation");
172  }
173 
174 
179  const StreamingSideInputLocation get_side_input_location() const;
180 
189  StreamingSideInputLocation mutable_sideInputLocation();
190 
198  return Storage().isMember("streamingStageLocation");
199  }
200 
205  MutableStorage()->removeMember("streamingStageLocation");
206  }
207 
208 
213  const StreamingStageLocation get_streaming_stage_location() const;
214 
224  StreamingStageLocation mutable_streamingStageLocation();
225 
226  private:
227  void operator=(const StreamLocation&);
228 }; // StreamLocation
229 } // namespace google_dataflow_api
230 #endif // GOOGLE_DATAFLOW_API_STREAM_LOCATION_H_
Definition: streaming_side_input_location.h:50
bool has_custom_source_location() const
Definition: stream_location.h:97
void clear_streaming_stage_location()
Definition: stream_location.h:204
Definition: custom_source_location.h:49
void clear_side_input_location()
Definition: stream_location.h:170
const StringPiece GetTypeName() const
Definition: stream_location.h:88
void clear_custom_source_location()
Definition: stream_location.h:104
Definition: approximate_progress.h:40
Definition: streaming_stage_location.h:51
Definition: stream_location.h:55
Definition: approximate_progress.cc:42
bool has_pubsub_location() const
Definition: stream_location.h:130
Definition: pubsub_location.h:51
void clear_pubsub_location()
Definition: stream_location.h:137
bool has_side_input_location() const
Definition: stream_location.h:163
bool has_streaming_stage_location() const
Definition: stream_location.h:197