liuxiaolong
2019-05-06 f99bc8c6a1d10610373738edd7d0aa0181c81d99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
// **********************************************************************
//
// Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.7.0
//
// <auto-generated>
//
// Generated from file `ExtFaceWithImgOrUrl.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
 
package ExtFaceWithImgOrUrl;
 
public interface ExtractFacePrx extends com.zeroc.Ice.ObjectPrx
{
    default OutParameters extractFaceWithImgOrUrl(InParameters inParm)
    {
        return extractFaceWithImgOrUrl(inParm, com.zeroc.Ice.ObjectPrx.noExplicitContext);
    }
 
    default OutParameters extractFaceWithImgOrUrl(InParameters inParm, java.util.Map<String, String> context)
    {
        return _iceI_extractFaceWithImgOrUrlAsync(inParm, context, true).waitForResponse();
    }
 
    default java.util.concurrent.CompletableFuture<OutParameters> extractFaceWithImgOrUrlAsync(InParameters inParm)
    {
        return _iceI_extractFaceWithImgOrUrlAsync(inParm, com.zeroc.Ice.ObjectPrx.noExplicitContext, false);
    }
 
    default java.util.concurrent.CompletableFuture<OutParameters> extractFaceWithImgOrUrlAsync(InParameters inParm, java.util.Map<String, String> context)
    {
        return _iceI_extractFaceWithImgOrUrlAsync(inParm, context, false);
    }
 
    default com.zeroc.IceInternal.OutgoingAsync<OutParameters> _iceI_extractFaceWithImgOrUrlAsync(InParameters iceP_inParm, java.util.Map<String, String> context, boolean sync)
    {
        com.zeroc.IceInternal.OutgoingAsync<OutParameters> f = new com.zeroc.IceInternal.OutgoingAsync<>(this, "extractFaceWithImgOrUrl", null, sync, null);
        f.invoke(true, context, null, ostr -> {
                     InParameters.ice_write(ostr, iceP_inParm);
                 }, istr -> {
                     OutParameters ret;
                     ret = OutParameters.ice_read(istr);
                     return ret;
                 });
        return f;
    }
 
    /**
     * Contacts the remote server to verify that the object implements this type.
     * Raises a local exception if a communication error occurs.
     * @param obj The untyped proxy.
     * @return A proxy for this type, or null if the object does not support this type.
     **/
    static ExtractFacePrx checkedCast(com.zeroc.Ice.ObjectPrx obj)
    {
        return com.zeroc.Ice.ObjectPrx._checkedCast(obj, ice_staticId(), ExtractFacePrx.class, _ExtractFacePrxI.class);
    }
 
    /**
     * Contacts the remote server to verify that the object implements this type.
     * Raises a local exception if a communication error occurs.
     * @param obj The untyped proxy.
     * @param context The Context map to send with the invocation.
     * @return A proxy for this type, or null if the object does not support this type.
     **/
    static ExtractFacePrx checkedCast(com.zeroc.Ice.ObjectPrx obj, java.util.Map<String, String> context)
    {
        return com.zeroc.Ice.ObjectPrx._checkedCast(obj, context, ice_staticId(), ExtractFacePrx.class, _ExtractFacePrxI.class);
    }
 
    /**
     * Contacts the remote server to verify that a facet of the object implements this type.
     * Raises a local exception if a communication error occurs.
     * @param obj The untyped proxy.
     * @param facet The name of the desired facet.
     * @return A proxy for this type, or null if the object does not support this type.
     **/
    static ExtractFacePrx checkedCast(com.zeroc.Ice.ObjectPrx obj, String facet)
    {
        return com.zeroc.Ice.ObjectPrx._checkedCast(obj, facet, ice_staticId(), ExtractFacePrx.class, _ExtractFacePrxI.class);
    }
 
    /**
     * Contacts the remote server to verify that a facet of the object implements this type.
     * Raises a local exception if a communication error occurs.
     * @param obj The untyped proxy.
     * @param facet The name of the desired facet.
     * @param context The Context map to send with the invocation.
     * @return A proxy for this type, or null if the object does not support this type.
     **/
    static ExtractFacePrx checkedCast(com.zeroc.Ice.ObjectPrx obj, String facet, java.util.Map<String, String> context)
    {
        return com.zeroc.Ice.ObjectPrx._checkedCast(obj, facet, context, ice_staticId(), ExtractFacePrx.class, _ExtractFacePrxI.class);
    }
 
