18
18
19
19
import com .google .common .collect .ImmutableList ;
20
20
import com .google .gcloud .FieldSelector ;
21
- import com .google .gcloud .FieldSelector .SelectorHelper ;
21
+ import com .google .gcloud .FieldSelector .Helper ;
22
22
import com .google .gcloud .Page ;
23
23
import com .google .gcloud .Service ;
24
24
import com .google .gcloud .dns .spi .DnsRpc ;
@@ -45,7 +45,7 @@ enum ProjectField implements FieldSelector {
45
45
PROJECT_NUMBER ("number" ),
46
46
QUOTA ("quota" );
47
47
48
- static final List <FieldSelector > REQUIRED_FIELDS = ImmutableList .< FieldSelector > of (PROJECT_ID );
48
+ static final List <? extends FieldSelector > REQUIRED_FIELDS = ImmutableList .of (PROJECT_ID );
49
49
50
50
private final String selector ;
51
51
@@ -75,7 +75,7 @@ enum ZoneField implements FieldSelector {
75
75
NAME_SERVER_SET ("nameServerSet" ),
76
76
NAME_SERVERS ("nameServers" );
77
77
78
- static final List <FieldSelector > REQUIRED_FIELDS = ImmutableList .< FieldSelector > of (NAME );
78
+ static final List <? extends FieldSelector > REQUIRED_FIELDS = ImmutableList .of (NAME );
79
79
80
80
private final String selector ;
81
81
@@ -102,7 +102,7 @@ enum RecordSetField implements FieldSelector {
102
102
TTL ("ttl" ),
103
103
TYPE ("type" );
104
104
105
- static final List <FieldSelector > REQUIRED_FIELDS = ImmutableList .< FieldSelector > of (NAME , TYPE );
105
+ static final List <? extends FieldSelector > REQUIRED_FIELDS = ImmutableList .of (NAME , TYPE );
106
106
107
107
private final String selector ;
108
108
@@ -120,8 +120,8 @@ public String selector() {
120
120
* The fields of a change request.
121
121
*
122
122
* <p>These values can be used to specify the fields to include in a partial response when calling
123
- * {@link Dns#applyChangeRequest(String, ChangeRequestInfo, ChangeRequestOption...)} The ID is always
124
- * returned even if not selected.
123
+ * {@link Dns#applyChangeRequest(String, ChangeRequestInfo, ChangeRequestOption...)} The ID is
124
+ * always returned even if not selected.
125
125
*/
126
126
enum ChangeRequestField implements FieldSelector {
127
127
ID ("id" ),
@@ -130,7 +130,7 @@ enum ChangeRequestField implements FieldSelector {
130
130
ADDITIONS ("additions" ),
131
131
DELETIONS ("deletions" );
132
132
133
- static final List <FieldSelector > REQUIRED_FIELDS = ImmutableList .< FieldSelector > of (ID );
133
+ static final List <? extends FieldSelector > REQUIRED_FIELDS = ImmutableList .of (ID );
134
134
135
135
private final String selector ;
136
136
@@ -158,7 +158,7 @@ public String selector() {
158
158
/**
159
159
* Class for specifying record set listing options.
160
160
*/
161
- class RecordSetListOption extends Option implements Serializable {
161
+ class RecordSetListOption extends Option {
162
162
163
163
private static final long serialVersionUID = 1009627025381096098L ;
164
164
@@ -176,7 +176,7 @@ class RecordSetListOption extends Option implements Serializable {
176
176
*/
177
177
public static RecordSetListOption fields (RecordSetField ... fields ) {
178
178
return new RecordSetListOption (DnsRpc .Option .FIELDS ,
179
- SelectorHelper . selector ("rrsets" , RecordSetField .REQUIRED_FIELDS , fields ));
179
+ Helper . listSelector ("rrsets" , RecordSetField .REQUIRED_FIELDS , fields ));
180
180
}
181
181
182
182
/**
@@ -218,7 +218,7 @@ public static RecordSetListOption type(RecordSet.Type type) {
218
218
/**
219
219
* Class for specifying zone field options.
220
220
*/
221
- class ZoneOption extends Option implements Serializable {
221
+ class ZoneOption extends Option {
222
222
223
223
private static final long serialVersionUID = -8065564464895945037L ;
224
224
@@ -235,14 +235,14 @@ class ZoneOption extends Option implements Serializable {
235
235
*/
236
236
public static ZoneOption fields (ZoneField ... fields ) {
237
237
return new ZoneOption (DnsRpc .Option .FIELDS ,
238
- SelectorHelper .selector (ZoneField .REQUIRED_FIELDS , fields ));
238
+ Helper .selector (ZoneField .REQUIRED_FIELDS , fields ));
239
239
}
240
240
}
241
241
242
242
/**
243
243
* Class for specifying zone listing options.
244
244
*/
245
- class ZoneListOption extends Option implements Serializable {
245
+ class ZoneListOption extends Option {
246
246
247
247
private static final long serialVersionUID = -2830645032124504717L ;
248
248
@@ -259,7 +259,7 @@ class ZoneListOption extends Option implements Serializable {
259
259
*/
260
260
public static ZoneListOption fields (ZoneField ... fields ) {
261
261
return new ZoneListOption (DnsRpc .Option .FIELDS ,
262
- SelectorHelper . selector ("managedZones" , ZoneField .REQUIRED_FIELDS , fields ));
262
+ Helper . listSelector ("managedZones" , ZoneField .REQUIRED_FIELDS , fields ));
263
263
}
264
264
265
265
/**
@@ -293,7 +293,7 @@ public static ZoneListOption pageSize(int pageSize) {
293
293
/**
294
294
* Class for specifying project options.
295
295
*/
296
- class ProjectOption extends Option implements Serializable {
296
+ class ProjectOption extends Option {
297
297
298
298
private static final long serialVersionUID = 6817937338218847748L ;
299
299
@@ -311,14 +311,14 @@ class ProjectOption extends Option implements Serializable {
311
311
*/
312
312
public static ProjectOption fields (ProjectField ... fields ) {
313
313
return new ProjectOption (DnsRpc .Option .FIELDS ,
314
- SelectorHelper .selector (ProjectField .REQUIRED_FIELDS , fields ));
314
+ Helper .selector (ProjectField .REQUIRED_FIELDS , fields ));
315
315
}
316
316
}
317
317
318
318
/**
319
319
* Class for specifying change request field options.
320
320
*/
321
- class ChangeRequestOption extends Option implements Serializable {
321
+ class ChangeRequestOption extends Option {
322
322
323
323
private static final long serialVersionUID = 1067273695061077782L ;
324
324
@@ -337,14 +337,14 @@ class ChangeRequestOption extends Option implements Serializable {
337
337
*/
338
338
public static ChangeRequestOption fields (ChangeRequestField ... fields ) {
339
339
return new ChangeRequestOption (DnsRpc .Option .FIELDS ,
340
- SelectorHelper .selector (ChangeRequestField .REQUIRED_FIELDS , fields ));
340
+ Helper .selector (ChangeRequestField .REQUIRED_FIELDS , fields ));
341
341
}
342
342
}
343
343
344
344
/**
345
345
* Class for specifying change request listing options.
346
346
*/
347
- class ChangeRequestListOption extends Option implements Serializable {
347
+ class ChangeRequestListOption extends Option {
348
348
349
349
private static final long serialVersionUID = -900209143895376089L ;
350
350
@@ -363,7 +363,7 @@ class ChangeRequestListOption extends Option implements Serializable {
363
363
*/
364
364
public static ChangeRequestListOption fields (ChangeRequestField ... fields ) {
365
365
return new ChangeRequestListOption (DnsRpc .Option .FIELDS ,
366
- SelectorHelper . selector ("changes" , ChangeRequestField .REQUIRED_FIELDS , fields ));
366
+ Helper . listSelector ("changes" , ChangeRequestField .REQUIRED_FIELDS , fields ));
367
367
}
368
368
369
369
/**
0 commit comments