Class AddPublicKeyResponse.Builder (2.41.0)

public static final class AddPublicKeyResponse.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

public AddPublicKeyResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public AddPublicKeyResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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