@@ -68,7 +68,8 @@ 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 specified.
71+ * {@link Dns#getZone(String, ZoneOption...)}. The name is always returned, even if not
72+ * specified.
7273 */
7374 enum ZoneField {
7475 CREATION_TIME ("creationTime" ),
@@ -103,8 +104,8 @@ static String selector(ZoneField... fields) {
103104 * The fields of a DNS record.
104105 *
105106 * <p>These values can be used to specify the fields to include in a partial response when calling
106- * {@link Dns#listDnsRecords(String, DnsRecordListOption...)}. The name is always returned even if
107- * not selected.
107+ * {@link Dns#listDnsRecords(String, DnsRecordListOption...)}. The name and type are always
108+ * returned even if not selected.
108109 */
109110 enum DnsRecordField {
110111 DNS_RECORDS ("rrdatas" ),
@@ -125,6 +126,7 @@ String selector() {
125126 static String selector (DnsRecordField ... fields ) {
126127 Set <String > fieldStrings = Sets .newHashSetWithExpectedSize (fields .length + 1 );
127128 fieldStrings .add (NAME .selector ());
129+ fieldStrings .add (TYPE .selector ());
128130 for (DnsRecordField field : fields ) {
129131 fieldStrings .add (field .selector ());
130132 }
@@ -198,7 +200,7 @@ class DnsRecordListOption extends AbstractOption implements Serializable {
198200 */
199201 public static DnsRecordListOption fields (DnsRecordField ... fields ) {
200202 StringBuilder builder = new StringBuilder ();
201- builder .append ("rrsets(" ).append (DnsRecordField .selector (fields )).append (')' );
203+ builder .append ("nextPageToken, rrsets(" ).append (DnsRecordField .selector (fields )).append (')' );
202204 return new DnsRecordListOption (DnsRpc .Option .FIELDS , builder .toString ());
203205 }
204206
@@ -234,7 +236,7 @@ public static DnsRecordListOption dnsName(String dnsName) {
234236 * Dns.DnsRecordListOption#dnsName(String)} must also be present.
235237 */
236238 public static DnsRecordListOption type (DnsRecord .Type type ) {
237- return new DnsRecordListOption (DnsRpc .Option .DNS_TYPE , type );
239+ return new DnsRecordListOption (DnsRpc .Option .DNS_TYPE , type . name () );
238240 }
239241 }
240242
@@ -281,7 +283,7 @@ class ZoneListOption extends AbstractOption implements Serializable {
281283 */
282284 public static ZoneListOption fields (ZoneField ... fields ) {
283285 StringBuilder builder = new StringBuilder ();
284- builder .append ("managedZones(" ).append (ZoneField .selector (fields )).append (')' );
286+ builder .append ("nextPageToken, managedZones(" ).append (ZoneField .selector (fields )).append (')' );
285287 return new ZoneListOption (DnsRpc .Option .FIELDS , builder .toString ());
286288 }
287289
@@ -388,7 +390,8 @@ class ChangeRequestListOption extends AbstractOption implements Serializable {
388390 */
389391 public static ChangeRequestListOption fields (ChangeRequestField ... fields ) {
390392 StringBuilder builder = new StringBuilder ();
391- builder .append ("changes(" ).append (ChangeRequestField .selector (fields )).append (')' );
393+ builder .append ("nextPageToken,changes(" ).append (ChangeRequestField .selector (fields ))
394+ .append (')' );
392395 return new ChangeRequestListOption (DnsRpc .Option .FIELDS , builder .toString ());
393396 }
394397
0 commit comments