Class Key.Builder (2.24.3)

publicstaticfinalclass Key.BuilderextendsBaseKey.Builder<Key.Builder>

Inheritance

java.lang.Object > BaseKey.Builder > Key.Builder

Methods

build()

publicKeybuild()
Returns
Type Description
Key
Overrides

setId(long id)

publicKey.BuildersetId(longid)

Sets the ID of this key.

Parameter
Name Description
id long
Returns
Type Description
Key.Builder

setName(String name)

publicKey.BuildersetName(Stringname)

Sets the name of this key.

Parameter
Name Description
name String
Returns
Type Description
Key.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.