Class LintResponse.Builder

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

public static final class LintResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<LintResponse.Builder> implements LintResponseOrBuilder
 LintResponse contains the response from the linter.
 
Protobuf type google.cloud.apihub.v1.LintResponse
  • 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<LintResponse.Builder>
    • clear

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

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

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

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

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

      public LintResponse.Builder mergeFrom(LintResponse other)
    • isInitialized

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

      public LintResponse.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<LintResponse.Builder>
      Throws:
      IOException
    • getIssuesList

      public List<Issue> getIssuesList()
       Optional. Array of issues found in the analyzed document.
       
      repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIssuesList in interface LintResponseOrBuilder
    • getIssuesCount

      public int getIssuesCount()
       Optional. Array of issues found in the analyzed document.
       
      repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIssuesCount in interface LintResponseOrBuilder
    • getIssues

      public Issue getIssues(int index)
       Optional. Array of issues found in the analyzed document.
       
      repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIssues in interface LintResponseOrBuilder
    • setIssues

      public LintResponse.Builder setIssues(int index, Issue value)
       Optional. Array of issues found in the analyzed document.
       
      repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL];
    • setIssues

      public LintResponse.Builder setIssues(int index, Issue.Builder builderForValue)
       Optional. Array of issues found in the analyzed document.
       
      repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addIssues

      public LintResponse.Builder addIssues(Issue value)
       Optional. Array of issues found in the analyzed document.
       
      repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addIssues

      public LintResponse.Builder addIssues(int index, Issue value)
       Optional. Array of issues found in the analyzed document.
       
      repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addIssues

      public LintResponse.Builder addIssues(Issue.Builder builderForValue)
       Optional. Array of issues found in the analyzed document.
       
      repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addIssues

      public LintResponse.Builder addIssues(int index, Issue.Builder builderForValue)
       Optional. Array of issues found in the analyzed document.
       
      repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addAllIssues

      public LintResponse.Builder addAllIssues(Iterable<? extends Issue> values)
       Optional. Array of issues found in the analyzed document.
       
      repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL];
    • clearIssues

      public LintResponse.Builder clearIssues()
       Optional. Array of issues found in the analyzed document.
       
      repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL];
    • removeIssues

      public LintResponse.Builder removeIssues(int index)
       Optional. Array of issues found in the analyzed document.
       
      repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getIssuesBuilder

      public Issue.Builder getIssuesBuilder(int index)
       Optional. Array of issues found in the analyzed document.
       
      repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getIssuesOrBuilder

      public IssueOrBuilder getIssuesOrBuilder(int index)
       Optional. Array of issues found in the analyzed document.
       
      repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIssuesOrBuilder in interface LintResponseOrBuilder
    • getIssuesOrBuilderList

      public List<? extends IssueOrBuilder> getIssuesOrBuilderList()
       Optional. Array of issues found in the analyzed document.
       
      repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIssuesOrBuilderList in interface LintResponseOrBuilder
    • addIssuesBuilder

      public Issue.Builder addIssuesBuilder()
       Optional. Array of issues found in the analyzed document.
       
      repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addIssuesBuilder

      public Issue.Builder addIssuesBuilder(int index)
       Optional. Array of issues found in the analyzed document.
       
      repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getIssuesBuilderList

      public List<Issue.Builder> getIssuesBuilderList()
       Optional. Array of issues found in the analyzed document.
       
      repeated .google.cloud.apihub.v1.Issue issues = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getSummaryList

      public List<LintResponse.SummaryEntry> getSummaryList()
       Optional. Summary of all issue types and counts for each severity level.
       
      repeated .google.cloud.apihub.v1.LintResponse.SummaryEntry summary = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSummaryList in interface LintResponseOrBuilder
    • getSummaryCount

      public int getSummaryCount()
       Optional. Summary of all issue types and counts for each severity level.
       
      repeated .google.cloud.apihub.v1.LintResponse.SummaryEntry summary = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSummaryCount in interface LintResponseOrBuilder
    • getSummary

      public LintResponse.SummaryEntry getSummary(int index)
       Optional. Summary of all issue types and counts for each severity level.
       
      repeated .google.cloud.apihub.v1.LintResponse.SummaryEntry summary = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSummary in interface LintResponseOrBuilder
    • setSummary

      public LintResponse.Builder setSummary(int index, LintResponse.SummaryEntry value)
       Optional. Summary of all issue types and counts for each severity level.
       
      repeated .google.cloud.apihub.v1.LintResponse.SummaryEntry summary = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setSummary

      public LintResponse.Builder setSummary(int index, LintResponse.SummaryEntry.Builder builderForValue)
       Optional. Summary of all issue types and counts for each severity level.
       
      repeated .google.cloud.apihub.v1.LintResponse.SummaryEntry summary = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addSummary

       Optional. Summary of all issue types and counts for each severity level.
       
      repeated .google.cloud.apihub.v1.LintResponse.SummaryEntry summary = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addSummary

      public LintResponse.Builder addSummary(int index, LintResponse.SummaryEntry value)
       Optional. Summary of all issue types and counts for each severity level.
       
      repeated .google.cloud.apihub.v1.LintResponse.SummaryEntry summary = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addSummary

      public LintResponse.Builder addSummary(LintResponse.SummaryEntry.Builder builderForValue)
       Optional. Summary of all issue types and counts for each severity level.
       
      repeated .google.cloud.apihub.v1.LintResponse.SummaryEntry summary = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addSummary

      public LintResponse.Builder addSummary(int index, LintResponse.SummaryEntry.Builder builderForValue)
       Optional. Summary of all issue types and counts for each severity level.
       
      repeated .google.cloud.apihub.v1.LintResponse.SummaryEntry summary = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addAllSummary

      public LintResponse.Builder addAllSummary(Iterable<? extends LintResponse.SummaryEntry> values)
       Optional. Summary of all issue types and counts for each severity level.
       
      repeated .google.cloud.apihub.v1.LintResponse.SummaryEntry summary = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearSummary

      public LintResponse.Builder clearSummary()
       Optional. Summary of all issue types and counts for each severity level.
       
      repeated .google.cloud.apihub.v1.LintResponse.SummaryEntry summary = 2 [(.google.api.field_behavior) = OPTIONAL];
    • removeSummary

      public LintResponse.Builder removeSummary(int index)
       Optional. Summary of all issue types and counts for each severity level.
       
      repeated .google.cloud.apihub.v1.LintResponse.SummaryEntry summary = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getSummaryBuilder

      public LintResponse.SummaryEntry.Builder getSummaryBuilder(int index)
       Optional. Summary of all issue types and counts for each severity level.
       
      repeated .google.cloud.apihub.v1.LintResponse.SummaryEntry summary = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getSummaryOrBuilder

      public LintResponse.SummaryEntryOrBuilder getSummaryOrBuilder(int index)
       Optional. Summary of all issue types and counts for each severity level.
       
      repeated .google.cloud.apihub.v1.LintResponse.SummaryEntry summary = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSummaryOrBuilder in interface LintResponseOrBuilder
    • getSummaryOrBuilderList

      public List<? extends LintResponse.SummaryEntryOrBuilder> getSummaryOrBuilderList()
       Optional. Summary of all issue types and counts for each severity level.
       
      repeated .google.cloud.apihub.v1.LintResponse.SummaryEntry summary = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSummaryOrBuilderList in interface LintResponseOrBuilder
    • addSummaryBuilder

      public LintResponse.SummaryEntry.Builder addSummaryBuilder()
       Optional. Summary of all issue types and counts for each severity level.
       
      repeated .google.cloud.apihub.v1.LintResponse.SummaryEntry summary = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addSummaryBuilder

      public LintResponse.SummaryEntry.Builder addSummaryBuilder(int index)
       Optional. Summary of all issue types and counts for each severity level.
       
      repeated .google.cloud.apihub.v1.LintResponse.SummaryEntry summary = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getSummaryBuilderList

      public List<LintResponse.SummaryEntry.Builder> getSummaryBuilderList()
       Optional. Summary of all issue types and counts for each severity level.
       
      repeated .google.cloud.apihub.v1.LintResponse.SummaryEntry summary = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getStateValue

      public int getStateValue()
       Required. Lint state represents success or failure for linting.
       
      .google.cloud.apihub.v1.LintState state = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getStateValue in interface LintResponseOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public LintResponse.Builder setStateValue(int value)
       Required. Lint state represents success or failure for linting.
       
      .google.cloud.apihub.v1.LintState state = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public LintState getState()
       Required. Lint state represents success or failure for linting.
       
      .google.cloud.apihub.v1.LintState state = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getState in interface LintResponseOrBuilder
      Returns:
      The state.
    • setState

      public LintResponse.Builder setState(LintState value)
       Required. Lint state represents success or failure for linting.
       
      .google.cloud.apihub.v1.LintState state = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public LintResponse.Builder clearState()
       Required. Lint state represents success or failure for linting.
       
      .google.cloud.apihub.v1.LintState state = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getSource

      public String getSource()
       Required. Name of the linting application.
       
      string source = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSource in interface LintResponseOrBuilder
      Returns:
      The source.
    • getSourceBytes

      public com.google.protobuf.ByteString getSourceBytes()
       Required. Name of the linting application.
       
      string source = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSourceBytes in interface LintResponseOrBuilder
      Returns:
      The bytes for source.
    • setSource

      public LintResponse.Builder setSource(String value)
       Required. Name of the linting application.
       
      string source = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The source to set.
      Returns:
      This builder for chaining.
    • clearSource

      public LintResponse.Builder clearSource()
       Required. Name of the linting application.
       
      string source = 4 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setSourceBytes

      public LintResponse.Builder setSourceBytes(com.google.protobuf.ByteString value)
       Required. Name of the linting application.
       
      string source = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for source to set.
      Returns:
      This builder for chaining.
    • getLinterValue

      public int getLinterValue()
       Required. Name of the linter used.
       
      .google.cloud.apihub.v1.Linter linter = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getLinterValue in interface LintResponseOrBuilder
      Returns:
      The enum numeric value on the wire for linter.
    • setLinterValue

      public LintResponse.Builder setLinterValue(int value)
       Required. Name of the linter used.
       
      .google.cloud.apihub.v1.Linter linter = 5 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for linter to set.
      Returns:
      This builder for chaining.
    • getLinter

      public Linter getLinter()
       Required. Name of the linter used.
       
      .google.cloud.apihub.v1.Linter linter = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getLinter in interface LintResponseOrBuilder
      Returns:
      The linter.
    • setLinter

      public LintResponse.Builder setLinter(Linter value)
       Required. Name of the linter used.
       
      .google.cloud.apihub.v1.Linter linter = 5 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The linter to set.
      Returns:
      This builder for chaining.
    • clearLinter

      public LintResponse.Builder clearLinter()
       Required. Name of the linter used.
       
      .google.cloud.apihub.v1.Linter linter = 5 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Required. Timestamp when the linting response was generated.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasCreateTime in interface LintResponseOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Required. Timestamp when the linting response was generated.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCreateTime in interface LintResponseOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public LintResponse.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Required. Timestamp when the linting response was generated.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = REQUIRED];
    • setCreateTime

      public LintResponse.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Required. Timestamp when the linting response was generated.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = REQUIRED];
    • mergeCreateTime

      public LintResponse.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Required. Timestamp when the linting response was generated.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = REQUIRED];
    • clearCreateTime

      public LintResponse.Builder clearCreateTime()
       Required. Timestamp when the linting response was generated.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = REQUIRED];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Required. Timestamp when the linting response was generated.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = REQUIRED];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Required. Timestamp when the linting response was generated.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCreateTimeOrBuilder in interface LintResponseOrBuilder