Interface AddPublicKeyRequestOrBuilder (2.42.0)

publicinterface AddPublicKeyRequestOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getEnvironment()

publicabstractStringgetEnvironment()

Environment this key should be added to, e.g. users/me/environments/default.

string environment = 1;

Returns
Type Description
String

The environment.

getEnvironmentBytes()

publicabstractByteStringgetEnvironmentBytes()

Environment this key should be added to, e.g. users/me/environments/default.

string environment = 1;

Returns
Type Description
ByteString

The bytes for environment.

getKey()

publicabstractStringgetKey()

Key that should be added to the environment. Supported formats are ssh-dss (see RFC4253), ssh-rsa (see RFC4253), ecdsa-sha2-nistp256 (see RFC5656), ecdsa-sha2-nistp384 (see RFC5656) and ecdsa-sha2-nistp521 (see RFC5656). It should be structured as <format> <content>, where <content> part is encoded with Base64.

string key = 2;

Returns
Type Description
String

The key.

getKeyBytes()

publicabstractByteStringgetKeyBytes()

Key that should be added to the environment. Supported formats are ssh-dss (see RFC4253), ssh-rsa (see RFC4253), ecdsa-sha2-nistp256 (see RFC5656), ecdsa-sha2-nistp384 (see RFC5656) and ecdsa-sha2-nistp521 (see RFC5656). It should be structured as <format> <content>, where <content> part is encoded with Base64.

string key = 2;

Returns
Type Description
ByteString

The bytes for key.

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.