public static final class Diagnostic.Builder extends GeneratedMessageV3.Builder<Diagnostic.Builder> implements DiagnosticOrBuilderRepresents a diagnostic message (error or warning)
Protobuf type google.api.servicemanagement.v1.Diagnostic
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Diagnostic.BuilderImplements
DiagnosticOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Type | Description |
| Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Diagnostic.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Name | Description |
| field | FieldDescriptor |
| value | Object |
| Type | Description |
| Diagnostic.Builder |
build()
public Diagnostic build()| Type | Description |
| Diagnostic |
buildPartial()
public Diagnostic buildPartial()| Type | Description |
| Diagnostic |
clear()
public Diagnostic.Builder clear()| Type | Description |
| Diagnostic.Builder |
clearField(Descriptors.FieldDescriptor field)
public Diagnostic.Builder clearField(Descriptors.FieldDescriptor field)| Name | Description |
| field | FieldDescriptor |
| Type | Description |
| Diagnostic.Builder |
clearKind()
public Diagnostic.Builder clearKind()The kind of diagnostic information provided.
.google.api.servicemanagement.v1.Diagnostic.Kind kind = 2;
| 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;
| Type | Description |
| Diagnostic.Builder | This builder for chaining. |
clearMessage()
public Diagnostic.Builder clearMessage()Message describing the error or warning.
string message = 3;
| Type | Description |
| Diagnostic.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Diagnostic.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Name | Description |
| oneof | OneofDescriptor |
| Type | Description |
| Diagnostic.Builder |
clone()
public Diagnostic.Builder clone()| Type | Description |
| Diagnostic.Builder |
getDefaultInstanceForType()
public Diagnostic getDefaultInstanceForType()| Type | Description |
| Diagnostic |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Type | Description |
| Descriptor |
getKind()
public Diagnostic.Kind getKind()The kind of diagnostic information provided.
.google.api.servicemanagement.v1.Diagnostic.Kind kind = 2;
| Type | Description |
| Diagnostic.Kind | The kind. |
getKindValue()
public int getKindValue()The kind of diagnostic information provided.
.google.api.servicemanagement.v1.Diagnostic.Kind kind = 2;
| 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;
| Type | Description |
| String | The location. |
getLocationBytes()
public ByteString getLocationBytes()File name and line number of the error or warning.
string location = 1;
| Type | Description |
| ByteString | The bytes for location. |
getMessage()
public String getMessage()Message describing the error or warning.
string message = 3;
| Type | Description |
| String | The message. |
getMessageBytes()
public ByteString getMessageBytes()Message describing the error or warning.
string message = 3;
| Type | Description |
| ByteString | The bytes for message. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Type | Description |
| FieldAccessorTable |
isInitialized()
public final boolean isInitialized()| Type | Description |
| boolean |
mergeFrom(Diagnostic other)
public Diagnostic.Builder mergeFrom(Diagnostic other)| Name | Description |
| other | Diagnostic |
| Type | Description |
| Diagnostic.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Diagnostic.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Name | Description |
| input | CodedInputStream |
| extensionRegistry | ExtensionRegistryLite |
| Type | Description |
| Diagnostic.Builder |
| Type | Description |
| IOException |
mergeFrom(Message other)
public Diagnostic.Builder mergeFrom(Message other)| Name | Description |
| other | Message |
| Type | Description |
| Diagnostic.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Diagnostic.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Name | Description |
| unknownFields | UnknownFieldSet |
| Type | Description |
| Diagnostic.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public Diagnostic.Builder setField(Descriptors.FieldDescriptor field, Object value)| Name | Description |
| field | FieldDescriptor |
| value | Object |
| Type | Description |
| Diagnostic.Builder |
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;
| Name | Description |
| value | Diagnostic.KindThe kind to set. |
| 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;
| Name | Description |
| value | intThe enum numeric value on the wire for kind to set. |
| 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;
| Name | Description |
| value | StringThe location to set. |
| 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;
| Name | Description |
| value | ByteStringThe bytes for location to set. |
| 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;
| Name | Description |
| value | StringThe message to set. |
| 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;
| Name | Description |
| value | ByteStringThe bytes for message to set. |
| 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)| Name | Description |
| field | FieldDescriptor |
| index | int |
| value | Object |
| Type | Description |
| Diagnostic.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Diagnostic.Builder setUnknownFields(UnknownFieldSet unknownFields)| Name | Description |
| unknownFields | UnknownFieldSet |
| Type | Description |
| Diagnostic.Builder |