Class ExchangeError.Builder (0.42.0)

public static final class ExchangeError.Builder extends GeneratedMessage.Builder<ExchangeError.Builder> implements ExchangeErrorOrBuilder

Message for representing an error from exchanging OAuth tokens.

Protobuf type google.cloud.developerconnect.v1.ExchangeError

Static Methods

getDescriptor()

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

Methods

build()

public ExchangeError build()
Returns
Type Description
ExchangeError

buildPartial()

public ExchangeError buildPartial()
Returns
Type Description
ExchangeError

clear()

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

clearCode()

public ExchangeError.Builder clearCode()
Returns
Type Description
ExchangeError.Builder

This builder for chaining.

clearDescription()

public ExchangeError.Builder clearDescription()

https://datatracker.ietf.org/doc/html/rfc6749#section-5.2 - error_description

string description = 2;

Returns
Type Description
ExchangeError.Builder

This builder for chaining.

getCode()

public String getCode()
Returns
Type Description
String

The code.

getCodeBytes()

public ByteString getCodeBytes()
Returns
Type Description
ByteString

The bytes for code.

getDefaultInstanceForType()

public ExchangeError getDefaultInstanceForType()
Returns
Type Description
ExchangeError

getDescription()

public String getDescription()

https://datatracker.ietf.org/doc/html/rfc6749#section-5.2 - error_description

string description = 2;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

https://datatracker.ietf.org/doc/html/rfc6749#section-5.2 - error_description

string description = 2;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ExchangeError other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setCode(String value)

public ExchangeError.Builder setCode(String value)
Parameter
Name Description
value String

The code to set.

Returns
Type Description
ExchangeError.Builder

This builder for chaining.

setCodeBytes(ByteString value)

public ExchangeError.Builder setCodeBytes(ByteString value)
Parameter
Name Description
value ByteString

The bytes for code to set.

Returns
Type Description
ExchangeError.Builder

This builder for chaining.

setDescription(String value)

public ExchangeError.Builder setDescription(String value)

https://datatracker.ietf.org/doc/html/rfc6749#section-5.2 - error_description

string description = 2;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
ExchangeError.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public ExchangeError.Builder setDescriptionBytes(ByteString value)

https://datatracker.ietf.org/doc/html/rfc6749#section-5.2 - error_description

string description = 2;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
ExchangeError.Builder

This builder for chaining.