Package com.google.cloud.chronicle.v1
Class CompilationDiagnostic.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CompilationDiagnostic.Builder>
com.google.cloud.chronicle.v1.CompilationDiagnostic.Builder
- All Implemented Interfaces:
CompilationDiagnosticOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CompilationDiagnostic
public static final class CompilationDiagnostic.Builder
extends com.google.protobuf.GeneratedMessage.Builder<CompilationDiagnostic.Builder>
implements CompilationDiagnosticOrBuilder
CompilationDiagnostic 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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Output only.Output only.clearUri()Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.Output only.Output only.Output only.Output only.intOutput only.getUri()Output only.com.google.protobuf.ByteStringOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(CompilationDiagnostic other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergePosition(CompilationPosition value) Output only.setMessage(String value) Output only.setMessageBytes(com.google.protobuf.ByteString value) Output only.setPosition(CompilationPosition value) Output only.setPosition(CompilationPosition.Builder builderForValue) Output only.Output only.setSeverityValue(int value) Output only.Output only.setUriBytes(com.google.protobuf.ByteString value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<CompilationDiagnostic.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<CompilationDiagnostic.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<CompilationDiagnostic.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CompilationDiagnostic.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CompilationDiagnostic.Builder>
-
mergeFrom
public CompilationDiagnostic.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CompilationDiagnostic.Builder>- Throws:
IOException
-
getMessage
Output only. The diagnostic message.
string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getMessagein interfaceCompilationDiagnosticOrBuilder- Returns:
- The message.
-
getMessageBytes
public com.google.protobuf.ByteString getMessageBytes()Output only. The diagnostic message.
string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getMessageBytesin interfaceCompilationDiagnosticOrBuilder- Returns:
- The bytes for message.
-
setMessage
Output only. The diagnostic message.
string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The message to set.- Returns:
- This builder for chaining.
-
clearMessage
Output only. The diagnostic message.
string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setMessageBytes
Output only. The diagnostic message.
string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for message to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
hasPositionin interfaceCompilationDiagnosticOrBuilder- Returns:
- Whether the position field is set.
-
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];- Specified by:
getPositionin interfaceCompilationDiagnosticOrBuilder- Returns:
- The position.
-
setPosition
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]; -
setPosition
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]; -
mergePosition
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]; -
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]; -
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]; -
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];- Specified by:
getPositionOrBuilderin interfaceCompilationDiagnosticOrBuilder
-
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];- Specified by:
getSeverityValuein interfaceCompilationDiagnosticOrBuilder- Returns:
- The enum numeric value on the wire for severity.
-
setSeverityValue
Output only. The severity of a rule's compilation diagnostic.
.google.cloud.chronicle.v1.CompilationDiagnostic.Severity severity = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for severity to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getSeverityin interfaceCompilationDiagnosticOrBuilder- Returns:
- The severity.
-
setSeverity
Output only. The severity of a rule's compilation diagnostic.
.google.cloud.chronicle.v1.CompilationDiagnostic.Severity severity = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The severity to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
getUri
Output only. Link to documentation that describes a diagnostic in more detail.
string uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUriin interfaceCompilationDiagnosticOrBuilder- Returns:
- The uri.
-
getUriBytes
public com.google.protobuf.ByteString getUriBytes()Output only. Link to documentation that describes a diagnostic in more detail.
string uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUriBytesin interfaceCompilationDiagnosticOrBuilder- Returns:
- The bytes for uri.
-
setUri
Output only. Link to documentation that describes a diagnostic in more detail.
string uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The uri to set.- Returns:
- This builder for chaining.
-
clearUri
Output only. Link to documentation that describes a diagnostic in more detail.
string uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setUriBytes
Output only. Link to documentation that describes a diagnostic in more detail.
string uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for uri to set.- Returns:
- This builder for chaining.
-