Class OsLoginProto.SshPublicKey (2.27.0)

public static final class OsLoginProto.SshPublicKey extends GeneratedMessageV3 implements OsLoginProto.SshPublicKeyOrBuilder

The SSH public key information associated with a Google account.

Protobuf type google.cloud.oslogin.common.SshPublicKey

Static Fields

EXPIRATION_TIME_USEC_FIELD_NUMBER

public static final int EXPIRATION_TIME_USEC_FIELD_NUMBER
Field Value
TypeDescription
int

FINGERPRINT_FIELD_NUMBER

public static final int FINGERPRINT_FIELD_NUMBER
Field Value
TypeDescription
int

KEY_FIELD_NUMBER

public static final int KEY_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static OsLoginProto.SshPublicKey getDefaultInstance()
Returns
TypeDescription
OsLoginProto.SshPublicKey

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static OsLoginProto.SshPublicKey.Builder newBuilder()
Returns
TypeDescription
OsLoginProto.SshPublicKey.Builder

newBuilder(OsLoginProto.SshPublicKey prototype)

public static OsLoginProto.SshPublicKey.Builder newBuilder(OsLoginProto.SshPublicKey prototype)
Parameter
NameDescription
prototypeOsLoginProto.SshPublicKey
Returns
TypeDescription
OsLoginProto.SshPublicKey.Builder

parseDelimitedFrom(InputStream input)

public static OsLoginProto.SshPublicKey parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
OsLoginProto.SshPublicKey
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OsLoginProto.SshPublicKey parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OsLoginProto.SshPublicKey
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static OsLoginProto.SshPublicKey parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
OsLoginProto.SshPublicKey
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static OsLoginProto.SshPublicKey parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OsLoginProto.SshPublicKey
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static OsLoginProto.SshPublicKey parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
OsLoginProto.SshPublicKey
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static OsLoginProto.SshPublicKey parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OsLoginProto.SshPublicKey
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static OsLoginProto.SshPublicKey parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
OsLoginProto.SshPublicKey
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static OsLoginProto.SshPublicKey parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OsLoginProto.SshPublicKey
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static OsLoginProto.SshPublicKey parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
OsLoginProto.SshPublicKey
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OsLoginProto.SshPublicKey parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OsLoginProto.SshPublicKey
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static OsLoginProto.SshPublicKey parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
OsLoginProto.SshPublicKey
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static OsLoginProto.SshPublicKey parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OsLoginProto.SshPublicKey
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<OsLoginProto.SshPublicKey> parser()
Returns
TypeDescription
Parser<SshPublicKey>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public OsLoginProto.SshPublicKey getDefaultInstanceForType()
Returns
TypeDescription
OsLoginProto.SshPublicKey

getExpirationTimeUsec()

public long getExpirationTimeUsec()

An expiration time in microseconds since epoch.

int64 expiration_time_usec = 2;

Returns
TypeDescription
long

The expirationTimeUsec.

getFingerprint()

public String getFingerprint()

Output only. The SHA-256 fingerprint of the SSH public key.

string fingerprint = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The fingerprint.

getFingerprintBytes()

public ByteString getFingerprintBytes()

Output only. The SHA-256 fingerprint of the SSH public key.

string fingerprint = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for fingerprint.

getKey()

public String getKey()

Public key text in SSH format, defined by <a href="https://www.ietf.org/rfc/rfc4253.txt" target="_blank">RFC4253</a> section 6.6.

string key = 1;

Returns
TypeDescription
String

The key.

getKeyBytes()

public ByteString getKeyBytes()

Public key text in SSH format, defined by <a href="https://www.ietf.org/rfc/rfc4253.txt" target="_blank">RFC4253</a> section 6.6.

string key = 1;

Returns
TypeDescription
ByteString

The bytes for key.

getName()

public String getName()

Output only. The canonical resource name.

string name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The canonical resource name.

string name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<OsLoginProto.SshPublicKey> getParserForType()
Returns
TypeDescription
Parser<SshPublicKey>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public OsLoginProto.SshPublicKey.Builder newBuilderForType()
Returns
TypeDescription
OsLoginProto.SshPublicKey.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected OsLoginProto.SshPublicKey.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
OsLoginProto.SshPublicKey.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public OsLoginProto.SshPublicKey.Builder toBuilder()
Returns
TypeDescription
OsLoginProto.SshPublicKey.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException