Class OsLoginProto.SshPublicKey.Builder (2.41.0)

public static final class OsLoginProto.SshPublicKey.Builder extends GeneratedMessageV3.Builder<OsLoginProto.SshPublicKey.Builder> implements OsLoginProto.SshPublicKeyOrBuilder

The SSH public key information associated with a Google account.

Protobuf type google.cloud.oslogin.common.SshPublicKey

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public OsLoginProto.SshPublicKey.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
OsLoginProto.SshPublicKey.Builder
Overrides

build()

public OsLoginProto.SshPublicKey build()
Returns
Type Description
OsLoginProto.SshPublicKey

buildPartial()

public OsLoginProto.SshPublicKey buildPartial()
Returns
Type Description
OsLoginProto.SshPublicKey

clear()

public OsLoginProto.SshPublicKey.Builder clear()
Returns
Type Description
OsLoginProto.SshPublicKey.Builder
Overrides

clearExpirationTimeUsec()

public OsLoginProto.SshPublicKey.Builder clearExpirationTimeUsec()

An expiration time in microseconds since epoch.

int64 expiration_time_usec = 2;

Returns
Type Description
OsLoginProto.SshPublicKey.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public OsLoginProto.SshPublicKey.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
OsLoginProto.SshPublicKey.Builder
Overrides

clearFingerprint()

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];

Returns
Type Description
OsLoginProto.SshPublicKey.Builder

This builder for chaining.

clearKey()

public OsLoginProto.SshPublicKey.Builder clearKey()

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
Type Description
OsLoginProto.SshPublicKey.Builder

This builder for chaining.

clearName()

public OsLoginProto.SshPublicKey.Builder clearName()

Output only. The canonical resource name.

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

Returns
Type Description
OsLoginProto.SshPublicKey.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public OsLoginProto.SshPublicKey.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
OsLoginProto.SshPublicKey.Builder
Overrides

clone()

public OsLoginProto.SshPublicKey.Builder clone()
Returns
Type Description
OsLoginProto.SshPublicKey.Builder
Overrides

getDefaultInstanceForType()

public OsLoginProto.SshPublicKey getDefaultInstanceForType()
Returns
Type Description
OsLoginProto.SshPublicKey

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getExpirationTimeUsec()

public long getExpirationTimeUsec()

An expiration time in microseconds since epoch.

int64 expiration_time_usec = 2;

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The canonical resource name.

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

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(OsLoginProto.SshPublicKey other)

public OsLoginProto.SshPublicKey.Builder mergeFrom(OsLoginProto.SshPublicKey other)
Parameter
Name Description
other OsLoginProto.SshPublicKey
Returns
Type Description
OsLoginProto.SshPublicKey.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public OsLoginProto.SshPublicKey.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OsLoginProto.SshPublicKey.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public OsLoginProto.SshPublicKey.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
OsLoginProto.SshPublicKey.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final OsLoginProto.SshPublicKey.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
OsLoginProto.SshPublicKey.Builder
Overrides

setExpirationTimeUsec(long value)

public OsLoginProto.SshPublicKey.Builder setExpirationTimeUsec(long value)

An expiration time in microseconds since epoch.

int64 expiration_time_usec = 2;

Parameter
Name Description
value long

The expirationTimeUsec to set.

Returns
Type Description
OsLoginProto.SshPublicKey.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public OsLoginProto.SshPublicKey.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
OsLoginProto.SshPublicKey.Builder
Overrides

setFingerprint(String value)

public 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];

Parameter
Name Description
value String

The fingerprint to set.

Returns
Type Description
OsLoginProto.SshPublicKey.Builder

This builder for chaining.

setFingerprintBytes(ByteString value)

public OsLoginProto.SshPublicKey.Builder setFingerprintBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for fingerprint to set.

Returns
Type Description
OsLoginProto.SshPublicKey.Builder

This builder for chaining.

setKey(String value)

public OsLoginProto.SshPublicKey.Builder setKey(String value)

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;

Parameter
Name Description
value String

The key to set.

Returns
Type Description
OsLoginProto.SshPublicKey.Builder

This builder for chaining.

setKeyBytes(ByteString value)

public OsLoginProto.SshPublicKey.Builder setKeyBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for key to set.

Returns
Type Description
OsLoginProto.SshPublicKey.Builder

This builder for chaining.

setName(String value)

public OsLoginProto.SshPublicKey.Builder setName(String value)

Output only. The canonical resource name.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
OsLoginProto.SshPublicKey.Builder

This builder for chaining.

setNameBytes(ByteString value)

public OsLoginProto.SshPublicKey.Builder setNameBytes(ByteString value)

Output only. The canonical resource name.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
OsLoginProto.SshPublicKey.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public OsLoginProto.SshPublicKey.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
OsLoginProto.SshPublicKey.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final OsLoginProto.SshPublicKey.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
OsLoginProto.SshPublicKey.Builder
Overrides