Class UpdateSshPublicKeyRequest (2.13.0)

public final class UpdateSshPublicKeyRequest extends GeneratedMessageV3 implements UpdateSshPublicKeyRequestOrBuilder

A request message for updating an SSH public key.

Protobuf type google.cloud.oslogin.v1.UpdateSshPublicKeyRequest

Static Fields

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

SSH_PUBLIC_KEY_FIELD_NUMBER

public static final int SSH_PUBLIC_KEY_FIELD_NUMBER
Field Value
TypeDescription
int

UPDATE_MASK_FIELD_NUMBER

public static final int UPDATE_MASK_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static UpdateSshPublicKeyRequest getDefaultInstance()
Returns
TypeDescription
UpdateSshPublicKeyRequest

getDescriptor()

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

newBuilder()

public static UpdateSshPublicKeyRequest.Builder newBuilder()
Returns
TypeDescription
UpdateSshPublicKeyRequest.Builder

newBuilder(UpdateSshPublicKeyRequest prototype)

public static UpdateSshPublicKeyRequest.Builder newBuilder(UpdateSshPublicKeyRequest prototype)
Parameter
NameDescription
prototypeUpdateSshPublicKeyRequest
Returns
TypeDescription
UpdateSshPublicKeyRequest.Builder

parseDelimitedFrom(InputStream input)

public static UpdateSshPublicKeyRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
UpdateSshPublicKeyRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static UpdateSshPublicKeyRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
UpdateSshPublicKeyRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static UpdateSshPublicKeyRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
UpdateSshPublicKeyRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static UpdateSshPublicKeyRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
UpdateSshPublicKeyRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static UpdateSshPublicKeyRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
UpdateSshPublicKeyRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<UpdateSshPublicKeyRequest> parser()
Returns
TypeDescription
Parser<UpdateSshPublicKeyRequest>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public UpdateSshPublicKeyRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateSshPublicKeyRequest

getName()

public String getName()

Required. The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format users/{user}/sshPublicKeys/{fingerprint}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format users/{user}/sshPublicKeys/{fingerprint}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<UpdateSshPublicKeyRequest> getParserForType()
Returns
TypeDescription
Parser<UpdateSshPublicKeyRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSshPublicKey()

public OsLoginProto.SshPublicKey getSshPublicKey()

Required. The SSH public key and expiration time.

.google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
OsLoginProto.SshPublicKey

The sshPublicKey.

getSshPublicKeyOrBuilder()

public OsLoginProto.SshPublicKeyOrBuilder getSshPublicKeyOrBuilder()

Required. The SSH public key and expiration time.

.google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
OsLoginProto.SshPublicKeyOrBuilder

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getUpdateMask()

public FieldMask getUpdateMask()

Mask to control which fields get updated. Updates all if not present.

.google.protobuf.FieldMask update_mask = 3;

Returns
TypeDescription
FieldMask

The updateMask.

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Mask to control which fields get updated. Updates all if not present.

.google.protobuf.FieldMask update_mask = 3;

Returns
TypeDescription
FieldMaskOrBuilder

hasSshPublicKey()

public boolean hasSshPublicKey()

Required. The SSH public key and expiration time.

.google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the sshPublicKey field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Mask to control which fields get updated. Updates all if not present.

.google.protobuf.FieldMask update_mask = 3;

Returns
TypeDescription
boolean

Whether the updateMask field is set.

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 UpdateSshPublicKeyRequest.Builder newBuilderForType()
Returns
TypeDescription
UpdateSshPublicKeyRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public UpdateSshPublicKeyRequest.Builder toBuilder()
Returns
TypeDescription
UpdateSshPublicKeyRequest.Builder

writeTo(CodedOutputStream output)

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