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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CompilationDiagnostic.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<CompilationDiagnostic.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<CompilationDiagnostic.Builder>
    • getDefaultInstanceForType

      public CompilationDiagnostic getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public CompilationDiagnostic build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public CompilationDiagnostic buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public CompilationDiagnostic.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CompilationDiagnostic.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CompilationDiagnostic.Builder>
      Throws:
      IOException
    • getMessage

      public String getMessage()
       Output only. The diagnostic message.
       
      string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getMessage in interface CompilationDiagnosticOrBuilder
      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:
      getMessageBytes in interface CompilationDiagnosticOrBuilder
      Returns:
      The bytes for message.
    • setMessage

      public CompilationDiagnostic.Builder setMessage(String value)
       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

      public CompilationDiagnostic.Builder clearMessage()
       Output only. The diagnostic message.
       
      string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setMessageBytes

      public CompilationDiagnostic.Builder setMessageBytes(com.google.protobuf.ByteString value)
       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:
      hasPosition in interface CompilationDiagnosticOrBuilder
      Returns:
      Whether the position field is set.
    • 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];
      Specified by:
      getPosition in interface CompilationDiagnosticOrBuilder
      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

      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];
    • mergePosition

      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];
    • 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];
    • 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];
    • 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];
      Specified by:
      getPositionOrBuilder in interface CompilationDiagnosticOrBuilder
    • 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:
      getSeverityValue in interface CompilationDiagnosticOrBuilder
      Returns:
      The enum numeric value on the wire for severity.
    • setSeverityValue

      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];
      Parameters:
      value - The enum numeric value on the wire for severity to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getSeverity in interface CompilationDiagnosticOrBuilder
      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

      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:
      This builder for chaining.
    • 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];
      Specified by:
      getUri in interface CompilationDiagnosticOrBuilder
      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:
      getUriBytes in interface CompilationDiagnosticOrBuilder
      Returns:
      The bytes for uri.
    • setUri

      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];
      Parameters:
      value - The uri to set.
      Returns:
      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:
      This builder for chaining.
    • setUriBytes

      public CompilationDiagnostic.Builder setUriBytes(com.google.protobuf.ByteString value)
       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.