    /**
     * Downcasts the given proxy to this type without contacting the remote server.
     * @param obj The untyped proxy.
     * @return A proxy for this type.
     **/
    static ExtractFacePrx uncheckedCast(com.zeroc.Ice.ObjectPrx obj)
    {
        return com.zeroc.Ice.ObjectPrx._uncheckedCast(obj, ExtractFacePrx.class, _ExtractFacePrxI.class);
    }
 
    /**
     * Downcasts the given proxy to this type without contacting the remote server.
     * @param obj The untyped proxy.
     * @param facet The name of the desired facet.
     * @return A proxy for this type.
     **/
    static ExtractFacePrx uncheckedCast(com.zeroc.Ice.ObjectPrx obj, String facet)
    {
        return com.zeroc.Ice.ObjectPrx._uncheckedCast(obj, facet, ExtractFacePrx.class, _ExtractFacePrxI.class);
    }
 
    /**
     * Returns a proxy that is identical to this proxy, except for the per-proxy context.
     * @param newContext The context for the new proxy.
     * @return A proxy with the specified per-proxy context.
     **/
    @Override
    default ExtractFacePrx ice_context(java.util.Map<String, String> newContext)
    {
        return (ExtractFacePrx)_ice_context(newContext);
    }
 
    /**
     * Returns a proxy that is identical to this proxy, except for the adapter ID.
     * @param newAdapterId The adapter ID for the new proxy.
     * @return A proxy with the specified adapter ID.
     **/
    @Override
    default ExtractFacePrx ice_adapterId(String newAdapterId)
    {
        return (ExtractFacePrx)_ice_adapterId(newAdapterId);
    }
 
    /**
     * Returns a proxy that is identical to this proxy, except for the endpoints.
     * @param newEndpoints The endpoints for the new proxy.
     * @return A proxy with the specified endpoints.
     **/
    @Override
    default ExtractFacePrx ice_endpoints(com.zeroc.Ice.Endpoint[] newEndpoints)
    {
        return (ExtractFacePrx)_ice_endpoints(newEndpoints);
    }
 
    /**
     * Returns a proxy that is identical to this proxy, except for the locator cache timeout.
     * @param newTimeout The new locator cache timeout (in seconds).
     * @return A proxy with the specified locator cache timeout.
     **/
    @Override
    default ExtractFacePrx ice_locatorCacheTimeout(int newTimeout)
    {
        return (ExtractFacePrx)_ice_locatorCacheTimeout(newTimeout);
    }
 
    /**
     * Returns a proxy that is identical to this proxy, except for the invocation timeout.
     * @param newTimeout The new invocation timeout (in seconds).
     * @return A proxy with the specified invocation timeout.
     **/
    @Override
    default ExtractFacePrx ice_invocationTimeout(int newTimeout)
    {
        return (ExtractFacePrx)_ice_invocationTimeout(newTimeout);
    }
 
    /**
     * Returns a proxy that is identical to this proxy, except for connection caching.
     * @param newCache <code>true</code> if the new proxy should cache connections; <code>false</code> otherwise.
     * @return A proxy with the specified caching policy.
     **/
    @Override
    default ExtractFacePrx ice_connectionCached(boolean newCache)
    {
        return (ExtractFacePrx)_ice_connectionCached(newCache);
    }
 
    /**
     * Returns a proxy that is identical to this proxy, except for the endpoint selection policy.
     * @param newType The new endpoint selection policy.
     * @return A proxy with the specified endpoint selection policy.
     **/
    @Override
    default ExtractFacePrx ice_endpointSelection(com.zeroc.Ice.EndpointSelectionType newType)
    {
        return (ExtractFacePrx)_ice_endpointSelection(newType);
    }
 
    /**
     * Returns a proxy that is identical to this proxy, except for how it selects endpoints.
     * @param b If <code>b</code> is <code>true</code>, only endpoints that use a secure transport are
     * used by the new proxy. If <code>b</code> is false, the returned proxy uses both secure and
     * insecure endpoints.
     * @return A proxy with the specified selection policy.
     **/
    @Override
    default ExtractFacePrx ice_secure(boolean b)
    {
        return (ExtractFacePrx)_ice_secure(b);
    }
 
    /**
     * Returns a proxy that is identical to this proxy, except for the encoding used to marshal parameters.
     * @param e The encoding version to use to marshal request parameters.
     * @return A proxy with the specified encoding version.
     **/
    @Override
    default ExtractFacePrx ice_encodingVersion(com.zeroc.Ice.EncodingVersion e)
    {
        return (ExtractFacePrx)_ice_encodingVersion(e);
    }
 
