Class AddPublicKeyResponse.Builder (2.19.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AddPublicKeyResponse build()
Returns
TypeDescription
AddPublicKeyResponse

buildPartial()

public AddPublicKeyResponse buildPartial()
Returns
TypeDescription
AddPublicKeyResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearKey()

public AddPublicKeyResponse.Builder clearKey()

Key that was added to the environment.

string key = 1;

Returns
TypeDescription
AddPublicKeyResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public AddPublicKeyResponse getDefaultInstanceForType()
Returns
TypeDescription
AddPublicKeyResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getKey()

public String getKey()

Key that was added to the environment.

string key = 1;

Returns
TypeDescription
String

The key.

getKeyBytes()

public ByteString getKeyBytes()

Key that was added to the environment.

string key = 1;

Returns
TypeDescription
ByteString

The bytes for key.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AddPublicKeyResponse other)

public AddPublicKeyResponse.Builder mergeFrom(AddPublicKeyResponse other)
Parameter
NameDescription
otherAddPublicKeyResponse
Returns
TypeDescription
AddPublicKeyResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setKey(String value)

public AddPublicKeyResponse.Builder setKey(String value)

Key that was added to the environment.

string key = 1;

Parameter
NameDescription
valueString

The key to set.

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

The bytes for key to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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