public static final class OsLoginProto.SshPublicKey.Builder extends com.google.protobuf.GeneratedMessage.Builder<OsLoginProto.SshPublicKey.Builder> implements OsLoginProto.SshPublicKeyOrBuilder
The SSH public key information associated with a Google account.Protobuf type
google.cloud.oslogin.common.SshPublicKey| Modifier and Type | Method and Description |
|---|---|
OsLoginProto.SshPublicKey |
build() |
OsLoginProto.SshPublicKey |
buildPartial() |
OsLoginProto.SshPublicKey.Builder |
clear() |
OsLoginProto.SshPublicKey.Builder |
clearExpirationTimeUsec()
An expiration time in microseconds since epoch.
|
OsLoginProto.SshPublicKey.Builder |
clearFingerprint()
Output only.
|
OsLoginProto.SshPublicKey.Builder |
clearKey()
Public key text in SSH format, defined by
[RFC4253](https://www.ietf.org/rfc/rfc4253.txt) section 6.6.
|
OsLoginProto.SshPublicKey.Builder |
clearName()
Output only.
|
OsLoginProto.SshPublicKey |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getExpirationTimeUsec()
An expiration time in microseconds since epoch.
|
String |
getFingerprint()
Output only.
|
com.google.protobuf.ByteString |
getFingerprintBytes()
Output only.
|
String |
getKey()
Public key text in SSH format, defined by
[RFC4253](https://www.ietf.org/rfc/rfc4253.txt) section 6.6.
|
com.google.protobuf.ByteString |
getKeyBytes()
Public key text in SSH format, defined by
[RFC4253](https://www.ietf.org/rfc/rfc4253.txt) section 6.6.
|
String |
getName()
Output only.
|
com.google.protobuf.ByteString |
getNameBytes()
Output only.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
OsLoginProto.SshPublicKey.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
OsLoginProto.SshPublicKey.Builder |
mergeFrom(com.google.protobuf.Message other) |
OsLoginProto.SshPublicKey.Builder |
mergeFrom(OsLoginProto.SshPublicKey other) |
OsLoginProto.SshPublicKey.Builder |
setExpirationTimeUsec(long value)
An expiration time in microseconds since epoch.
|
OsLoginProto.SshPublicKey.Builder |
setFingerprint(String value)
Output only.
|
OsLoginProto.SshPublicKey.Builder |
setFingerprintBytes(com.google.protobuf.ByteString value)
Output only.
|
OsLoginProto.SshPublicKey.Builder |
setKey(String value)
Public key text in SSH format, defined by
[RFC4253](https://www.ietf.org/rfc/rfc4253.txt) section 6.6.
|
OsLoginProto.SshPublicKey.Builder |
setKeyBytes(com.google.protobuf.ByteString value)
Public key text in SSH format, defined by
[RFC4253](https://www.ietf.org/rfc/rfc4253.txt) section 6.6.
|
OsLoginProto.SshPublicKey.Builder |
setName(String value)
Output only.
|
OsLoginProto.SshPublicKey.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Output only.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<OsLoginProto.SshPublicKey.Builder>public OsLoginProto.SshPublicKey.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<OsLoginProto.SshPublicKey.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<OsLoginProto.SshPublicKey.Builder>public OsLoginProto.SshPublicKey getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic OsLoginProto.SshPublicKey build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic OsLoginProto.SshPublicKey buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic OsLoginProto.SshPublicKey.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<OsLoginProto.SshPublicKey.Builder>public OsLoginProto.SshPublicKey.Builder mergeFrom(OsLoginProto.SshPublicKey other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<OsLoginProto.SshPublicKey.Builder>public OsLoginProto.SshPublicKey.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<OsLoginProto.SshPublicKey.Builder>IOExceptionpublic String getKey()
Public key text in SSH format, defined by [RFC4253](https://www.ietf.org/rfc/rfc4253.txt) section 6.6.
string key = 1;getKey in interface OsLoginProto.SshPublicKeyOrBuilderpublic com.google.protobuf.ByteString getKeyBytes()
Public key text in SSH format, defined by [RFC4253](https://www.ietf.org/rfc/rfc4253.txt) section 6.6.
string key = 1;getKeyBytes in interface OsLoginProto.SshPublicKeyOrBuilderpublic OsLoginProto.SshPublicKey.Builder setKey(String value)
Public key text in SSH format, defined by [RFC4253](https://www.ietf.org/rfc/rfc4253.txt) section 6.6.
string key = 1;value - The key to set.public OsLoginProto.SshPublicKey.Builder clearKey()
Public key text in SSH format, defined by [RFC4253](https://www.ietf.org/rfc/rfc4253.txt) section 6.6.
string key = 1;public OsLoginProto.SshPublicKey.Builder setKeyBytes(com.google.protobuf.ByteString value)
Public key text in SSH format, defined by [RFC4253](https://www.ietf.org/rfc/rfc4253.txt) section 6.6.
string key = 1;value - The bytes for key to set.public long getExpirationTimeUsec()
An expiration time in microseconds since epoch.
int64 expiration_time_usec = 2;getExpirationTimeUsec in interface OsLoginProto.SshPublicKeyOrBuilderpublic OsLoginProto.SshPublicKey.Builder setExpirationTimeUsec(long value)
An expiration time in microseconds since epoch.
int64 expiration_time_usec = 2;value - The expirationTimeUsec to set.public OsLoginProto.SshPublicKey.Builder clearExpirationTimeUsec()
An expiration time in microseconds since epoch.
int64 expiration_time_usec = 2;public String getFingerprint()
Output only. The SHA-256 fingerprint of the SSH public key.
string fingerprint = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];getFingerprint in interface OsLoginProto.SshPublicKeyOrBuilderpublic com.google.protobuf.ByteString getFingerprintBytes()
Output only. The SHA-256 fingerprint of the SSH public key.
string fingerprint = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];getFingerprintBytes in interface OsLoginProto.SshPublicKeyOrBuilderpublic OsLoginProto.SshPublicKey.Builder setFingerprint(String value)
Output only. The SHA-256 fingerprint of the SSH public key.
string fingerprint = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The fingerprint to set.public OsLoginProto.SshPublicKey.Builder clearFingerprint()
Output only. The SHA-256 fingerprint of the SSH public key.
string fingerprint = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];public OsLoginProto.SshPublicKey.Builder setFingerprintBytes(com.google.protobuf.ByteString value)
Output only. The SHA-256 fingerprint of the SSH public key.
string fingerprint = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The bytes for fingerprint to set.public String getName()
Output only. The canonical resource name.
string name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];getName in interface OsLoginProto.SshPublicKeyOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Output only. The canonical resource name.
string name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];getNameBytes in interface OsLoginProto.SshPublicKeyOrBuilderpublic OsLoginProto.SshPublicKey.Builder setName(String value)
Output only. The canonical resource name.
string name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The name to set.public OsLoginProto.SshPublicKey.Builder clearName()
Output only. The canonical resource name.
string name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];public OsLoginProto.SshPublicKey.Builder setNameBytes(com.google.protobuf.ByteString value)
Output only. The canonical resource name.
string name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The bytes for name to set.Copyright © 2026 Google LLC. All rights reserved.