Class Diagnostic.Builder (3.50.0)

public static final class Diagnostic.Builder extends GeneratedMessageV3.Builder<Diagnostic.Builder> implements DiagnosticOrBuilder

Represents a diagnostic message (error or warning)

Protobuf type google.api.servicemanagement.v1.Diagnostic

Implements

DiagnosticOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Diagnostic build()
Returns
Type Description
Diagnostic

buildPartial()

public Diagnostic buildPartial()
Returns
Type Description
Diagnostic

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearKind()

public Diagnostic.Builder clearKind()

The kind of diagnostic information provided.

.google.api.servicemanagement.v1.Diagnostic.Kind kind = 2;

Returns
Type Description
Diagnostic.Builder

This builder for chaining.

clearLocation()

public Diagnostic.Builder clearLocation()

File name and line number of the error or warning.

string location = 1;

Returns
Type Description
Diagnostic.Builder

This builder for chaining.

clearMessage()

public Diagnostic.Builder clearMessage()

Message describing the error or warning.

string message = 3;

Returns
Type Description
Diagnostic.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public Diagnostic getDefaultInstanceForType()
Returns
Type Description
Diagnostic

getDescriptorForType()

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

getKind()

public Diagnostic.Kind getKind()

The kind of diagnostic information provided.

.google.api.servicemanagement.v1.Diagnostic.Kind kind = 2;

Returns
Type Description
Diagnostic.Kind

The kind.

getKindValue()

public int getKindValue()

The kind of diagnostic information provided.

.google.api.servicemanagement.v1.Diagnostic.Kind kind = 2;

Returns
Type Description
int

The enum numeric value on the wire for kind.

getLocation()

public String getLocation()

File name and line number of the error or warning.

string location = 1;

Returns
Type Description
String

The location.

getLocationBytes()

public ByteString getLocationBytes()

File name and line number of the error or warning.

string location = 1;

Returns
Type Description
ByteString

The bytes for location.

getMessage()

public String getMessage()

Message describing the error or warning.

string message = 3;

Returns
Type Description
String

The message.

getMessageBytes()

public ByteString getMessageBytes()

Message describing the error or warning.

string message = 3;

Returns
Type Description
ByteString

The bytes for message.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Diagnostic other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setKind(Diagnostic.Kind value)

public Diagnostic.Builder setKind(Diagnostic.Kind value)

The kind of diagnostic information provided.

.google.api.servicemanagement.v1.Diagnostic.Kind kind = 2;

Parameter
Name Description
value Diagnostic.Kind

The kind to set.

Returns
Type Description
Diagnostic.Builder

This builder for chaining.

setKindValue(int value)

public Diagnostic.Builder setKindValue(int value)

The kind of diagnostic information provided.

.google.api.servicemanagement.v1.Diagnostic.Kind kind = 2;

Parameter
Name Description
value int

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

Returns
Type Description
Diagnostic.Builder

This builder for chaining.

setLocation(String value)

public Diagnostic.Builder setLocation(String value)

File name and line number of the error or warning.

string location = 1;

Parameter
Name Description
value String

The location to set.

Returns
Type Description
Diagnostic.Builder

This builder for chaining.

setLocationBytes(ByteString value)

public Diagnostic.Builder setLocationBytes(ByteString value)

File name and line number of the error or warning.

string location = 1;

Parameter
Name Description
value ByteString

The bytes for location to set.

Returns
Type Description
Diagnostic.Builder

This builder for chaining.

setMessage(String value)

public Diagnostic.Builder setMessage(String value)

Message describing the error or warning.

string message = 3;

Parameter
Name Description
value String

The message to set.

Returns
Type Description
Diagnostic.Builder

This builder for chaining.

setMessageBytes(ByteString value)

public Diagnostic.Builder setMessageBytes(ByteString value)

Message describing the error or warning.

string message = 3;

Parameter
Name Description
value ByteString

The bytes for message to set.

Returns
Type Description
Diagnostic.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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