Class Diagnostic.Builder (3.1.3)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Diagnostic build()
Returns
TypeDescription
Diagnostic

buildPartial()

public Diagnostic buildPartial()
Returns
TypeDescription
Diagnostic

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearKind()

public Diagnostic.Builder clearKind()

The kind of diagnostic information provided.

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

Returns
TypeDescription
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
TypeDescription
Diagnostic.Builder

This builder for chaining.

clearMessage()

public Diagnostic.Builder clearMessage()

Message describing the error or warning.

string message = 3;

Returns
TypeDescription
Diagnostic.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public Diagnostic getDefaultInstanceForType()
Returns
TypeDescription
Diagnostic

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getKind()

public Diagnostic.Kind getKind()

The kind of diagnostic information provided.

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

Returns
TypeDescription
Diagnostic.Kind

The kind.

getKindValue()

public int getKindValue()

The kind of diagnostic information provided.

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

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

The location.

getLocationBytes()

public ByteString getLocationBytes()

File name and line number of the error or warning.

string location = 1;

Returns
TypeDescription
ByteString

The bytes for location.

getMessage()

public String getMessage()

Message describing the error or warning.

string message = 3;

Returns
TypeDescription
String

The message.

getMessageBytes()

public ByteString getMessageBytes()

Message describing the error or warning.

string message = 3;

Returns
TypeDescription
ByteString

The bytes for message.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Diagnostic other)

public Diagnostic.Builder mergeFrom(Diagnostic other)
Parameter
NameDescription
otherDiagnostic
Returns
TypeDescription
Diagnostic.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public Diagnostic.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueDiagnostic.Kind

The kind to set.

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

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

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

The location to set.

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

The bytes for location to set.

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

The message to set.

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

The bytes for message to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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