public static final class CompilationDiagnostic.Builder extends GeneratedMessageV3.Builder<CompilationDiagnostic.Builder> implements CompilationDiagnosticOrBuilderCompilationDiagnostic represents a compilation diagnostic generated during a rule's compilation, such as a compilation error or a compilation warning.
Protobuf type google.cloud.chronicle.v1.CompilationDiagnostic
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CompilationDiagnostic.BuilderImplements
CompilationDiagnosticOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CompilationDiagnostic.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
CompilationDiagnostic.Builder |
|
build()
public CompilationDiagnostic build()| Returns | |
|---|---|
| Type | Description |
CompilationDiagnostic |
|
buildPartial()
public CompilationDiagnostic buildPartial()| Returns | |
|---|---|
| Type | Description |
CompilationDiagnostic |
|
clear()
public CompilationDiagnostic.Builder clear()| Returns | |
|---|---|
| Type | Description |
CompilationDiagnostic.Builder |
|
clearField(Descriptors.FieldDescriptor field)
public CompilationDiagnostic.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
CompilationDiagnostic.Builder |
|
clearMessage()
public CompilationDiagnostic.Builder clearMessage()Output only. The diagnostic message.
string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
CompilationDiagnostic.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public CompilationDiagnostic.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
CompilationDiagnostic.Builder |
|
clearPosition()
public CompilationDiagnostic.Builder clearPosition()Output only. The approximate position in the rule text associated with the compilation diagnostic. Compilation Position may be empty.
.google.cloud.chronicle.v1.CompilationPosition position = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
CompilationDiagnostic.Builder |
|
clearSeverity()
public CompilationDiagnostic.Builder clearSeverity()Output only. The severity of a rule's compilation diagnostic.
.google.cloud.chronicle.v1.CompilationDiagnostic.Severity severity = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
CompilationDiagnostic.Builder |
This builder for chaining. |
clearUri()
public CompilationDiagnostic.Builder clearUri()Output only. Link to documentation that describes a diagnostic in more detail.
string uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
CompilationDiagnostic.Builder |
This builder for chaining. |
clone()
public CompilationDiagnostic.Builder clone()| Returns | |
|---|---|
| Type | Description |
CompilationDiagnostic.Builder |
|
getDefaultInstanceForType()
public CompilationDiagnostic getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CompilationDiagnostic |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getMessage()
public String getMessage()Output only. The diagnostic message.
string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The message. |
getMessageBytes()
public ByteString getMessageBytes()Output only. The diagnostic message.
string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for message. |
getPosition()
public CompilationPosition getPosition()Output only. The approximate position in the rule text associated with the compilation diagnostic. Compilation Position may be empty.
.google.cloud.chronicle.v1.CompilationPosition position = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
CompilationPosition |
The position. |
getPositionBuilder()
public CompilationPosition.Builder getPositionBuilder()Output only. The approximate position in the rule text associated with the compilation diagnostic. Compilation Position may be empty.
.google.cloud.chronicle.v1.CompilationPosition position = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
CompilationPosition.Builder |
|
getPositionOrBuilder()
public CompilationPositionOrBuilder getPositionOrBuilder()Output only. The approximate position in the rule text associated with the compilation diagnostic. Compilation Position may be empty.
.google.cloud.chronicle.v1.CompilationPosition position = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
CompilationPositionOrBuilder |
|
getSeverity()
public CompilationDiagnostic.Severity getSeverity()Output only. The severity of a rule's compilation diagnostic.
.google.cloud.chronicle.v1.CompilationDiagnostic.Severity severity = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
CompilationDiagnostic.Severity |
The severity. |
getSeverityValue()
public int getSeverityValue()Output only. The severity of a rule's compilation diagnostic.
.google.cloud.chronicle.v1.CompilationDiagnostic.Severity severity = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for severity. |
getUri()
public String getUri()Output only. Link to documentation that describes a diagnostic in more detail.
string uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The uri. |
getUriBytes()
public ByteString getUriBytes()Output only. Link to documentation that describes a diagnostic in more detail.
string uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for uri. |
hasPosition()
public boolean hasPosition()Output only. The approximate position in the rule text associated with the compilation diagnostic. Compilation Position may be empty.
.google.cloud.chronicle.v1.CompilationPosition position = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the position field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CompilationDiagnostic other)
public CompilationDiagnostic.Builder mergeFrom(CompilationDiagnostic other)| Parameter | |
|---|---|
| Name | Description |
other |
CompilationDiagnostic |
| Returns | |
|---|---|
| Type | Description |
CompilationDiagnostic.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CompilationDiagnostic.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CompilationDiagnostic.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CompilationDiagnostic.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CompilationDiagnostic.Builder |
|
mergePosition(CompilationPosition value)
public CompilationDiagnostic.Builder mergePosition(CompilationPosition value)Output only. The approximate position in the rule text associated with the compilation diagnostic. Compilation Position may be empty.
.google.cloud.chronicle.v1.CompilationPosition position = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
CompilationPosition |
| Returns | |
|---|---|
| Type | Description |
CompilationDiagnostic.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CompilationDiagnostic.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
CompilationDiagnostic.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
public CompilationDiagnostic.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
CompilationDiagnostic.Builder |
|
setMessage(String value)
public CompilationDiagnostic.Builder setMessage(String value)Output only. The diagnostic message.
string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe message to set. |
| Returns | |
|---|---|
| Type | Description |
CompilationDiagnostic.Builder |
This builder for chaining. |
setMessageBytes(ByteString value)
public CompilationDiagnostic.Builder setMessageBytes(ByteString value)Output only. The diagnostic message.
string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for message to set. |
| Returns | |
|---|---|
| Type | Description |
CompilationDiagnostic.Builder |
This builder for chaining. |
setPosition(CompilationPosition value)
public CompilationDiagnostic.Builder setPosition(CompilationPosition value)Output only. The approximate position in the rule text associated with the compilation diagnostic. Compilation Position may be empty.
.google.cloud.chronicle.v1.CompilationPosition position = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
CompilationPosition |
| Returns | |
|---|---|
| Type | Description |
CompilationDiagnostic.Builder |
|
setPosition(CompilationPosition.Builder builderForValue)
public CompilationDiagnostic.Builder setPosition(CompilationPosition.Builder builderForValue)Output only. The approximate position in the rule text associated with the compilation diagnostic. Compilation Position may be empty.
.google.cloud.chronicle.v1.CompilationPosition position = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
CompilationPosition.Builder |
| Returns | |
|---|---|
| Type | Description |
CompilationDiagnostic.Builder |
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CompilationDiagnostic.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
CompilationDiagnostic.Builder |
|
setSeverity(CompilationDiagnostic.Severity value)
public CompilationDiagnostic.Builder setSeverity(CompilationDiagnostic.Severity value)Output only. The severity of a rule's compilation diagnostic.
.google.cloud.chronicle.v1.CompilationDiagnostic.Severity severity = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
CompilationDiagnostic.SeverityThe severity to set. |
| Returns | |
|---|---|
| Type | Description |
CompilationDiagnostic.Builder |
This builder for chaining. |
setSeverityValue(int value)
public CompilationDiagnostic.Builder setSeverityValue(int value)Output only. The severity of a rule's compilation diagnostic.
.google.cloud.chronicle.v1.CompilationDiagnostic.Severity severity = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for severity to set. |
| Returns | |
|---|---|
| Type | Description |
CompilationDiagnostic.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final CompilationDiagnostic.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
CompilationDiagnostic.Builder |
|
setUri(String value)
public CompilationDiagnostic.Builder setUri(String value)Output only. Link to documentation that describes a diagnostic in more detail.
string uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe uri to set. |
| Returns | |
|---|---|
| Type | Description |
CompilationDiagnostic.Builder |
This builder for chaining. |
setUriBytes(ByteString value)
public CompilationDiagnostic.Builder setUriBytes(ByteString value)Output only. Link to documentation that describes a diagnostic in more detail.
string uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for uri to set. |
| Returns | |
|---|---|
| Type | Description |
CompilationDiagnostic.Builder |
This builder for chaining. |