Class OsLoginProto.SshPublicKey.Builder (2.12.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public OsLoginProto.SshPublicKey.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
OsLoginProto.SshPublicKey.Builder
Overrides

build()

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

buildPartial()

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

clear()

public OsLoginProto.SshPublicKey.Builder clear()
Returns
TypeDescription
OsLoginProto.SshPublicKey.Builder
Overrides

clearExpirationTimeUsec()

public OsLoginProto.SshPublicKey.Builder clearExpirationTimeUsec()

An expiration time in microseconds since epoch.

int64 expiration_time_usec = 2;

Returns
TypeDescription
OsLoginProto.SshPublicKey.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public OsLoginProto.SshPublicKey.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
OsLoginProto.SshPublicKey.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public OsLoginProto.SshPublicKey.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
OsLoginProto.SshPublicKey.Builder
Overrides

clone()

public OsLoginProto.SshPublicKey.Builder clone()
Returns
TypeDescription
OsLoginProto.SshPublicKey.Builder
Overrides

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(OsLoginProto.SshPublicKey other)

public OsLoginProto.SshPublicKey.Builder mergeFrom(OsLoginProto.SshPublicKey other)
Parameter
NameDescription
otherOsLoginProto.SshPublicKey
Returns
TypeDescription
OsLoginProto.SshPublicKey.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public OsLoginProto.SshPublicKey.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OsLoginProto.SshPublicKey.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public OsLoginProto.SshPublicKey.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
OsLoginProto.SshPublicKey.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final OsLoginProto.SshPublicKey.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuelong

The expirationTimeUsec to set.

Returns
TypeDescription
OsLoginProto.SshPublicKey.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public OsLoginProto.SshPublicKey.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The fingerprint to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for fingerprint to set.

Returns
TypeDescription
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
NameDescription
valueString

The key to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for key to set.

Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
OsLoginProto.SshPublicKey.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final OsLoginProto.SshPublicKey.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
OsLoginProto.SshPublicKey.Builder
Overrides