/*
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/asset/v1/asset_service.proto

package com.google.cloud.asset.v1;

/**
 *
 *
 * <pre>
 * A response message for
 * [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy].
 * </pre>
 *
 * Protobuf type {@code google.cloud.asset.v1.AnalyzeIamPolicyResponse}
 */
public final class AnalyzeIamPolicyResponse extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.AnalyzeIamPolicyResponse)
    AnalyzeIamPolicyResponseOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use AnalyzeIamPolicyResponse.newBuilder() to construct.
  private AnalyzeIamPolicyResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private AnalyzeIamPolicyResponse() {
    serviceAccountImpersonationAnalysis_ = java.util.Collections.emptyList();
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    return new AnalyzeIamPolicyResponse();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    return this.unknownFields;
  }

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return com.google.cloud.asset.v1.AssetServiceProto
        .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.cloud.asset.v1.AssetServiceProto
        .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.class,
            com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.Builder.class);
  }

  public interface IamPolicyAnalysisOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * The analysis query.
     * </pre>
     *
     * <code>.google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1;</code>
     *
     * @return Whether the analysisQuery field is set.
     */
    boolean hasAnalysisQuery();
    /**
     *
     *
     * <pre>
     * The analysis query.
     * </pre>
     *
     * <code>.google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1;</code>
     *
     * @return The analysisQuery.
     */
    com.google.cloud.asset.v1.IamPolicyAnalysisQuery getAnalysisQuery();
    /**
     *
     *
     * <pre>
     * The analysis query.
     * </pre>
     *
     * <code>.google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1;</code>
     */
    com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getAnalysisQueryOrBuilder();

    /**
     *
     *
     * <pre>
     * A list of
     * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
     * that matches the analysis query, or empty if no result is found.
     * </pre>
     *
     * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code>
     */
    java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisResult> getAnalysisResultsList();
    /**
     *
     *
     * <pre>
     * A list of
     * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
     * that matches the analysis query, or empty if no result is found.
     * </pre>
     *
     * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code>
     */
    com.google.cloud.asset.v1.IamPolicyAnalysisResult getAnalysisResults(int index);
    /**
     *
     *
     * <pre>
     * A list of
     * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
     * that matches the analysis query, or empty if no result is found.
     * </pre>
     *
     * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code>
     */
    int getAnalysisResultsCount();
    /**
     *
     *
     * <pre>
     * A list of
     * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
     * that matches the analysis query, or empty if no result is found.
     * </pre>
     *
     * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code>
     */
    java.util.List<? extends com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder>
        getAnalysisResultsOrBuilderList();
    /**
     *
     *
     * <pre>
     * A list of
     * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
     * that matches the analysis query, or empty if no result is found.
     * </pre>
     *
     * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code>
     */
    com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder getAnalysisResultsOrBuilder(
        int index);

    /**
     *
     *
     * <pre>
     * Represents whether all entries in the
     * [analysis_results][google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.analysis_results]
     * have been fully explored to answer the query.
     * </pre>
     *
     * <code>bool fully_explored = 3;</code>
     *
     * @return The fullyExplored.
     */
    boolean getFullyExplored();

    /**
     *
     *
     * <pre>
     * A list of non-critical errors happened during the query handling.
     * </pre>
     *
     * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5;</code>
     */
    java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisState> getNonCriticalErrorsList();
    /**
     *
     *
     * <pre>
     * A list of non-critical errors happened during the query handling.
     * </pre>
     *
     * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5;</code>
     */
    com.google.cloud.asset.v1.IamPolicyAnalysisState getNonCriticalErrors(int index);
    /**
     *
     *
     * <pre>
     * A list of non-critical errors happened during the query handling.
     * </pre>
     *
     * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5;</code>
     */
    int getNonCriticalErrorsCount();
    /**
     *
     *
     * <pre>
     * A list of non-critical errors happened during the query handling.
     * </pre>
     *
     * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5;</code>
     */
    java.util.List<? extends com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder>
        getNonCriticalErrorsOrBuilderList();
    /**
     *
     *
     * <pre>
     * A list of non-critical errors happened during the query handling.
     * </pre>
     *
     * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5;</code>
     */
    com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder getNonCriticalErrorsOrBuilder(
        int index);
  }
  /**
   *
   *
   * <pre>
   * An analysis message to group the query and results.
   * </pre>
   *
   * Protobuf type {@code google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis}
   */
  public static final class IamPolicyAnalysis extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis)
      IamPolicyAnalysisOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use IamPolicyAnalysis.newBuilder() to construct.
    private IamPolicyAnalysis(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private IamPolicyAnalysis() {
      analysisResults_ = java.util.Collections.emptyList();
      nonCriticalErrors_ = java.util.Collections.emptyList();
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
      return new IamPolicyAnalysis();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
      return this.unknownFields;
    }

    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.asset.v1.AssetServiceProto
          .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.asset.v1.AssetServiceProto
          .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.class,
              com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder.class);
    }

    public static final int ANALYSIS_QUERY_FIELD_NUMBER = 1;
    private com.google.cloud.asset.v1.IamPolicyAnalysisQuery analysisQuery_;
    /**
     *
     *
     * <pre>
     * The analysis query.
     * </pre>
     *
     * <code>.google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1;</code>
     *
     * @return Whether the analysisQuery field is set.
     */
    @java.lang.Override
    public boolean hasAnalysisQuery() {
      return analysisQuery_ != null;
    }
    /**
     *
     *
     * <pre>
     * The analysis query.
     * </pre>
     *
     * <code>.google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1;</code>
     *
     * @return The analysisQuery.
     */
    @java.lang.Override
    public com.google.cloud.asset.v1.IamPolicyAnalysisQuery getAnalysisQuery() {
      return analysisQuery_ == null
          ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance()
          : analysisQuery_;
    }
    /**
     *
     *
     * <pre>
     * The analysis query.
     * </pre>
     *
     * <code>.google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1;</code>
     */
    @java.lang.Override
    public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getAnalysisQueryOrBuilder() {
      return analysisQuery_ == null
          ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance()
          : analysisQuery_;
    }

    public static final int ANALYSIS_RESULTS_FIELD_NUMBER = 2;

    @SuppressWarnings("serial")
    private java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisResult> analysisResults_;
    /**
     *
     *
     * <pre>
     * A list of
     * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
     * that matches the analysis query, or empty if no result is found.
     * </pre>
     *
     * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code>
     */
    @java.lang.Override
    public java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisResult>
        getAnalysisResultsList() {
      return analysisResults_;
    }
    /**
     *
     *
     * <pre>
     * A list of
     * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
     * that matches the analysis query, or empty if no result is found.
     * </pre>
     *
     * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code>
     */
    @java.lang.Override
    public java.util.List<? extends com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder>
        getAnalysisResultsOrBuilderList() {
      return analysisResults_;
    }
    /**
     *
     *
     * <pre>
     * A list of
     * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
     * that matches the analysis query, or empty if no result is found.
     * </pre>
     *
     * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code>
     */
    @java.lang.Override
    public int getAnalysisResultsCount() {
      return analysisResults_.size();
    }
    /**
     *
     *
     * <pre>
     * A list of
     * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
     * that matches the analysis query, or empty if no result is found.
     * </pre>
     *
     * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code>
     */
    @java.lang.Override
    public com.google.cloud.asset.v1.IamPolicyAnalysisResult getAnalysisResults(int index) {
      return analysisResults_.get(index);
    }
    /**
     *
     *
     * <pre>
     * A list of
     * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
     * that matches the analysis query, or empty if no result is found.
     * </pre>
     *
     * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code>
     */
    @java.lang.Override
    public com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder getAnalysisResultsOrBuilder(
        int index) {
      return analysisResults_.get(index);
    }

    public static final int FULLY_EXPLORED_FIELD_NUMBER = 3;
    private boolean fullyExplored_ = false;
    /**
     *
     *
     * <pre>
     * Represents whether all entries in the
     * [analysis_results][google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.analysis_results]
     * have been fully explored to answer the query.
     * </pre>
     *
     * <code>bool fully_explored = 3;</code>
     *
     * @return The fullyExplored.
     */
    @java.lang.Override
    public boolean getFullyExplored() {
      return fullyExplored_;
    }

    public static final int NON_CRITICAL_ERRORS_FIELD_NUMBER = 5;

    @SuppressWarnings("serial")
    private java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisState> nonCriticalErrors_;
    /**
     *
     *
     * <pre>
     * A list of non-critical errors happened during the query handling.
     * </pre>
     *
     * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5;</code>
     */
    @java.lang.Override
    public java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisState>
        getNonCriticalErrorsList() {
      return nonCriticalErrors_;
    }
    /**
     *
     *
     * <pre>
     * A list of non-critical errors happened during the query handling.
     * </pre>
     *
     * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5;</code>
     */
    @java.lang.Override
    public java.util.List<? extends com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder>
        getNonCriticalErrorsOrBuilderList() {
      return nonCriticalErrors_;
    }
    /**
     *
     *
     * <pre>
     * A list of non-critical errors happened during the query handling.
     * </pre>
     *
     * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5;</code>
     */
    @java.lang.Override
    public int getNonCriticalErrorsCount() {
      return nonCriticalErrors_.size();
    }
    /**
     *
     *
     * <pre>
     * A list of non-critical errors happened during the query handling.
     * </pre>
     *
     * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5;</code>
     */
    @java.lang.Override
    public com.google.cloud.asset.v1.IamPolicyAnalysisState getNonCriticalErrors(int index) {
      return nonCriticalErrors_.get(index);
    }
    /**
     *
     *
     * <pre>
     * A list of non-critical errors happened during the query handling.
     * </pre>
     *
     * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5;</code>
     */
    @java.lang.Override
    public com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder getNonCriticalErrorsOrBuilder(
        int index) {
      return nonCriticalErrors_.get(index);
    }

    private byte memoizedIsInitialized = -1;

    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
      if (analysisQuery_ != null) {
        output.writeMessage(1, getAnalysisQuery());
      }
      for (int i = 0; i < analysisResults_.size(); i++) {
        output.writeMessage(2, analysisResults_.get(i));
      }
      if (fullyExplored_ != false) {
        output.writeBool(3, fullyExplored_);
      }
      for (int i = 0; i < nonCriticalErrors_.size(); i++) {
        output.writeMessage(5, nonCriticalErrors_.get(i));
      }
      getUnknownFields().writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (analysisQuery_ != null) {
        size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAnalysisQuery());
      }
      for (int i = 0; i < analysisResults_.size(); i++) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(2, analysisResults_.get(i));
      }
      if (fullyExplored_ != false) {
        size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, fullyExplored_);
      }
      for (int i = 0; i < nonCriticalErrors_.size(); i++) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(5, nonCriticalErrors_.get(i));
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
        return true;
      }
      if (!(obj instanceof com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis)) {
        return super.equals(obj);
      }
      com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis other =
          (com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis) obj;

      if (hasAnalysisQuery() != other.hasAnalysisQuery()) return false;
      if (hasAnalysisQuery()) {
        if (!getAnalysisQuery().equals(other.getAnalysisQuery())) return false;
      }
      if (!getAnalysisResultsList().equals(other.getAnalysisResultsList())) return false;
      if (getFullyExplored() != other.getFullyExplored()) return false;
      if (!getNonCriticalErrorsList().equals(other.getNonCriticalErrorsList())) return false;
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasAnalysisQuery()) {
        hash = (37 * hash) + ANALYSIS_QUERY_FIELD_NUMBER;
        hash = (53 * hash) + getAnalysisQuery().hashCode();
      }
      if (getAnalysisResultsCount() > 0) {
        hash = (37 * hash) + ANALYSIS_RESULTS_FIELD_NUMBER;
        hash = (53 * hash) + getAnalysisResultsList().hashCode();
      }
      hash = (37 * hash) + FULLY_EXPLORED_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFullyExplored());
      if (getNonCriticalErrorsCount() > 0) {
        hash = (37 * hash) + NON_CRITICAL_ERRORS_FIELD_NUMBER;
        hash = (53 * hash) + getNonCriticalErrorsList().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parseFrom(
        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parseFrom(
        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parseFrom(
        byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parseFrom(
        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parseFrom(
        java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parseFrom(
        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          PARSER, input, extensionRegistry);
    }

    public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis
        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    }

    public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis
        parseDelimitedFrom(
            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
          PARSER, input, extensionRegistry);
    }

    public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parseFrom(
        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() {
      return newBuilder();
    }

    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }

    public static Builder newBuilder(
        com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }

    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     *
     *
     * <pre>
     * An analysis message to group the query and results.
     * </pre>
     *
     * Protobuf type {@code google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis)
        com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.asset.v1.AssetServiceProto
            .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.asset.v1.AssetServiceProto
            .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.class,
                com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder.class);
      }

      // Construct using
      // com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.newBuilder()
      private Builder() {}

      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
      }

      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        analysisQuery_ = null;
        if (analysisQueryBuilder_ != null) {
          analysisQueryBuilder_.dispose();
          analysisQueryBuilder_ = null;
        }
        if (analysisResultsBuilder_ == null) {
          analysisResults_ = java.util.Collections.emptyList();
        } else {
          analysisResults_ = null;
          analysisResultsBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000002);
        fullyExplored_ = false;
        if (nonCriticalErrorsBuilder_ == null) {
          nonCriticalErrors_ = java.util.Collections.emptyList();
        } else {
          nonCriticalErrors_ = null;
          nonCriticalErrorsBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000008);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
        return com.google.cloud.asset.v1.AssetServiceProto
            .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_IamPolicyAnalysis_descriptor;
      }

      @java.lang.Override
      public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis
          getDefaultInstanceForType() {
        return com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis
            .getDefaultInstance();
      }

      @java.lang.Override
      public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis build() {
        com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis result =
            buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis buildPartial() {
        com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis result =
            new com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis(this);
        buildPartialRepeatedFields(result);
        if (bitField0_ != 0) {
          buildPartial0(result);
        }
        onBuilt();
        return result;
      }

      private void buildPartialRepeatedFields(
          com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis result) {
        if (analysisResultsBuilder_ == null) {
          if (((bitField0_ & 0x00000002) != 0)) {
            analysisResults_ = java.util.Collections.unmodifiableList(analysisResults_);
            bitField0_ = (bitField0_ & ~0x00000002);
          }
          result.analysisResults_ = analysisResults_;
        } else {
          result.analysisResults_ = analysisResultsBuilder_.build();
        }
        if (nonCriticalErrorsBuilder_ == null) {
          if (((bitField0_ & 0x00000008) != 0)) {
            nonCriticalErrors_ = java.util.Collections.unmodifiableList(nonCriticalErrors_);
            bitField0_ = (bitField0_ & ~0x00000008);
          }
          result.nonCriticalErrors_ = nonCriticalErrors_;
        } else {
          result.nonCriticalErrors_ = nonCriticalErrorsBuilder_.build();
        }
      }

      private void buildPartial0(
          com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.analysisQuery_ =
              analysisQueryBuilder_ == null ? analysisQuery_ : analysisQueryBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000004) != 0)) {
          result.fullyExplored_ = fullyExplored_;
        }
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }

      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
        return super.setField(field, value);
      }

      @java.lang.Override
      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }

      @java.lang.Override
      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }

      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index,
          java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }

      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }

      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis) {
          return mergeFrom(
              (com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis) other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(
          com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis other) {
        if (other
            == com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis
                .getDefaultInstance()) return this;
        if (other.hasAnalysisQuery()) {
          mergeAnalysisQuery(other.getAnalysisQuery());
        }
        if (analysisResultsBuilder_ == null) {
          if (!other.analysisResults_.isEmpty()) {
            if (analysisResults_.isEmpty()) {
              analysisResults_ = other.analysisResults_;
              bitField0_ = (bitField0_ & ~0x00000002);
            } else {
              ensureAnalysisResultsIsMutable();
              analysisResults_.addAll(other.analysisResults_);
            }
            onChanged();
          }
        } else {
          if (!other.analysisResults_.isEmpty()) {
            if (analysisResultsBuilder_.isEmpty()) {
              analysisResultsBuilder_.dispose();
              analysisResultsBuilder_ = null;
              analysisResults_ = other.analysisResults_;
              bitField0_ = (bitField0_ & ~0x00000002);
              analysisResultsBuilder_ =
                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                      ? getAnalysisResultsFieldBuilder()
                      : null;
            } else {
              analysisResultsBuilder_.addAllMessages(other.analysisResults_);
            }
          }
        }
        if (other.getFullyExplored() != false) {
          setFullyExplored(other.getFullyExplored());
        }
        if (nonCriticalErrorsBuilder_ == null) {
          if (!other.nonCriticalErrors_.isEmpty()) {
            if (nonCriticalErrors_.isEmpty()) {
              nonCriticalErrors_ = other.nonCriticalErrors_;
              bitField0_ = (bitField0_ & ~0x00000008);
            } else {
              ensureNonCriticalErrorsIsMutable();
              nonCriticalErrors_.addAll(other.nonCriticalErrors_);
            }
            onChanged();
          }
        } else {
          if (!other.nonCriticalErrors_.isEmpty()) {
            if (nonCriticalErrorsBuilder_.isEmpty()) {
              nonCriticalErrorsBuilder_.dispose();
              nonCriticalErrorsBuilder_ = null;
              nonCriticalErrors_ = other.nonCriticalErrors_;
              bitField0_ = (bitField0_ & ~0x00000008);
              nonCriticalErrorsBuilder_ =
                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                      ? getNonCriticalErrorsFieldBuilder()
                      : null;
            } else {
              nonCriticalErrorsBuilder_.addAllMessages(other.nonCriticalErrors_);
            }
          }
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10:
                {
                  input.readMessage(getAnalysisQueryFieldBuilder().getBuilder(), extensionRegistry);
                  bitField0_ |= 0x00000001;
                  break;
                } // case 10
              case 18:
                {
                  com.google.cloud.asset.v1.IamPolicyAnalysisResult m =
                      input.readMessage(
                          com.google.cloud.asset.v1.IamPolicyAnalysisResult.parser(),
                          extensionRegistry);
                  if (analysisResultsBuilder_ == null) {
                    ensureAnalysisResultsIsMutable();
                    analysisResults_.add(m);
                  } else {
                    analysisResultsBuilder_.addMessage(m);
                  }
                  break;
                } // case 18
              case 24:
                {
                  fullyExplored_ = input.readBool();
                  bitField0_ |= 0x00000004;
                  break;
                } // case 24
              case 42:
                {
                  com.google.cloud.asset.v1.IamPolicyAnalysisState m =
                      input.readMessage(
                          com.google.cloud.asset.v1.IamPolicyAnalysisState.parser(),
                          extensionRegistry);
                  if (nonCriticalErrorsBuilder_ == null) {
                    ensureNonCriticalErrorsIsMutable();
                    nonCriticalErrors_.add(m);
                  } else {
                    nonCriticalErrorsBuilder_.addMessage(m);
                  }
                  break;
                } // case 42
              default:
                {
                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                    done = true; // was an endgroup tag
                  }
                  break;
                } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }

      private int bitField0_;

      private com.google.cloud.asset.v1.IamPolicyAnalysisQuery analysisQuery_;
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.asset.v1.IamPolicyAnalysisQuery,
              com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder,
              com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder>
          analysisQueryBuilder_;
      /**
       *
       *
       * <pre>
       * The analysis query.
       * </pre>
       *
       * <code>.google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1;</code>
       *
       * @return Whether the analysisQuery field is set.
       */
      public boolean hasAnalysisQuery() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       *
       *
       * <pre>
       * The analysis query.
       * </pre>
       *
       * <code>.google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1;</code>
       *
       * @return The analysisQuery.
       */
      public com.google.cloud.asset.v1.IamPolicyAnalysisQuery getAnalysisQuery() {
        if (analysisQueryBuilder_ == null) {
          return analysisQuery_ == null
              ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance()
              : analysisQuery_;
        } else {
          return analysisQueryBuilder_.getMessage();
        }
      }
      /**
       *
       *
       * <pre>
       * The analysis query.
       * </pre>
       *
       * <code>.google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1;</code>
       */
      public Builder setAnalysisQuery(com.google.cloud.asset.v1.IamPolicyAnalysisQuery value) {
        if (analysisQueryBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          analysisQuery_ = value;
        } else {
          analysisQueryBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The analysis query.
       * </pre>
       *
       * <code>.google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1;</code>
       */
      public Builder setAnalysisQuery(
          com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder builderForValue) {
        if (analysisQueryBuilder_ == null) {
          analysisQuery_ = builderForValue.build();
        } else {
          analysisQueryBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The analysis query.
       * </pre>
       *
       * <code>.google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1;</code>
       */
      public Builder mergeAnalysisQuery(com.google.cloud.asset.v1.IamPolicyAnalysisQuery value) {
        if (analysisQueryBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)
              && analysisQuery_ != null
              && analysisQuery_
                  != com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance()) {
            getAnalysisQueryBuilder().mergeFrom(value);
          } else {
            analysisQuery_ = value;
          }
        } else {
          analysisQueryBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The analysis query.
       * </pre>
       *
       * <code>.google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1;</code>
       */
      public Builder clearAnalysisQuery() {
        bitField0_ = (bitField0_ & ~0x00000001);
        analysisQuery_ = null;
        if (analysisQueryBuilder_ != null) {
          analysisQueryBuilder_.dispose();
          analysisQueryBuilder_ = null;
        }
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The analysis query.
       * </pre>
       *
       * <code>.google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1;</code>
       */
      public com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder getAnalysisQueryBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getAnalysisQueryFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * The analysis query.
       * </pre>
       *
       * <code>.google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1;</code>
       */
      public com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder getAnalysisQueryOrBuilder() {
        if (analysisQueryBuilder_ != null) {
          return analysisQueryBuilder_.getMessageOrBuilder();
        } else {
          return analysisQuery_ == null
              ? com.google.cloud.asset.v1.IamPolicyAnalysisQuery.getDefaultInstance()
              : analysisQuery_;
        }
      }
      /**
       *
       *
       * <pre>
       * The analysis query.
       * </pre>
       *
       * <code>.google.cloud.asset.v1.IamPolicyAnalysisQuery analysis_query = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.asset.v1.IamPolicyAnalysisQuery,
              com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder,
              com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder>
          getAnalysisQueryFieldBuilder() {
        if (analysisQueryBuilder_ == null) {
          analysisQueryBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.asset.v1.IamPolicyAnalysisQuery,
                  com.google.cloud.asset.v1.IamPolicyAnalysisQuery.Builder,
                  com.google.cloud.asset.v1.IamPolicyAnalysisQueryOrBuilder>(
                  getAnalysisQuery(), getParentForChildren(), isClean());
          analysisQuery_ = null;
        }
        return analysisQueryBuilder_;
      }

      private java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisResult> analysisResults_ =
          java.util.Collections.emptyList();

      private void ensureAnalysisResultsIsMutable() {
        if (!((bitField0_ & 0x00000002) != 0)) {
          analysisResults_ =
              new java.util.ArrayList<com.google.cloud.asset.v1.IamPolicyAnalysisResult>(
                  analysisResults_);
          bitField0_ |= 0x00000002;
        }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
              com.google.cloud.asset.v1.IamPolicyAnalysisResult,
              com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder,
              com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder>
          analysisResultsBuilder_;

      /**
       *
       *
       * <pre>
       * A list of
       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
       * that matches the analysis query, or empty if no result is found.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code>
       */
      public java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisResult>
          getAnalysisResultsList() {
        if (analysisResultsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(analysisResults_);
        } else {
          return analysisResultsBuilder_.getMessageList();
        }
      }
      /**
       *
       *
       * <pre>
       * A list of
       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
       * that matches the analysis query, or empty if no result is found.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code>
       */
      public int getAnalysisResultsCount() {
        if (analysisResultsBuilder_ == null) {
          return analysisResults_.size();
        } else {
          return analysisResultsBuilder_.getCount();
        }
      }
      /**
       *
       *
       * <pre>
       * A list of
       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
       * that matches the analysis query, or empty if no result is found.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code>
       */
      public com.google.cloud.asset.v1.IamPolicyAnalysisResult getAnalysisResults(int index) {
        if (analysisResultsBuilder_ == null) {
          return analysisResults_.get(index);
        } else {
          return analysisResultsBuilder_.getMessage(index);
        }
      }
      /**
       *
       *
       * <pre>
       * A list of
       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
       * that matches the analysis query, or empty if no result is found.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code>
       */
      public Builder setAnalysisResults(
          int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult value) {
        if (analysisResultsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureAnalysisResultsIsMutable();
          analysisResults_.set(index, value);
          onChanged();
        } else {
          analysisResultsBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * A list of
       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
       * that matches the analysis query, or empty if no result is found.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code>
       */
      public Builder setAnalysisResults(
          int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder builderForValue) {
        if (analysisResultsBuilder_ == null) {
          ensureAnalysisResultsIsMutable();
          analysisResults_.set(index, builderForValue.build());
          onChanged();
        } else {
          analysisResultsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * A list of
       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
       * that matches the analysis query, or empty if no result is found.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code>
       */
      public Builder addAnalysisResults(com.google.cloud.asset.v1.IamPolicyAnalysisResult value) {
        if (analysisResultsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureAnalysisResultsIsMutable();
          analysisResults_.add(value);
          onChanged();
        } else {
          analysisResultsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * A list of
       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
       * that matches the analysis query, or empty if no result is found.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code>
       */
      public Builder addAnalysisResults(
          int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult value) {
        if (analysisResultsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureAnalysisResultsIsMutable();
          analysisResults_.add(index, value);
          onChanged();
        } else {
          analysisResultsBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * A list of
       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
       * that matches the analysis query, or empty if no result is found.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code>
       */
      public Builder addAnalysisResults(
          com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder builderForValue) {
        if (analysisResultsBuilder_ == null) {
          ensureAnalysisResultsIsMutable();
          analysisResults_.add(builderForValue.build());
          onChanged();
        } else {
          analysisResultsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * A list of
       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
       * that matches the analysis query, or empty if no result is found.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code>
       */
      public Builder addAnalysisResults(
          int index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder builderForValue) {
        if (analysisResultsBuilder_ == null) {
          ensureAnalysisResultsIsMutable();
          analysisResults_.add(index, builderForValue.build());
          onChanged();
        } else {
          analysisResultsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * A list of
       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
       * that matches the analysis query, or empty if no result is found.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code>
       */
      public Builder addAllAnalysisResults(
          java.lang.Iterable<? extends com.google.cloud.asset.v1.IamPolicyAnalysisResult> values) {
        if (analysisResultsBuilder_ == null) {
          ensureAnalysisResultsIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(values, analysisResults_);
          onChanged();
        } else {
          analysisResultsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * A list of
       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
       * that matches the analysis query, or empty if no result is found.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code>
       */
      public Builder clearAnalysisResults() {
        if (analysisResultsBuilder_ == null) {
          analysisResults_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
          onChanged();
        } else {
          analysisResultsBuilder_.clear();
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * A list of
       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
       * that matches the analysis query, or empty if no result is found.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code>
       */
      public Builder removeAnalysisResults(int index) {
        if (analysisResultsBuilder_ == null) {
          ensureAnalysisResultsIsMutable();
          analysisResults_.remove(index);
          onChanged();
        } else {
          analysisResultsBuilder_.remove(index);
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * A list of
       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
       * that matches the analysis query, or empty if no result is found.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code>
       */
      public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder getAnalysisResultsBuilder(
          int index) {
        return getAnalysisResultsFieldBuilder().getBuilder(index);
      }
      /**
       *
       *
       * <pre>
       * A list of
       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
       * that matches the analysis query, or empty if no result is found.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code>
       */
      public com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder getAnalysisResultsOrBuilder(
          int index) {
        if (analysisResultsBuilder_ == null) {
          return analysisResults_.get(index);
        } else {
          return analysisResultsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       *
       *
       * <pre>
       * A list of
       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
       * that matches the analysis query, or empty if no result is found.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code>
       */
      public java.util.List<? extends com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder>
          getAnalysisResultsOrBuilderList() {
        if (analysisResultsBuilder_ != null) {
          return analysisResultsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(analysisResults_);
        }
      }
      /**
       *
       *
       * <pre>
       * A list of
       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
       * that matches the analysis query, or empty if no result is found.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code>
       */
      public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder addAnalysisResultsBuilder() {
        return getAnalysisResultsFieldBuilder()
            .addBuilder(com.google.cloud.asset.v1.IamPolicyAnalysisResult.getDefaultInstance());
      }
      /**
       *
       *
       * <pre>
       * A list of
       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
       * that matches the analysis query, or empty if no result is found.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code>
       */
      public com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder addAnalysisResultsBuilder(
          int index) {
        return getAnalysisResultsFieldBuilder()
            .addBuilder(
                index, com.google.cloud.asset.v1.IamPolicyAnalysisResult.getDefaultInstance());
      }
      /**
       *
       *
       * <pre>
       * A list of
       * [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult]
       * that matches the analysis query, or empty if no result is found.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisResult analysis_results = 2;</code>
       */
      public java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder>
          getAnalysisResultsBuilderList() {
        return getAnalysisResultsFieldBuilder().getBuilderList();
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
              com.google.cloud.asset.v1.IamPolicyAnalysisResult,
              com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder,
              com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder>
          getAnalysisResultsFieldBuilder() {
        if (analysisResultsBuilder_ == null) {
          analysisResultsBuilder_ =
              new com.google.protobuf.RepeatedFieldBuilderV3<
                  com.google.cloud.asset.v1.IamPolicyAnalysisResult,
                  com.google.cloud.asset.v1.IamPolicyAnalysisResult.Builder,
                  com.google.cloud.asset.v1.IamPolicyAnalysisResultOrBuilder>(
                  analysisResults_,
                  ((bitField0_ & 0x00000002) != 0),
                  getParentForChildren(),
                  isClean());
          analysisResults_ = null;
        }
        return analysisResultsBuilder_;
      }

      private boolean fullyExplored_;
      /**
       *
       *
       * <pre>
       * Represents whether all entries in the
       * [analysis_results][google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.analysis_results]
       * have been fully explored to answer the query.
       * </pre>
       *
       * <code>bool fully_explored = 3;</code>
       *
       * @return The fullyExplored.
       */
      @java.lang.Override
      public boolean getFullyExplored() {
        return fullyExplored_;
      }
      /**
       *
       *
       * <pre>
       * Represents whether all entries in the
       * [analysis_results][google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.analysis_results]
       * have been fully explored to answer the query.
       * </pre>
       *
       * <code>bool fully_explored = 3;</code>
       *
       * @param value The fullyExplored to set.
       * @return This builder for chaining.
       */
      public Builder setFullyExplored(boolean value) {

        fullyExplored_ = value;
        bitField0_ |= 0x00000004;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Represents whether all entries in the
       * [analysis_results][google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.analysis_results]
       * have been fully explored to answer the query.
       * </pre>
       *
       * <code>bool fully_explored = 3;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearFullyExplored() {
        bitField0_ = (bitField0_ & ~0x00000004);
        fullyExplored_ = false;
        onChanged();
        return this;
      }

      private java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisState> nonCriticalErrors_ =
          java.util.Collections.emptyList();

      private void ensureNonCriticalErrorsIsMutable() {
        if (!((bitField0_ & 0x00000008) != 0)) {
          nonCriticalErrors_ =
              new java.util.ArrayList<com.google.cloud.asset.v1.IamPolicyAnalysisState>(
                  nonCriticalErrors_);
          bitField0_ |= 0x00000008;
        }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
              com.google.cloud.asset.v1.IamPolicyAnalysisState,
              com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder,
              com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder>
          nonCriticalErrorsBuilder_;

      /**
       *
       *
       * <pre>
       * A list of non-critical errors happened during the query handling.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5;
       * </code>
       */
      public java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisState>
          getNonCriticalErrorsList() {
        if (nonCriticalErrorsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(nonCriticalErrors_);
        } else {
          return nonCriticalErrorsBuilder_.getMessageList();
        }
      }
      /**
       *
       *
       * <pre>
       * A list of non-critical errors happened during the query handling.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5;
       * </code>
       */
      public int getNonCriticalErrorsCount() {
        if (nonCriticalErrorsBuilder_ == null) {
          return nonCriticalErrors_.size();
        } else {
          return nonCriticalErrorsBuilder_.getCount();
        }
      }
      /**
       *
       *
       * <pre>
       * A list of non-critical errors happened during the query handling.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5;
       * </code>
       */
      public com.google.cloud.asset.v1.IamPolicyAnalysisState getNonCriticalErrors(int index) {
        if (nonCriticalErrorsBuilder_ == null) {
          return nonCriticalErrors_.get(index);
        } else {
          return nonCriticalErrorsBuilder_.getMessage(index);
        }
      }
      /**
       *
       *
       * <pre>
       * A list of non-critical errors happened during the query handling.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5;
       * </code>
       */
      public Builder setNonCriticalErrors(
          int index, com.google.cloud.asset.v1.IamPolicyAnalysisState value) {
        if (nonCriticalErrorsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureNonCriticalErrorsIsMutable();
          nonCriticalErrors_.set(index, value);
          onChanged();
        } else {
          nonCriticalErrorsBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * A list of non-critical errors happened during the query handling.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5;
       * </code>
       */
      public Builder setNonCriticalErrors(
          int index, com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder builderForValue) {
        if (nonCriticalErrorsBuilder_ == null) {
          ensureNonCriticalErrorsIsMutable();
          nonCriticalErrors_.set(index, builderForValue.build());
          onChanged();
        } else {
          nonCriticalErrorsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * A list of non-critical errors happened during the query handling.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5;
       * </code>
       */
      public Builder addNonCriticalErrors(com.google.cloud.asset.v1.IamPolicyAnalysisState value) {
        if (nonCriticalErrorsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureNonCriticalErrorsIsMutable();
          nonCriticalErrors_.add(value);
          onChanged();
        } else {
          nonCriticalErrorsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * A list of non-critical errors happened during the query handling.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5;
       * </code>
       */
      public Builder addNonCriticalErrors(
          int index, com.google.cloud.asset.v1.IamPolicyAnalysisState value) {
        if (nonCriticalErrorsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureNonCriticalErrorsIsMutable();
          nonCriticalErrors_.add(index, value);
          onChanged();
        } else {
          nonCriticalErrorsBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * A list of non-critical errors happened during the query handling.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5;
       * </code>
       */
      public Builder addNonCriticalErrors(
          com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder builderForValue) {
        if (nonCriticalErrorsBuilder_ == null) {
          ensureNonCriticalErrorsIsMutable();
          nonCriticalErrors_.add(builderForValue.build());
          onChanged();
        } else {
          nonCriticalErrorsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * A list of non-critical errors happened during the query handling.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5;
       * </code>
       */
      public Builder addNonCriticalErrors(
          int index, com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder builderForValue) {
        if (nonCriticalErrorsBuilder_ == null) {
          ensureNonCriticalErrorsIsMutable();
          nonCriticalErrors_.add(index, builderForValue.build());
          onChanged();
        } else {
          nonCriticalErrorsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * A list of non-critical errors happened during the query handling.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5;
       * </code>
       */
      public Builder addAllNonCriticalErrors(
          java.lang.Iterable<? extends com.google.cloud.asset.v1.IamPolicyAnalysisState> values) {
        if (nonCriticalErrorsBuilder_ == null) {
          ensureNonCriticalErrorsIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nonCriticalErrors_);
          onChanged();
        } else {
          nonCriticalErrorsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * A list of non-critical errors happened during the query handling.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5;
       * </code>
       */
      public Builder clearNonCriticalErrors() {
        if (nonCriticalErrorsBuilder_ == null) {
          nonCriticalErrors_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000008);
          onChanged();
        } else {
          nonCriticalErrorsBuilder_.clear();
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * A list of non-critical errors happened during the query handling.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5;
       * </code>
       */
      public Builder removeNonCriticalErrors(int index) {
        if (nonCriticalErrorsBuilder_ == null) {
          ensureNonCriticalErrorsIsMutable();
          nonCriticalErrors_.remove(index);
          onChanged();
        } else {
          nonCriticalErrorsBuilder_.remove(index);
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * A list of non-critical errors happened during the query handling.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5;
       * </code>
       */
      public com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder getNonCriticalErrorsBuilder(
          int index) {
        return getNonCriticalErrorsFieldBuilder().getBuilder(index);
      }
      /**
       *
       *
       * <pre>
       * A list of non-critical errors happened during the query handling.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5;
       * </code>
       */
      public com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder
          getNonCriticalErrorsOrBuilder(int index) {
        if (nonCriticalErrorsBuilder_ == null) {
          return nonCriticalErrors_.get(index);
        } else {
          return nonCriticalErrorsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       *
       *
       * <pre>
       * A list of non-critical errors happened during the query handling.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5;
       * </code>
       */
      public java.util.List<? extends com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder>
          getNonCriticalErrorsOrBuilderList() {
        if (nonCriticalErrorsBuilder_ != null) {
          return nonCriticalErrorsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(nonCriticalErrors_);
        }
      }
      /**
       *
       *
       * <pre>
       * A list of non-critical errors happened during the query handling.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5;
       * </code>
       */
      public com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder
          addNonCriticalErrorsBuilder() {
        return getNonCriticalErrorsFieldBuilder()
            .addBuilder(com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance());
      }
      /**
       *
       *
       * <pre>
       * A list of non-critical errors happened during the query handling.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5;
       * </code>
       */
      public com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder addNonCriticalErrorsBuilder(
          int index) {
        return getNonCriticalErrorsFieldBuilder()
            .addBuilder(
                index, com.google.cloud.asset.v1.IamPolicyAnalysisState.getDefaultInstance());
      }
      /**
       *
       *
       * <pre>
       * A list of non-critical errors happened during the query handling.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.IamPolicyAnalysisState non_critical_errors = 5;
       * </code>
       */
      public java.util.List<com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder>
          getNonCriticalErrorsBuilderList() {
        return getNonCriticalErrorsFieldBuilder().getBuilderList();
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
              com.google.cloud.asset.v1.IamPolicyAnalysisState,
              com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder,
              com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder>
          getNonCriticalErrorsFieldBuilder() {
        if (nonCriticalErrorsBuilder_ == null) {
          nonCriticalErrorsBuilder_ =
              new com.google.protobuf.RepeatedFieldBuilderV3<
                  com.google.cloud.asset.v1.IamPolicyAnalysisState,
                  com.google.cloud.asset.v1.IamPolicyAnalysisState.Builder,
                  com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder>(
                  nonCriticalErrors_,
                  ((bitField0_ & 0x00000008) != 0),
                  getParentForChildren(),
                  isClean());
          nonCriticalErrors_ = null;
        }
        return nonCriticalErrorsBuilder_;
      }

      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }

      // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis)
    }

    // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis)
    private static final com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis
        DEFAULT_INSTANCE;

    static {
      DEFAULT_INSTANCE = new com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis();
    }

    public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis
        getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<IamPolicyAnalysis> PARSER =
        new com.google.protobuf.AbstractParser<IamPolicyAnalysis>() {
          @java.lang.Override
          public IamPolicyAnalysis parsePartialFrom(
              com.google.protobuf.CodedInputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws com.google.protobuf.InvalidProtocolBufferException {
            Builder builder = newBuilder();
            try {
              builder.mergeFrom(input, extensionRegistry);
            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
              throw e.setUnfinishedMessage(builder.buildPartial());
            } catch (com.google.protobuf.UninitializedMessageException e) {
              throw e.asInvalidProtocolBufferException()
                  .setUnfinishedMessage(builder.buildPartial());
            } catch (java.io.IOException e) {
              throw new com.google.protobuf.InvalidProtocolBufferException(e)
                  .setUnfinishedMessage(builder.buildPartial());
            }
            return builder.buildPartial();
          }
        };

    public static com.google.protobuf.Parser<IamPolicyAnalysis> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<IamPolicyAnalysis> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis
        getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }

  public static final int MAIN_ANALYSIS_FIELD_NUMBER = 1;
  private com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis mainAnalysis_;
  /**
   *
   *
   * <pre>
   * The main analysis that matches the original request.
   * </pre>
   *
   * <code>.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1;
   * </code>
   *
   * @return Whether the mainAnalysis field is set.
   */
  @java.lang.Override
  public boolean hasMainAnalysis() {
    return mainAnalysis_ != null;
  }
  /**
   *
   *
   * <pre>
   * The main analysis that matches the original request.
   * </pre>
   *
   * <code>.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1;
   * </code>
   *
   * @return The mainAnalysis.
   */
  @java.lang.Override
  public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis getMainAnalysis() {
    return mainAnalysis_ == null
        ? com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.getDefaultInstance()
        : mainAnalysis_;
  }
  /**
   *
   *
   * <pre>
   * The main analysis that matches the original request.
   * </pre>
   *
   * <code>.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1;
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder
      getMainAnalysisOrBuilder() {
    return mainAnalysis_ == null
        ? com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.getDefaultInstance()
        : mainAnalysis_;
  }

  public static final int SERVICE_ACCOUNT_IMPERSONATION_ANALYSIS_FIELD_NUMBER = 2;

  @SuppressWarnings("serial")
  private java.util.List<com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis>
      serviceAccountImpersonationAnalysis_;
  /**
   *
   *
   * <pre>
   * The service account impersonation analysis if
   * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
   * enabled.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2;
   * </code>
   */
  @java.lang.Override
  public java.util.List<com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis>
      getServiceAccountImpersonationAnalysisList() {
    return serviceAccountImpersonationAnalysis_;
  }
  /**
   *
   *
   * <pre>
   * The service account impersonation analysis if
   * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
   * enabled.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2;
   * </code>
   */
  @java.lang.Override
  public java.util.List<
          ? extends com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder>
      getServiceAccountImpersonationAnalysisOrBuilderList() {
    return serviceAccountImpersonationAnalysis_;
  }
  /**
   *
   *
   * <pre>
   * The service account impersonation analysis if
   * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
   * enabled.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2;
   * </code>
   */
  @java.lang.Override
  public int getServiceAccountImpersonationAnalysisCount() {
    return serviceAccountImpersonationAnalysis_.size();
  }
  /**
   *
   *
   * <pre>
   * The service account impersonation analysis if
   * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
   * enabled.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2;
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis
      getServiceAccountImpersonationAnalysis(int index) {
    return serviceAccountImpersonationAnalysis_.get(index);
  }
  /**
   *
   *
   * <pre>
   * The service account impersonation analysis if
   * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
   * enabled.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2;
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder
      getServiceAccountImpersonationAnalysisOrBuilder(int index) {
    return serviceAccountImpersonationAnalysis_.get(index);
  }

  public static final int FULLY_EXPLORED_FIELD_NUMBER = 3;
  private boolean fullyExplored_ = false;
  /**
   *
   *
   * <pre>
   * Represents whether all entries in the
   * [main_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.main_analysis]
   * and
   * [service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis]
   * have been fully explored to answer the query in the request.
   * </pre>
   *
   * <code>bool fully_explored = 3;</code>
   *
   * @return The fullyExplored.
   */
  @java.lang.Override
  public boolean getFullyExplored() {
    return fullyExplored_;
  }

  private byte memoizedIsInitialized = -1;

  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (mainAnalysis_ != null) {
      output.writeMessage(1, getMainAnalysis());
    }
    for (int i = 0; i < serviceAccountImpersonationAnalysis_.size(); i++) {
      output.writeMessage(2, serviceAccountImpersonationAnalysis_.get(i));
    }
    if (fullyExplored_ != false) {
      output.writeBool(3, fullyExplored_);
    }
    getUnknownFields().writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (mainAnalysis_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMainAnalysis());
    }
    for (int i = 0; i < serviceAccountImpersonationAnalysis_.size(); i++) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              2, serviceAccountImpersonationAnalysis_.get(i));
    }
    if (fullyExplored_ != false) {
      size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, fullyExplored_);
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof com.google.cloud.asset.v1.AnalyzeIamPolicyResponse)) {
      return super.equals(obj);
    }
    com.google.cloud.asset.v1.AnalyzeIamPolicyResponse other =
        (com.google.cloud.asset.v1.AnalyzeIamPolicyResponse) obj;

    if (hasMainAnalysis() != other.hasMainAnalysis()) return false;
    if (hasMainAnalysis()) {
      if (!getMainAnalysis().equals(other.getMainAnalysis())) return false;
    }
    if (!getServiceAccountImpersonationAnalysisList()
        .equals(other.getServiceAccountImpersonationAnalysisList())) return false;
    if (getFullyExplored() != other.getFullyExplored()) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (hasMainAnalysis()) {
      hash = (37 * hash) + MAIN_ANALYSIS_FIELD_NUMBER;
      hash = (53 * hash) + getMainAnalysis().hashCode();
    }
    if (getServiceAccountImpersonationAnalysisCount() > 0) {
      hash = (37 * hash) + SERVICE_ACCOUNT_IMPERSONATION_ANALYSIS_FIELD_NUMBER;
      hash = (53 * hash) + getServiceAccountImpersonationAnalysisList().hashCode();
    }
    hash = (37 * hash) + FULLY_EXPLORED_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFullyExplored());
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseFrom(
      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseFrom(
      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseFrom(
      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseDelimitedFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseDelimitedFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseFrom(
      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() {
    return newBuilder();
  }

  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }

  public static Builder newBuilder(com.google.cloud.asset.v1.AnalyzeIamPolicyResponse prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }

  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   *
   *
   * <pre>
   * A response message for
   * [AssetService.AnalyzeIamPolicy][google.cloud.asset.v1.AssetService.AnalyzeIamPolicy].
   * </pre>
   *
   * Protobuf type {@code google.cloud.asset.v1.AnalyzeIamPolicyResponse}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.AnalyzeIamPolicyResponse)
      com.google.cloud.asset.v1.AnalyzeIamPolicyResponseOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.asset.v1.AssetServiceProto
          .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.asset.v1.AssetServiceProto
          .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.class,
              com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.Builder.class);
    }

    // Construct using com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.newBuilder()
    private Builder() {}

    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
    }

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      mainAnalysis_ = null;
      if (mainAnalysisBuilder_ != null) {
        mainAnalysisBuilder_.dispose();
        mainAnalysisBuilder_ = null;
      }
      if (serviceAccountImpersonationAnalysisBuilder_ == null) {
        serviceAccountImpersonationAnalysis_ = java.util.Collections.emptyList();
      } else {
        serviceAccountImpersonationAnalysis_ = null;
        serviceAccountImpersonationAnalysisBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000002);
      fullyExplored_ = false;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.cloud.asset.v1.AssetServiceProto
          .internal_static_google_cloud_asset_v1_AnalyzeIamPolicyResponse_descriptor;
    }

    @java.lang.Override
    public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse getDefaultInstanceForType() {
      return com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.getDefaultInstance();
    }

    @java.lang.Override
    public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse build() {
      com.google.cloud.asset.v1.AnalyzeIamPolicyResponse result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse buildPartial() {
      com.google.cloud.asset.v1.AnalyzeIamPolicyResponse result =
          new com.google.cloud.asset.v1.AnalyzeIamPolicyResponse(this);
      buildPartialRepeatedFields(result);
      if (bitField0_ != 0) {
        buildPartial0(result);
      }
      onBuilt();
      return result;
    }

    private void buildPartialRepeatedFields(
        com.google.cloud.asset.v1.AnalyzeIamPolicyResponse result) {
      if (serviceAccountImpersonationAnalysisBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0)) {
          serviceAccountImpersonationAnalysis_ =
              java.util.Collections.unmodifiableList(serviceAccountImpersonationAnalysis_);
          bitField0_ = (bitField0_ & ~0x00000002);
        }
        result.serviceAccountImpersonationAnalysis_ = serviceAccountImpersonationAnalysis_;
      } else {
        result.serviceAccountImpersonationAnalysis_ =
            serviceAccountImpersonationAnalysisBuilder_.build();
      }
    }

    private void buildPartial0(com.google.cloud.asset.v1.AnalyzeIamPolicyResponse result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.mainAnalysis_ =
            mainAnalysisBuilder_ == null ? mainAnalysis_ : mainAnalysisBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.fullyExplored_ = fullyExplored_;
      }
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }

    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      return super.setField(field, value);
    }

    @java.lang.Override
    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }

    @java.lang.Override
    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }

    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }

    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }

    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.google.cloud.asset.v1.AnalyzeIamPolicyResponse) {
        return mergeFrom((com.google.cloud.asset.v1.AnalyzeIamPolicyResponse) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.cloud.asset.v1.AnalyzeIamPolicyResponse other) {
      if (other == com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.getDefaultInstance())
        return this;
      if (other.hasMainAnalysis()) {
        mergeMainAnalysis(other.getMainAnalysis());
      }
      if (serviceAccountImpersonationAnalysisBuilder_ == null) {
        if (!other.serviceAccountImpersonationAnalysis_.isEmpty()) {
          if (serviceAccountImpersonationAnalysis_.isEmpty()) {
            serviceAccountImpersonationAnalysis_ = other.serviceAccountImpersonationAnalysis_;
            bitField0_ = (bitField0_ & ~0x00000002);
          } else {
            ensureServiceAccountImpersonationAnalysisIsMutable();
            serviceAccountImpersonationAnalysis_.addAll(other.serviceAccountImpersonationAnalysis_);
          }
          onChanged();
        }
      } else {
        if (!other.serviceAccountImpersonationAnalysis_.isEmpty()) {
          if (serviceAccountImpersonationAnalysisBuilder_.isEmpty()) {
            serviceAccountImpersonationAnalysisBuilder_.dispose();
            serviceAccountImpersonationAnalysisBuilder_ = null;
            serviceAccountImpersonationAnalysis_ = other.serviceAccountImpersonationAnalysis_;
            bitField0_ = (bitField0_ & ~0x00000002);
            serviceAccountImpersonationAnalysisBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getServiceAccountImpersonationAnalysisFieldBuilder()
                    : null;
          } else {
            serviceAccountImpersonationAnalysisBuilder_.addAllMessages(
                other.serviceAccountImpersonationAnalysis_);
          }
        }
      }
      if (other.getFullyExplored() != false) {
        setFullyExplored(other.getFullyExplored());
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10:
              {
                input.readMessage(getMainAnalysisFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000001;
                break;
              } // case 10
            case 18:
              {
                com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis m =
                    input.readMessage(
                        com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis
                            .parser(),
                        extensionRegistry);
                if (serviceAccountImpersonationAnalysisBuilder_ == null) {
                  ensureServiceAccountImpersonationAnalysisIsMutable();
                  serviceAccountImpersonationAnalysis_.add(m);
                } else {
                  serviceAccountImpersonationAnalysisBuilder_.addMessage(m);
                }
                break;
              } // case 18
            case 24:
              {
                fullyExplored_ = input.readBool();
                bitField0_ |= 0x00000004;
                break;
              } // case 24
            default:
              {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }

    private int bitField0_;

    private com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis mainAnalysis_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis,
            com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder,
            com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder>
        mainAnalysisBuilder_;
    /**
     *
     *
     * <pre>
     * The main analysis that matches the original request.
     * </pre>
     *
     * <code>.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1;
     * </code>
     *
     * @return Whether the mainAnalysis field is set.
     */
    public boolean hasMainAnalysis() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     *
     *
     * <pre>
     * The main analysis that matches the original request.
     * </pre>
     *
     * <code>.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1;
     * </code>
     *
     * @return The mainAnalysis.
     */
    public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis getMainAnalysis() {
      if (mainAnalysisBuilder_ == null) {
        return mainAnalysis_ == null
            ? com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis
                .getDefaultInstance()
            : mainAnalysis_;
      } else {
        return mainAnalysisBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * The main analysis that matches the original request.
     * </pre>
     *
     * <code>.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1;
     * </code>
     */
    public Builder setMainAnalysis(
        com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis value) {
      if (mainAnalysisBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        mainAnalysis_ = value;
      } else {
        mainAnalysisBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The main analysis that matches the original request.
     * </pre>
     *
     * <code>.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1;
     * </code>
     */
    public Builder setMainAnalysis(
        com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder
            builderForValue) {
      if (mainAnalysisBuilder_ == null) {
        mainAnalysis_ = builderForValue.build();
      } else {
        mainAnalysisBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The main analysis that matches the original request.
     * </pre>
     *
     * <code>.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1;
     * </code>
     */
    public Builder mergeMainAnalysis(
        com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis value) {
      if (mainAnalysisBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)
            && mainAnalysis_ != null
            && mainAnalysis_
                != com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis
                    .getDefaultInstance()) {
          getMainAnalysisBuilder().mergeFrom(value);
        } else {
          mainAnalysis_ = value;
        }
      } else {
        mainAnalysisBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The main analysis that matches the original request.
     * </pre>
     *
     * <code>.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1;
     * </code>
     */
    public Builder clearMainAnalysis() {
      bitField0_ = (bitField0_ & ~0x00000001);
      mainAnalysis_ = null;
      if (mainAnalysisBuilder_ != null) {
        mainAnalysisBuilder_.dispose();
        mainAnalysisBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The main analysis that matches the original request.
     * </pre>
     *
     * <code>.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1;
     * </code>
     */
    public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder
        getMainAnalysisBuilder() {
      bitField0_ |= 0x00000001;
      onChanged();
      return getMainAnalysisFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * The main analysis that matches the original request.
     * </pre>
     *
     * <code>.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1;
     * </code>
     */
    public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder
        getMainAnalysisOrBuilder() {
      if (mainAnalysisBuilder_ != null) {
        return mainAnalysisBuilder_.getMessageOrBuilder();
      } else {
        return mainAnalysis_ == null
            ? com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis
                .getDefaultInstance()
            : mainAnalysis_;
      }
    }
    /**
     *
     *
     * <pre>
     * The main analysis that matches the original request.
     * </pre>
     *
     * <code>.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1;
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis,
            com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder,
            com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder>
        getMainAnalysisFieldBuilder() {
      if (mainAnalysisBuilder_ == null) {
        mainAnalysisBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis,
                com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder,
                com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder>(
                getMainAnalysis(), getParentForChildren(), isClean());
        mainAnalysis_ = null;
      }
      return mainAnalysisBuilder_;
    }

    private java.util.List<com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis>
        serviceAccountImpersonationAnalysis_ = java.util.Collections.emptyList();

    private void ensureServiceAccountImpersonationAnalysisIsMutable() {
      if (!((bitField0_ & 0x00000002) != 0)) {
        serviceAccountImpersonationAnalysis_ =
            new java.util.ArrayList<
                com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis>(
                serviceAccountImpersonationAnalysis_);
        bitField0_ |= 0x00000002;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis,
            com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder,
            com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder>
        serviceAccountImpersonationAnalysisBuilder_;

    /**
     *
     *
     * <pre>
     * The service account impersonation analysis if
     * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
     * enabled.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2;
     * </code>
     */
    public java.util.List<com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis>
        getServiceAccountImpersonationAnalysisList() {
      if (serviceAccountImpersonationAnalysisBuilder_ == null) {
        return java.util.Collections.unmodifiableList(serviceAccountImpersonationAnalysis_);
      } else {
        return serviceAccountImpersonationAnalysisBuilder_.getMessageList();
      }
    }
    /**
     *
     *
     * <pre>
     * The service account impersonation analysis if
     * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
     * enabled.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2;
     * </code>
     */
    public int getServiceAccountImpersonationAnalysisCount() {
      if (serviceAccountImpersonationAnalysisBuilder_ == null) {
        return serviceAccountImpersonationAnalysis_.size();
      } else {
        return serviceAccountImpersonationAnalysisBuilder_.getCount();
      }
    }
    /**
     *
     *
     * <pre>
     * The service account impersonation analysis if
     * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
     * enabled.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2;
     * </code>
     */
    public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis
        getServiceAccountImpersonationAnalysis(int index) {
      if (serviceAccountImpersonationAnalysisBuilder_ == null) {
        return serviceAccountImpersonationAnalysis_.get(index);
      } else {
        return serviceAccountImpersonationAnalysisBuilder_.getMessage(index);
      }
    }
    /**
     *
     *
     * <pre>
     * The service account impersonation analysis if
     * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
     * enabled.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2;
     * </code>
     */
    public Builder setServiceAccountImpersonationAnalysis(
        int index, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis value) {
      if (serviceAccountImpersonationAnalysisBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureServiceAccountImpersonationAnalysisIsMutable();
        serviceAccountImpersonationAnalysis_.set(index, value);
        onChanged();
      } else {
        serviceAccountImpersonationAnalysisBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The service account impersonation analysis if
     * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
     * enabled.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2;
     * </code>
     */
    public Builder setServiceAccountImpersonationAnalysis(
        int index,
        com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder
            builderForValue) {
      if (serviceAccountImpersonationAnalysisBuilder_ == null) {
        ensureServiceAccountImpersonationAnalysisIsMutable();
        serviceAccountImpersonationAnalysis_.set(index, builderForValue.build());
        onChanged();
      } else {
        serviceAccountImpersonationAnalysisBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The service account impersonation analysis if
     * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
     * enabled.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2;
     * </code>
     */
    public Builder addServiceAccountImpersonationAnalysis(
        com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis value) {
      if (serviceAccountImpersonationAnalysisBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureServiceAccountImpersonationAnalysisIsMutable();
        serviceAccountImpersonationAnalysis_.add(value);
        onChanged();
      } else {
        serviceAccountImpersonationAnalysisBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The service account impersonation analysis if
     * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
     * enabled.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2;
     * </code>
     */
    public Builder addServiceAccountImpersonationAnalysis(
        int index, com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis value) {
      if (serviceAccountImpersonationAnalysisBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureServiceAccountImpersonationAnalysisIsMutable();
        serviceAccountImpersonationAnalysis_.add(index, value);
        onChanged();
      } else {
        serviceAccountImpersonationAnalysisBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The service account impersonation analysis if
     * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
     * enabled.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2;
     * </code>
     */
    public Builder addServiceAccountImpersonationAnalysis(
        com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder
            builderForValue) {
      if (serviceAccountImpersonationAnalysisBuilder_ == null) {
        ensureServiceAccountImpersonationAnalysisIsMutable();
        serviceAccountImpersonationAnalysis_.add(builderForValue.build());
        onChanged();
      } else {
        serviceAccountImpersonationAnalysisBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The service account impersonation analysis if
     * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
     * enabled.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2;
     * </code>
     */
    public Builder addServiceAccountImpersonationAnalysis(
        int index,
        com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder
            builderForValue) {
      if (serviceAccountImpersonationAnalysisBuilder_ == null) {
        ensureServiceAccountImpersonationAnalysisIsMutable();
        serviceAccountImpersonationAnalysis_.add(index, builderForValue.build());
        onChanged();
      } else {
        serviceAccountImpersonationAnalysisBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The service account impersonation analysis if
     * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
     * enabled.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2;
     * </code>
     */
    public Builder addAllServiceAccountImpersonationAnalysis(
        java.lang.Iterable<
                ? extends com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis>
            values) {
      if (serviceAccountImpersonationAnalysisBuilder_ == null) {
        ensureServiceAccountImpersonationAnalysisIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, serviceAccountImpersonationAnalysis_);
        onChanged();
      } else {
        serviceAccountImpersonationAnalysisBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The service account impersonation analysis if
     * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
     * enabled.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2;
     * </code>
     */
    public Builder clearServiceAccountImpersonationAnalysis() {
      if (serviceAccountImpersonationAnalysisBuilder_ == null) {
        serviceAccountImpersonationAnalysis_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
      } else {
        serviceAccountImpersonationAnalysisBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The service account impersonation analysis if
     * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
     * enabled.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2;
     * </code>
     */
    public Builder removeServiceAccountImpersonationAnalysis(int index) {
      if (serviceAccountImpersonationAnalysisBuilder_ == null) {
        ensureServiceAccountImpersonationAnalysisIsMutable();
        serviceAccountImpersonationAnalysis_.remove(index);
        onChanged();
      } else {
        serviceAccountImpersonationAnalysisBuilder_.remove(index);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The service account impersonation analysis if
     * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
     * enabled.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2;
     * </code>
     */
    public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder
        getServiceAccountImpersonationAnalysisBuilder(int index) {
      return getServiceAccountImpersonationAnalysisFieldBuilder().getBuilder(index);
    }
    /**
     *
     *
     * <pre>
     * The service account impersonation analysis if
     * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
     * enabled.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2;
     * </code>
     */
    public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder
        getServiceAccountImpersonationAnalysisOrBuilder(int index) {
      if (serviceAccountImpersonationAnalysisBuilder_ == null) {
        return serviceAccountImpersonationAnalysis_.get(index);
      } else {
        return serviceAccountImpersonationAnalysisBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     *
     *
     * <pre>
     * The service account impersonation analysis if
     * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
     * enabled.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2;
     * </code>
     */
    public java.util.List<
            ? extends com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder>
        getServiceAccountImpersonationAnalysisOrBuilderList() {
      if (serviceAccountImpersonationAnalysisBuilder_ != null) {
        return serviceAccountImpersonationAnalysisBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(serviceAccountImpersonationAnalysis_);
      }
    }
    /**
     *
     *
     * <pre>
     * The service account impersonation analysis if
     * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
     * enabled.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2;
     * </code>
     */
    public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder
        addServiceAccountImpersonationAnalysisBuilder() {
      return getServiceAccountImpersonationAnalysisFieldBuilder()
          .addBuilder(
              com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis
                  .getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * The service account impersonation analysis if
     * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
     * enabled.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2;
     * </code>
     */
    public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder
        addServiceAccountImpersonationAnalysisBuilder(int index) {
      return getServiceAccountImpersonationAnalysisFieldBuilder()
          .addBuilder(
              index,
              com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis
                  .getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * The service account impersonation analysis if
     * [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is
     * enabled.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2;
     * </code>
     */
    public java.util.List<
            com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder>
        getServiceAccountImpersonationAnalysisBuilderList() {
      return getServiceAccountImpersonationAnalysisFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis,
            com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder,
            com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder>
        getServiceAccountImpersonationAnalysisFieldBuilder() {
      if (serviceAccountImpersonationAnalysisBuilder_ == null) {
        serviceAccountImpersonationAnalysisBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis,
                com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder,
                com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder>(
                serviceAccountImpersonationAnalysis_,
                ((bitField0_ & 0x00000002) != 0),
                getParentForChildren(),
                isClean());
        serviceAccountImpersonationAnalysis_ = null;
      }
      return serviceAccountImpersonationAnalysisBuilder_;
    }

    private boolean fullyExplored_;
    /**
     *
     *
     * <pre>
     * Represents whether all entries in the
     * [main_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.main_analysis]
     * and
     * [service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis]
     * have been fully explored to answer the query in the request.
     * </pre>
     *
     * <code>bool fully_explored = 3;</code>
     *
     * @return The fullyExplored.
     */
    @java.lang.Override
    public boolean getFullyExplored() {
      return fullyExplored_;
    }
    /**
     *
     *
     * <pre>
     * Represents whether all entries in the
     * [main_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.main_analysis]
     * and
     * [service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis]
     * have been fully explored to answer the query in the request.
     * </pre>
     *
     * <code>bool fully_explored = 3;</code>
     *
     * @param value The fullyExplored to set.
     * @return This builder for chaining.
     */
    public Builder setFullyExplored(boolean value) {

      fullyExplored_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Represents whether all entries in the
     * [main_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.main_analysis]
     * and
     * [service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis]
     * have been fully explored to answer the query in the request.
     * </pre>
     *
     * <code>bool fully_explored = 3;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearFullyExplored() {
      bitField0_ = (bitField0_ & ~0x00000004);
      fullyExplored_ = false;
      onChanged();
      return this;
    }

    @java.lang.Override
    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }

    // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.AnalyzeIamPolicyResponse)
  }

  // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.AnalyzeIamPolicyResponse)
  private static final com.google.cloud.asset.v1.AnalyzeIamPolicyResponse DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new com.google.cloud.asset.v1.AnalyzeIamPolicyResponse();
  }

  public static com.google.cloud.asset.v1.AnalyzeIamPolicyResponse getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<AnalyzeIamPolicyResponse> PARSER =
      new com.google.protobuf.AbstractParser<AnalyzeIamPolicyResponse>() {
        @java.lang.Override
        public AnalyzeIamPolicyResponse parsePartialFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          Builder builder = newBuilder();
          try {
            builder.mergeFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.setUnfinishedMessage(builder.buildPartial());
          } catch (com.google.protobuf.UninitializedMessageException e) {
            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
          } catch (java.io.IOException e) {
            throw new com.google.protobuf.InvalidProtocolBufferException(e)
                .setUnfinishedMessage(builder.buildPartial());
          }
          return builder.buildPartial();
        }
      };

  public static com.google.protobuf.Parser<AnalyzeIamPolicyResponse> parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser<AnalyzeIamPolicyResponse> getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.cloud.asset.v1.AnalyzeIamPolicyResponse getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}