    /**
     * Returns a proxy that is identical to this proxy, except for its endpoint selection policy.
     * @param b If <code>b</code> is <code>true</code>, the new proxy will use secure endpoints for invocations
     * and only use insecure endpoints if an invocation cannot be made via secure endpoints. If <code>b</code> is
     * <code>false</code>, the proxy prefers insecure endpoints to secure ones.
     * @return A proxy with the specified selection policy.
     **/
    @Override
    default ExtractFacePrx ice_preferSecure(boolean b)
    {
        return (ExtractFacePrx)_ice_preferSecure(b);
    }
 
    /**
     * Returns a proxy that is identical to this proxy, except for the router.
     * @param router The router for the new proxy.
     * @return A proxy with the specified router.
     **/
    @Override
    default ExtractFacePrx ice_router(com.zeroc.Ice.RouterPrx router)
    {
        return (ExtractFacePrx)_ice_router(router);
    }
 
    /**
     * Returns a proxy that is identical to this proxy, except for the locator.
     * @param locator The locator for the new proxy.
     * @return A proxy with the specified locator.
     **/
    @Override
    default ExtractFacePrx ice_locator(com.zeroc.Ice.LocatorPrx locator)
    {
        return (ExtractFacePrx)_ice_locator(locator);
    }
 
    /**
     * Returns a proxy that is identical to this proxy, except for collocation optimization.
     * @param b <code>true</code> if the new proxy enables collocation optimization; <code>false</code> otherwise.
     * @return A proxy with the specified collocation optimization.
     **/
    @Override
    default ExtractFacePrx ice_collocationOptimized(boolean b)
    {
        return (ExtractFacePrx)_ice_collocationOptimized(b);
    }
 
    /**
     * Returns a proxy that is identical to this proxy, but uses twoway invocations.
     * @return A proxy that uses twoway invocations.
     **/
    @Override
    default ExtractFacePrx ice_twoway()
    {
        return (ExtractFacePrx)_ice_twoway();
    }
 
    /**
     * Returns a proxy that is identical to this proxy, but uses oneway invocations.
     * @return A proxy that uses oneway invocations.
     **/
    @Override
    default ExtractFacePrx ice_oneway()
    {
        return (ExtractFacePrx)_ice_oneway();
    }
 
    /**
     * Returns a proxy that is identical to this proxy, but uses batch oneway invocations.
     * @return A proxy that uses batch oneway invocations.
     **/
    @Override
    default ExtractFacePrx ice_batchOneway()
    {
        return (ExtractFacePrx)_ice_batchOneway();
    }
 
    /**
     * Returns a proxy that is identical to this proxy, but uses datagram invocations.
     * @return A proxy that uses datagram invocations.
     **/
    @Override
    default ExtractFacePrx ice_datagram()
    {
        return (ExtractFacePrx)_ice_datagram();
    }
 
    /**
     * Returns a proxy that is identical to this proxy, but uses batch datagram invocations.
     * @return A proxy that uses batch datagram invocations.
     **/
    @Override
    default ExtractFacePrx ice_batchDatagram()
    {
        return (ExtractFacePrx)_ice_batchDatagram();
    }
 
    /**
     * Returns a proxy that is identical to this proxy, except for compression.
     * @param co <code>true</code> enables compression for the new proxy; <code>false</code> disables compression.
     * @return A proxy with the specified compression setting.
     **/
    @Override
    default ExtractFacePrx ice_compress(boolean co)
    {
        return (ExtractFacePrx)_ice_compress(co);
    }
 
    /**
     * Returns a proxy that is identical to this proxy, except for its connection timeout setting.
     * @param t The connection timeout for the proxy in milliseconds.
     * @return A proxy with the specified timeout.
     **/
    @Override
    default ExtractFacePrx ice_timeout(int t)
    {
        return (ExtractFacePrx)_ice_timeout(t);
    }
 
    /**
     * Returns a proxy that is identical to this proxy, except for its connection ID.
     * @param connectionId The connection ID for the new proxy. An empty string removes the connection ID.
     * @return A proxy with the specified connection ID.
     **/
    @Override
    default ExtractFacePrx ice_connectionId(String connectionId)
    {
        return (ExtractFacePrx)_ice_connectionId(connectionId);
    }
 
    static String ice_staticId()
    {
        return "::ExtFaceWithImgOrUrl::ExtractFace";
    }
}