Class Dns.ProjectOption (2.21.0)

publicstaticclass Dns.ProjectOptionextendsOption

Class for specifying project options.

Inheritance

Object > com.google.cloud.dns.Option > Dns.ProjectOption

Inherited Members

com.google.cloud.dns.Option.equals(java.lang.Object)
com.google.cloud.dns.Option.hashCode()
com.google.cloud.dns.Option.toString()

Static Methods

fields(Dns.ProjectField[] fields)

publicstaticDns.ProjectOptionfields(Dns.ProjectField[]fields)

Returns an option to specify the project's fields to be returned by the RPC call.

If this option is not provided all project fields are returned. ProjectOption.fields can be used to specify only the fields of interest. Project ID is always returned, even if not specified. ProjectField provides a list of fields that can be used.

Parameter
Name Description
fields ProjectField[]
Returns
Type Description
Dns.ProjectOption

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.