Class StatusMessage.Builder (1.41.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public StatusMessage build()
Returns
TypeDescription
StatusMessage

buildPartial()

public StatusMessage buildPartial()
Returns
TypeDescription
StatusMessage

clear()

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

clearDescription()

public StatusMessage.Builder clearDescription()

Status message text.

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

Returns
TypeDescription
StatusMessage.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearIsError()

public StatusMessage.Builder clearIsError()

Distinguishes errors from informational messages.

bool is_error = 1;

Returns
TypeDescription
StatusMessage.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRefersTo()

public StatusMessage.Builder clearRefersTo()

Reference to which the message applies.

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

Returns
TypeDescription
StatusMessage.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public StatusMessage getDefaultInstanceForType()
Returns
TypeDescription
StatusMessage

getDescription()

public FormatMessage getDescription()

Status message text.

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

Returns
TypeDescription
FormatMessage

The description.

getDescriptionBuilder()

public FormatMessage.Builder getDescriptionBuilder()

Status message text.

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

Returns
TypeDescription
FormatMessage.Builder

getDescriptionOrBuilder()

public FormatMessageOrBuilder getDescriptionOrBuilder()

Status message text.

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

Returns
TypeDescription
FormatMessageOrBuilder

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getIsError()

public boolean getIsError()

Distinguishes errors from informational messages.

bool is_error = 1;

Returns
TypeDescription
boolean

The isError.

getRefersTo()

public StatusMessage.Reference getRefersTo()

Reference to which the message applies.

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

Returns
TypeDescription
StatusMessage.Reference

The refersTo.

getRefersToValue()

public int getRefersToValue()

Reference to which the message applies.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the description field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeDescription(FormatMessage value)

public StatusMessage.Builder mergeDescription(FormatMessage value)

Status message text.

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

Parameter
NameDescription
valueFormatMessage
Returns
TypeDescription
StatusMessage.Builder

mergeFrom(StatusMessage other)

public StatusMessage.Builder mergeFrom(StatusMessage other)
Parameter
NameDescription
otherStatusMessage
Returns
TypeDescription
StatusMessage.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDescription(FormatMessage value)

public StatusMessage.Builder setDescription(FormatMessage value)

Status message text.

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

Parameter
NameDescription
valueFormatMessage
Returns
TypeDescription
StatusMessage.Builder

setDescription(FormatMessage.Builder builderForValue)

public StatusMessage.Builder setDescription(FormatMessage.Builder builderForValue)

Status message text.

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

Parameter
NameDescription
builderForValueFormatMessage.Builder
Returns
TypeDescription
StatusMessage.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setIsError(boolean value)

public StatusMessage.Builder setIsError(boolean value)

Distinguishes errors from informational messages.

bool is_error = 1;

Parameter
NameDescription
valueboolean

The isError to set.

Returns
TypeDescription
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
NameDescription
valueStatusMessage.Reference

The refersTo to set.

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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