Class UpdateSshPublicKeyRequest.Builder (2.34.0)

public static final class UpdateSshPublicKeyRequest.Builder extends GeneratedMessageV3.Builder<UpdateSshPublicKeyRequest.Builder> implements UpdateSshPublicKeyRequestOrBuilder

A request message for updating an SSH public key.

Protobuf type google.cloud.oslogin.v1.UpdateSshPublicKeyRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateSshPublicKeyRequest build()
Returns
TypeDescription
UpdateSshPublicKeyRequest

buildPartial()

public UpdateSshPublicKeyRequest buildPartial()
Returns
TypeDescription
UpdateSshPublicKeyRequest

clear()

public UpdateSshPublicKeyRequest.Builder clear()
Returns
TypeDescription
UpdateSshPublicKeyRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public UpdateSshPublicKeyRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
UpdateSshPublicKeyRequest.Builder
Overrides

clearName()

public UpdateSshPublicKeyRequest.Builder clearName()

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
UpdateSshPublicKeyRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSshPublicKey()

public UpdateSshPublicKeyRequest.Builder clearSshPublicKey()

Required. The SSH public key and expiration time.

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

Returns
TypeDescription
UpdateSshPublicKeyRequest.Builder

clearUpdateMask()

public UpdateSshPublicKeyRequest.Builder clearUpdateMask()

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

.google.protobuf.FieldMask update_mask = 3;

Returns
TypeDescription
UpdateSshPublicKeyRequest.Builder

clone()

public UpdateSshPublicKeyRequest.Builder clone()
Returns
TypeDescription
UpdateSshPublicKeyRequest.Builder
Overrides

getDefaultInstanceForType()

public UpdateSshPublicKeyRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateSshPublicKeyRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

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.

getSshPublicKeyBuilder()

public OsLoginProto.SshPublicKey.Builder getSshPublicKeyBuilder()

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.Builder

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

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.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

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

.google.protobuf.FieldMask update_mask = 3;

Returns
TypeDescription
Builder

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UpdateSshPublicKeyRequest other)

public UpdateSshPublicKeyRequest.Builder mergeFrom(UpdateSshPublicKeyRequest other)
Parameter
NameDescription
otherUpdateSshPublicKeyRequest
Returns
TypeDescription
UpdateSshPublicKeyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSshPublicKey(OsLoginProto.SshPublicKey value)

public UpdateSshPublicKeyRequest.Builder mergeSshPublicKey(OsLoginProto.SshPublicKey value)

Required. The SSH public key and expiration time.

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

Parameter
NameDescription
valueOsLoginProto.SshPublicKey
Returns
TypeDescription
UpdateSshPublicKeyRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateSshPublicKeyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UpdateSshPublicKeyRequest.Builder
Overrides

mergeUpdateMask(FieldMask value)

public UpdateSshPublicKeyRequest.Builder mergeUpdateMask(FieldMask value)

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

.google.protobuf.FieldMask update_mask = 3;

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateSshPublicKeyRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateSshPublicKeyRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UpdateSshPublicKeyRequest.Builder
Overrides

setName(String value)

public UpdateSshPublicKeyRequest.Builder setName(String value)

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) = { ... }

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
UpdateSshPublicKeyRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public UpdateSshPublicKeyRequest.Builder setNameBytes(ByteString value)

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) = { ... }

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
UpdateSshPublicKeyRequest.Builder

This builder for chaining.

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

public UpdateSshPublicKeyRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
UpdateSshPublicKeyRequest.Builder
Overrides

setSshPublicKey(OsLoginProto.SshPublicKey value)

public UpdateSshPublicKeyRequest.Builder setSshPublicKey(OsLoginProto.SshPublicKey value)

Required. The SSH public key and expiration time.

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

Parameter
NameDescription
valueOsLoginProto.SshPublicKey
Returns
TypeDescription
UpdateSshPublicKeyRequest.Builder

setSshPublicKey(OsLoginProto.SshPublicKey.Builder builderForValue)

public UpdateSshPublicKeyRequest.Builder setSshPublicKey(OsLoginProto.SshPublicKey.Builder builderForValue)

Required. The SSH public key and expiration time.

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

Parameter
NameDescription
builderForValueOsLoginProto.SshPublicKey.Builder
Returns
TypeDescription
UpdateSshPublicKeyRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateSshPublicKeyRequest.Builder setUpdateMask(FieldMask value)

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

.google.protobuf.FieldMask update_mask = 3;

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateSshPublicKeyRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateSshPublicKeyRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

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

.google.protobuf.FieldMask update_mask = 3;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
UpdateSshPublicKeyRequest.Builder