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
// **********************************************************************
//
// 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 class InParameters implements java.lang.Cloneable,
                                     java.io.Serializable
{
    public byte[] image;
 
    public String imageUrl;
 
    public InParameters()
    {
        this.imageUrl = "";
    }
 
    public InParameters(byte[] image, String imageUrl)
    {
        this.image = image;
        this.imageUrl = imageUrl;
    }
 
    public boolean equals(java.lang.Object rhs)
    {
        if(this == rhs)
        {
            return true;
        }
        InParameters r = null;
        if(rhs instanceof InParameters)
        {
            r = (InParameters)rhs;
        }
 
        if(r != null)
        {
            if(!java.util.Arrays.equals(this.image, r.image))
            {
                return false;
            }
            if(this.imageUrl != r.imageUrl)
            {
                if(this.imageUrl == null || r.imageUrl == null || !this.imageUrl.equals(r.imageUrl))
                {
                    return false;
                }
            }
 
            return true;
        }
 
        return false;
    }
 
    public int hashCode()
    {
        int h_ = 5381;
        h_ = com.zeroc.IceInternal.HashUtil.hashAdd(h_, "::ExtFaceWithImgOrUrl::InParameters");
        h_ = com.zeroc.IceInternal.HashUtil.hashAdd(h_, image);
        h_ = com.zeroc.IceInternal.HashUtil.hashAdd(h_, imageUrl);
        return h_;
    }
 
    public InParameters clone()
    {
        InParameters c = null;
        try
        {
            c = (InParameters)super.clone();
        }
        catch(CloneNotSupportedException ex)
        {
            assert false; // impossible
        }
        return c;
    }
 
    public void ice_writeMembers(com.zeroc.Ice.OutputStream ostr)
    {
        ostr.writeByteSeq(this.image);
        ostr.writeString(this.imageUrl);
    }
 
    public void ice_readMembers(com.zeroc.Ice.InputStream istr)
    {
        this.image = istr.readByteSeq();
        this.imageUrl = istr.readString();
    }
 
    static public void ice_write(com.zeroc.Ice.OutputStream ostr, InParameters v)
    {
        if(v == null)
        {
            _nullMarshalValue.ice_writeMembers(ostr);
        }
        else
        {
            v.ice_writeMembers(ostr);
        }
    }
 
    static public InParameters ice_read(com.zeroc.Ice.InputStream istr)
    {
        InParameters v = new InParameters();
        v.ice_readMembers(istr);
        return v;
    }
 
    static public void ice_write(com.zeroc.Ice.OutputStream ostr, int tag, java.util.Optional<InParameters> v)
    {
        if(v != null && v.isPresent())
        {
            ice_write(ostr, tag, v.get());
        }
    }
 
    static public void ice_write(com.zeroc.Ice.OutputStream ostr, int tag, InParameters v)
    {
        if(ostr.writeOptional(tag, com.zeroc.Ice.OptionalFormat.FSize))
        {
            int pos = ostr.startSize();
            ice_write(ostr, v);
            ostr.endSize(pos);
        }
    }
 
    static public java.util.Optional<InParameters> ice_read(com.zeroc.Ice.InputStream istr, int tag)
    {
        if(istr.readOptional(tag, com.zeroc.Ice.OptionalFormat.FSize))
        {
            istr.skip(4);
            return java.util.Optional.of(InParameters.ice_read(istr));
        }
        else
        {
            return java.util.Optional.empty();
        }
    }
 
    private static final InParameters _nullMarshalValue = new InParameters();
 
    public static final long serialVersionUID = -1998193854L;
}