Class Issue.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Issue.Builder>
com.google.cloud.apihub.v1.Issue.Builder
All Implemented Interfaces:
IssueOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Issue

public static final class Issue.Builder extends com.google.protobuf.GeneratedMessage.Builder<Issue.Builder> implements IssueOrBuilder
 Issue contains the details of a single issue found by the linter.
 
Protobuf type google.cloud.apihub.v1.Issue
  • 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<Issue.Builder>
    • clear

      public Issue.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<Issue.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<Issue.Builder>
    • getDefaultInstanceForType

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

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

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

      public Issue.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<Issue.Builder>
    • mergeFrom

      public Issue.Builder mergeFrom(Issue other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Issue.Builder>
    • mergeFrom

      public Issue.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<Issue.Builder>
      Throws:
      IOException
    • getCode

      public String getCode()
       Required. Rule code unique to each rule defined in linter.
       
      string code = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCode in interface IssueOrBuilder
      Returns:
      The code.
    • getCodeBytes

      public com.google.protobuf.ByteString getCodeBytes()
       Required. Rule code unique to each rule defined in linter.
       
      string code = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCodeBytes in interface IssueOrBuilder
      Returns:
      The bytes for code.
    • setCode

      public Issue.Builder setCode(String value)
       Required. Rule code unique to each rule defined in linter.
       
      string code = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The code to set.
      Returns:
      This builder for chaining.
    • clearCode

      public Issue.Builder clearCode()
       Required. Rule code unique to each rule defined in linter.
       
      string code = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setCodeBytes

      public Issue.Builder setCodeBytes(com.google.protobuf.ByteString value)
       Required. Rule code unique to each rule defined in linter.
       
      string code = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for code to set.
      Returns:
      This builder for chaining.
    • getPathList

      public com.google.protobuf.ProtocolStringList getPathList()
       Required. An array of strings indicating the location in the analyzed
       document where the rule was triggered.
       
      repeated string path = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPathList in interface IssueOrBuilder
      Returns:
      A list containing the path.
    • getPathCount

      public int getPathCount()
       Required. An array of strings indicating the location in the analyzed
       document where the rule was triggered.
       
      repeated string path = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPathCount in interface IssueOrBuilder
      Returns:
      The count of path.
    • getPath

      public String getPath(int index)
       Required. An array of strings indicating the location in the analyzed
       document where the rule was triggered.
       
      repeated string path = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPath in interface IssueOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The path at the given index.
    • getPathBytes

      public com.google.protobuf.ByteString getPathBytes(int index)
       Required. An array of strings indicating the location in the analyzed
       document where the rule was triggered.
       
      repeated string path = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPathBytes in interface IssueOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the path at the given index.
    • setPath

      public Issue.Builder setPath(int index, String value)
       Required. An array of strings indicating the location in the analyzed
       document where the rule was triggered.
       
      repeated string path = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      index - The index to set the value at.
      value - The path to set.
      Returns:
      This builder for chaining.
    • addPath

      public Issue.Builder addPath(String value)
       Required. An array of strings indicating the location in the analyzed
       document where the rule was triggered.
       
      repeated string path = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The path to add.
      Returns:
      This builder for chaining.
    • addAllPath

      public Issue.Builder addAllPath(Iterable<String> values)
       Required. An array of strings indicating the location in the analyzed
       document where the rule was triggered.
       
      repeated string path = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      values - The path to add.
      Returns:
      This builder for chaining.
    • clearPath

      public Issue.Builder clearPath()
       Required. An array of strings indicating the location in the analyzed
       document where the rule was triggered.
       
      repeated string path = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • addPathBytes

      public Issue.Builder addPathBytes(com.google.protobuf.ByteString value)
       Required. An array of strings indicating the location in the analyzed
       document where the rule was triggered.
       
      repeated string path = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes of the path to add.
      Returns:
      This builder for chaining.
    • getMessage

      public String getMessage()
       Required. Human-readable message describing the issue found by the linter.
       
      string message = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getMessage in interface IssueOrBuilder
      Returns:
      The message.
    • getMessageBytes

      public com.google.protobuf.ByteString getMessageBytes()
       Required. Human-readable message describing the issue found by the linter.
       
      string message = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getMessageBytes in interface IssueOrBuilder
      Returns:
      The bytes for message.
    • setMessage

      public Issue.Builder setMessage(String value)
       Required. Human-readable message describing the issue found by the linter.
       
      string message = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The message to set.
      Returns:
      This builder for chaining.
    • clearMessage

      public Issue.Builder clearMessage()
       Required. Human-readable message describing the issue found by the linter.
       
      string message = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setMessageBytes

      public Issue.Builder setMessageBytes(com.google.protobuf.ByteString value)
       Required. Human-readable message describing the issue found by the linter.
       
      string message = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for message to set.
      Returns:
      This builder for chaining.
    • getSeverityValue

      public int getSeverityValue()
       Required. Severity level of the rule violation.
       
      .google.cloud.apihub.v1.Severity severity = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSeverityValue in interface IssueOrBuilder
      Returns:
      The enum numeric value on the wire for severity.
    • setSeverityValue

      public Issue.Builder setSeverityValue(int value)
       Required. Severity level of the rule violation.
       
      .google.cloud.apihub.v1.Severity severity = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for severity to set.
      Returns:
      This builder for chaining.
    • getSeverity

      public Severity getSeverity()
       Required. Severity level of the rule violation.
       
      .google.cloud.apihub.v1.Severity severity = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSeverity in interface IssueOrBuilder
      Returns:
      The severity.
    • setSeverity

      public Issue.Builder setSeverity(Severity value)
       Required. Severity level of the rule violation.
       
      .google.cloud.apihub.v1.Severity severity = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The severity to set.
      Returns:
      This builder for chaining.
    • clearSeverity

      public Issue.Builder clearSeverity()
       Required. Severity level of the rule violation.
       
      .google.cloud.apihub.v1.Severity severity = 4 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • hasRange

      public boolean hasRange()
       Required. Object describing where in the file the issue was found.
       
      .google.cloud.apihub.v1.Range range = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasRange in interface IssueOrBuilder
      Returns:
      Whether the range field is set.
    • getRange

      public Range getRange()
       Required. Object describing where in the file the issue was found.
       
      .google.cloud.apihub.v1.Range range = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRange in interface IssueOrBuilder
      Returns:
      The range.
    • setRange

      public Issue.Builder setRange(Range value)
       Required. Object describing where in the file the issue was found.
       
      .google.cloud.apihub.v1.Range range = 5 [(.google.api.field_behavior) = REQUIRED];
    • setRange

      public Issue.Builder setRange(Range.Builder builderForValue)
       Required. Object describing where in the file the issue was found.
       
      .google.cloud.apihub.v1.Range range = 5 [(.google.api.field_behavior) = REQUIRED];
    • mergeRange

      public Issue.Builder mergeRange(Range value)
       Required. Object describing where in the file the issue was found.
       
      .google.cloud.apihub.v1.Range range = 5 [(.google.api.field_behavior) = REQUIRED];
    • clearRange

      public Issue.Builder clearRange()
       Required. Object describing where in the file the issue was found.
       
      .google.cloud.apihub.v1.Range range = 5 [(.google.api.field_behavior) = REQUIRED];
    • getRangeBuilder

      public Range.Builder getRangeBuilder()
       Required. Object describing where in the file the issue was found.
       
      .google.cloud.apihub.v1.Range range = 5 [(.google.api.field_behavior) = REQUIRED];
    • getRangeOrBuilder

      public RangeOrBuilder getRangeOrBuilder()
       Required. Object describing where in the file the issue was found.
       
      .google.cloud.apihub.v1.Range range = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRangeOrBuilder in interface IssueOrBuilder