Class StatusMessage.Builder (1.45.0)

public static final class StatusMessage.Builder extends GeneratedMessageV3.Builder<StatusMessage.Builder> implements StatusMessageOrBuilder

Represents a contextual status message. The message can indicate an error or informational status, and refer to specific parts of the containing object. For example, the Breakpoint.status field can indicate an error referring to the BREAKPOINT_SOURCE_LOCATION with the message Location not found.

Protobuf type google.devtools.clouddebugger.v2.StatusMessage

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public StatusMessage build()
Returns
Type Description
StatusMessage

buildPartial()

public StatusMessage buildPartial()
Returns
Type Description
StatusMessage

clear()

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

clearDescription()

public StatusMessage.Builder clearDescription()

Status message text.

.google.devtools.clouddebugger.v2.FormatMessage description = 3;

Returns
Type Description
StatusMessage.Builder

clearField(Descriptors.FieldDescriptor field)

public StatusMessage.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
StatusMessage.Builder
Overrides

clearIsError()

public StatusMessage.Builder clearIsError()

Distinguishes errors from informational messages.

bool is_error = 1;

Returns
Type Description
StatusMessage.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRefersTo()

public StatusMessage.Builder clearRefersTo()

Reference to which the message applies.

.google.devtools.clouddebugger.v2.StatusMessage.Reference refers_to = 2;

Returns
Type Description
StatusMessage.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public StatusMessage getDefaultInstanceForType()
Returns
Type Description
StatusMessage

getDescription()

public FormatMessage getDescription()

Status message text.

.google.devtools.clouddebugger.v2.FormatMessage description = 3;

Returns
Type Description
FormatMessage

The description.

getDescriptionBuilder()

public FormatMessage.Builder getDescriptionBuilder()

Status message text.

.google.devtools.clouddebugger.v2.FormatMessage description = 3;

Returns
Type Description
FormatMessage.Builder

getDescriptionOrBuilder()

public FormatMessageOrBuilder getDescriptionOrBuilder()

Status message text.

.google.devtools.clouddebugger.v2.FormatMessage description = 3;

Returns
Type Description
FormatMessageOrBuilder

getDescriptorForType()

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

getIsError()

public boolean getIsError()

Distinguishes errors from informational messages.

bool is_error = 1;

Returns
Type Description
boolean

The isError.

getRefersTo()

public StatusMessage.Reference getRefersTo()

Reference to which the message applies.

.google.devtools.clouddebugger.v2.StatusMessage.Reference refers_to = 2;

Returns
Type Description
StatusMessage.Reference

The refersTo.

getRefersToValue()

public int getRefersToValue()

Reference to which the message applies.

.google.devtools.clouddebugger.v2.StatusMessage.Reference refers_to = 2;

Returns
Type Description
int

The enum numeric value on the wire for refersTo.

hasDescription()

public boolean hasDescription()

Status message text.

.google.devtools.clouddebugger.v2.FormatMessage description = 3;

Returns
Type Description
boolean

Whether the description field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDescription(FormatMessage value)

public StatusMessage.Builder mergeDescription(FormatMessage value)

Status message text.

.google.devtools.clouddebugger.v2.FormatMessage description = 3;

Parameter
Name Description
value FormatMessage
Returns
Type Description
StatusMessage.Builder

mergeFrom(StatusMessage other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDescription(FormatMessage value)

public StatusMessage.Builder setDescription(FormatMessage value)

Status message text.

.google.devtools.clouddebugger.v2.FormatMessage description = 3;

Parameter
Name Description
value FormatMessage
Returns
Type Description
StatusMessage.Builder

setDescription(FormatMessage.Builder builderForValue)

public StatusMessage.Builder setDescription(FormatMessage.Builder builderForValue)

Status message text.

.google.devtools.clouddebugger.v2.FormatMessage description = 3;

Parameter
Name Description
builderForValue FormatMessage.Builder
Returns
Type Description
StatusMessage.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setIsError(boolean value)

public StatusMessage.Builder setIsError(boolean value)

Distinguishes errors from informational messages.

bool is_error = 1;

Parameter
Name Description
value boolean

The isError to set.

Returns
Type Description
StatusMessage.Builder

This builder for chaining.

setRefersTo(StatusMessage.Reference value)

public StatusMessage.Builder setRefersTo(StatusMessage.Reference value)

Reference to which the message applies.

.google.devtools.clouddebugger.v2.StatusMessage.Reference refers_to = 2;

Parameter
Name Description
value StatusMessage.Reference

The refersTo to set.

Returns
Type Description
StatusMessage.Builder

This builder for chaining.

setRefersToValue(int value)

public StatusMessage.Builder setRefersToValue(int value)

Reference to which the message applies.

.google.devtools.clouddebugger.v2.StatusMessage.Reference refers_to = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for refersTo to set.

Returns
Type Description
StatusMessage.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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