Class AddPublicKeyResponse.Builder (2.84.0)

public static final class AddPublicKeyResponse.Builder extends GeneratedMessage.Builder<AddPublicKeyResponse.Builder> implements AddPublicKeyResponseOrBuilder

Response message for AddPublicKey.

Protobuf type google.cloud.shell.v1.AddPublicKeyResponse

Static Methods

getDescriptor()

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

Methods

build()

public AddPublicKeyResponse build()
Returns
Type Description
AddPublicKeyResponse

buildPartial()

public AddPublicKeyResponse buildPartial()
Returns
Type Description
AddPublicKeyResponse

clear()

public AddPublicKeyResponse.Builder clear()
Returns
Type Description
AddPublicKeyResponse.Builder
Overrides

clearKey()

public AddPublicKeyResponse.Builder clearKey()

Key that was added to the environment.

string key = 1;

Returns
Type Description
AddPublicKeyResponse.Builder

This builder for chaining.

getDefaultInstanceForType()

public AddPublicKeyResponse getDefaultInstanceForType()
Returns
Type Description
AddPublicKeyResponse

getDescriptorForType()

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

getKey()

public String getKey()

Key that was added to the environment.

string key = 1;

Returns
Type Description
String

The key.

getKeyBytes()

public ByteString getKeyBytes()

Key that was added to the environment.

string key = 1;

Returns
Type Description
ByteString

The bytes for key.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AddPublicKeyResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setKey(String value)

public AddPublicKeyResponse.Builder setKey(String value)

Key that was added to the environment.

string key = 1;

Parameter
Name Description
value String

The key to set.

Returns
Type Description
AddPublicKeyResponse.Builder

This builder for chaining.

setKeyBytes(ByteString value)

public AddPublicKeyResponse.Builder setKeyBytes(ByteString value)

Key that was added to the environment.

string key = 1;

Parameter
Name Description
value ByteString

The bytes for key to set.

Returns
Type Description
AddPublicKeyResponse.Builder

This builder for chaining.