@@ -60,13 +60,17 @@ public class WildcardProperty extends DocValuesPropertyBase
60
60
PropertyVariant ,
61
61
ToCopyableBuilder <WildcardProperty .Builder , WildcardProperty > {
62
62
63
+ @ Nullable
64
+ private final String normalizer ;
65
+
63
66
@ Nullable
64
67
private final String nullValue ;
65
68
66
69
// ---------------------------------------------------------------------------------------------
67
70
68
71
private WildcardProperty (Builder builder ) {
69
72
super (builder );
73
+ this .normalizer = builder .normalizer ;
70
74
this .nullValue = builder .nullValue ;
71
75
}
72
76
@@ -82,6 +86,14 @@ public Property.Kind _propertyKind() {
82
86
return Property .Kind .Wildcard ;
83
87
}
84
88
89
+ /**
90
+ * API name: {@code normalizer}
91
+ */
92
+ @ Nullable
93
+ public final String normalizer () {
94
+ return this .normalizer ;
95
+ }
96
+
85
97
/**
86
98
* API name: {@code null_value}
87
99
*/
@@ -93,6 +105,11 @@ public final String nullValue() {
93
105
protected void serializeInternal (JsonGenerator generator , JsonpMapper mapper ) {
94
106
generator .write ("type" , "wildcard" );
95
107
super .serializeInternal (generator , mapper );
108
+ if (this .normalizer != null ) {
109
+ generator .writeKey ("normalizer" );
110
+ generator .write (this .normalizer );
111
+ }
112
+
96
113
if (this .nullValue != null ) {
97
114
generator .writeKey ("null_value" );
98
115
generator .write (this .nullValue );
@@ -119,17 +136,21 @@ public static class Builder extends DocValuesPropertyBase.AbstractBuilder<Builde
119
136
implements
120
137
CopyableBuilder <Builder , WildcardProperty > {
121
138
@ Nullable
139
+ private String normalizer ;
140
+ @ Nullable
122
141
private String nullValue ;
123
142
124
143
public Builder () {}
125
144
126
145
private Builder (WildcardProperty o ) {
127
146
super (o );
147
+ this .normalizer = o .normalizer ;
128
148
this .nullValue = o .nullValue ;
129
149
}
130
150
131
151
private Builder (Builder o ) {
132
152
super (o );
153
+ this .normalizer = o .normalizer ;
133
154
this .nullValue = o .nullValue ;
134
155
}
135
156
@@ -145,6 +166,15 @@ protected Builder self() {
145
166
return this ;
146
167
}
147
168
169
+ /**
170
+ * API name: {@code normalizer}
171
+ */
172
+ @ Nonnull
173
+ public final Builder normalizer (@ Nullable String value ) {
174
+ this .normalizer = value ;
175
+ return this ;
176
+ }
177
+
148
178
/**
149
179
* API name: {@code null_value}
150
180
*/
@@ -180,6 +210,7 @@ public WildcardProperty build() {
180
210
181
211
protected static void setupWildcardPropertyDeserializer (ObjectDeserializer <WildcardProperty .Builder > op ) {
182
212
setupDocValuesPropertyBaseDeserializer (op );
213
+ op .add (Builder ::normalizer , JsonpDeserializer .stringDeserializer (), "normalizer" );
183
214
op .add (Builder ::nullValue , JsonpDeserializer .stringDeserializer (), "null_value" );
184
215
185
216
op .ignore ("type" );
@@ -188,6 +219,7 @@ protected static void setupWildcardPropertyDeserializer(ObjectDeserializer<Wildc
188
219
@ Override
189
220
public int hashCode () {
190
221
int result = super .hashCode ();
222
+ result = 31 * result + Objects .hashCode (this .normalizer );
191
223
result = 31 * result + Objects .hashCode (this .nullValue );
192
224
return result ;
193
225
}
@@ -200,6 +232,6 @@ public boolean equals(Object o) {
200
232
if (this == o ) return true ;
201
233
if (o == null || this .getClass () != o .getClass ()) return false ;
202
234
WildcardProperty other = (WildcardProperty ) o ;
203
- return Objects .equals (this .nullValue , other .nullValue );
235
+ return Objects .equals (this .normalizer , other . normalizer ) && Objects . equals ( this . nullValue , other .nullValue );
204
236
}
205
237
}
0 commit comments