Class ApiName.Builder (2.18.0)

publicstaticclass ApiName.Builder

Builder for projects/{project}/locations/global/apis/{api}.

Inheritance

java.lang.Object > ApiName.Builder

Constructors

Builder()

protectedBuilder()

Methods

build()

publicApiNamebuild()
Returns
Type Description
ApiName

getApi()

publicStringgetApi()
Returns
Type Description
String

getProject()

publicStringgetProject()
Returns
Type Description
String

setApi(String api)

publicApiName.BuildersetApi(Stringapi)
Parameter
Name Description
api String
Returns
Type Description
ApiName.Builder

setProject(String project)

publicApiName.BuildersetProject(Stringproject)
Parameter
Name Description
project String
Returns
Type Description
ApiName.Builder

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年11月19日 UTC.