Send feedback
Class SSHKey (0.55.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.55.0 keyboard_arrow_down
public final class SSHKey extends GeneratedMessageV3 implements SSHKeyOrBuilder
An SSH key, used for authorizing with the interactive serial console feature.
Protobuf type google.cloud.baremetalsolution.v2.SSHKey
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int NAME_FIELD_NUMBER
Field Value
Type
Description
int
public static final int PUBLIC_KEY_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
public static SSHKey getDefaultInstance ()
Returns
Type
Description
SSHKey
public static final Descriptors . Descriptor getDescriptor ()
public static SSHKey . Builder newBuilder ()
public static SSHKey . Builder newBuilder ( SSHKey prototype )
Parameter
Name
Description
prototype
SSHKey
public static SSHKey parseDelimitedFrom ( InputStream input )
Returns
Type
Description
SSHKey
public static SSHKey parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
SSHKey
public static SSHKey parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
Returns
Type
Description
SSHKey
public static SSHKey parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
SSHKey
public static SSHKey parseFrom ( ByteString data )
Returns
Type
Description
SSHKey
public static SSHKey parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
SSHKey
public static SSHKey parseFrom ( CodedInputStream input )
Returns
Type
Description
SSHKey
public static SSHKey parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
SSHKey
public static SSHKey parseFrom ( InputStream input )
Returns
Type
Description
SSHKey
public static SSHKey parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
SSHKey
public static SSHKey parseFrom ( ByteBuffer data )
Returns
Type
Description
SSHKey
public static SSHKey parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
SSHKey
public static Parser<SSHKey> parser ()
Methods
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
public SSHKey getDefaultInstanceForType ()
Returns
Type
Description
SSHKey
Output only. The name of this SSH key.
Currently, the only valid value for the location is "global".
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
String
The name.
public ByteString getNameBytes ()
Output only. The name of this SSH key.
Currently, the only valid value for the location is "global".
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
ByteString
The bytes for name.
public Parser<SSHKey> getParserForType ()
Overrides
public String getPublicKey ()
The public SSH key. This must be in OpenSSH .authorized_keys format.
string public_key = 2;
Returns
Type
Description
String
The publicKey.
public ByteString getPublicKeyBytes ()
The public SSH key. This must be in OpenSSH .authorized_keys format.
string public_key = 2;
Returns
Type
Description
ByteString
The bytes for publicKey.
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
Returns
Type
Description
int
Overrides
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
public final boolean isInitialized ()
Overrides
public SSHKey . Builder newBuilderForType ()
protected SSHKey . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
public SSHKey . Builder toBuilder ()
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
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-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]