@@ -68,8 +68,7 @@ static String selector(ProjectField... fields) {
6868 * The fields of a zone.
6969 *
7070 * <p>These values can be used to specify the fields to include in a partial response when calling
71- * {@link Dns#getZone(String, ZoneOption...)}. The name is always returned, even if not
72- * specified.
71+ * {@link Dns#getZone(String, ZoneOption...)}. The name is always returned, even if not specified.
7372 */
7473 enum ZoneField {
7574 CREATION_TIME ("creationTime" ),
@@ -104,8 +103,8 @@ static String selector(ZoneField... fields) {
104103 * The fields of a DNS record.
105104 *
106105 * <p>These values can be used to specify the fields to include in a partial response when calling
107- * {@link Dns#listDnsRecords(String, DnsRecordListOption...)}. The name and type are always
108- * returned even if not selected.
106+ * {@link Dns#listDnsRecords(String, DnsRecordListOption...)}. The name is always returned even if
107+ * not selected.
109108 */
110109 enum DnsRecordField {
111110 DNS_RECORDS ("rrdatas" ),
@@ -126,7 +125,6 @@ String selector() {
126125 static String selector (DnsRecordField ... fields ) {
127126 Set <String > fieldStrings = Sets .newHashSetWithExpectedSize (fields .length + 1 );
128127 fieldStrings .add (NAME .selector ());
129- fieldStrings .add (TYPE .selector ());
130128 for (DnsRecordField field : fields ) {
131129 fieldStrings .add (field .selector ());
132130 }
@@ -200,7 +198,7 @@ class DnsRecordListOption extends AbstractOption implements Serializable {
200198 */
201199 public static DnsRecordListOption fields (DnsRecordField ... fields ) {
202200 StringBuilder builder = new StringBuilder ();
203- builder .append ("nextPageToken, rrsets(" ).append (DnsRecordField .selector (fields )).append (')' );
201+ builder .append ("rrsets(" ).append (DnsRecordField .selector (fields )).append (')' );
204202 return new DnsRecordListOption (DnsRpc .Option .FIELDS , builder .toString ());
205203 }
206204
@@ -236,7 +234,7 @@ public static DnsRecordListOption dnsName(String dnsName) {
236234 * Dns.DnsRecordListOption#dnsName(String)} must also be present.
237235 */
238236 public static DnsRecordListOption type (DnsRecord .Type type ) {
239- return new DnsRecordListOption (DnsRpc .Option .DNS_TYPE , type . name () );
237+ return new DnsRecordListOption (DnsRpc .Option .DNS_TYPE , type );
240238 }
241239 }
242240
@@ -283,7 +281,7 @@ class ZoneListOption extends AbstractOption implements Serializable {
283281 */
284282 public static ZoneListOption fields (ZoneField ... fields ) {
285283 StringBuilder builder = new StringBuilder ();
286- builder .append ("nextPageToken, managedZones(" ).append (ZoneField .selector (fields )).append (')' );
284+ builder .append ("managedZones(" ).append (ZoneField .selector (fields )).append (')' );
287285 return new ZoneListOption (DnsRpc .Option .FIELDS , builder .toString ());
288286 }
289287
@@ -390,8 +388,7 @@ class ChangeRequestListOption extends AbstractOption implements Serializable {
390388 */
391389 public static ChangeRequestListOption fields (ChangeRequestField ... fields ) {
392390 StringBuilder builder = new StringBuilder ();
393- builder .append ("nextPageToken,changes(" ).append (ChangeRequestField .selector (fields ))
394- .append (')' );
391+ builder .append ("changes(" ).append (ChangeRequestField .selector (fields )).append (')' );
395392 return new ChangeRequestListOption (DnsRpc .Option .FIELDS , builder .toString ());
396393 }
397394
0 commit comments