/*
 * 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>
 * The response message for
 * [AssetService.AnalyzeOrgPolicyGovernedAssets][google.cloud.asset.v1.AssetService.AnalyzeOrgPolicyGovernedAssets].
 * </pre>
 *
 * Protobuf type {@code google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse}
 */
public final class AnalyzeOrgPolicyGovernedAssetsResponse
    extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse)
    AnalyzeOrgPolicyGovernedAssetsResponseOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use AnalyzeOrgPolicyGovernedAssetsResponse.newBuilder() to construct.
  private AnalyzeOrgPolicyGovernedAssetsResponse(
      com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private AnalyzeOrgPolicyGovernedAssetsResponse() {
    governedAssets_ = java.util.Collections.emptyList();
    nextPageToken_ = "";
  }

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

  @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_AnalyzeOrgPolicyGovernedAssetsResponse_descriptor;
  }

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

  public interface GovernedResourceOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * The [full resource name]
     * (https://cloud.google.com/asset-inventory/docs/resource-name-format) of
     * the Google Cloud resource.
     * </pre>
     *
     * <code>string full_resource_name = 1;</code>
     *
     * @return The fullResourceName.
     */
    java.lang.String getFullResourceName();
    /**
     *
     *
     * <pre>
     * The [full resource name]
     * (https://cloud.google.com/asset-inventory/docs/resource-name-format) of
     * the Google Cloud resource.
     * </pre>
     *
     * <code>string full_resource_name = 1;</code>
     *
     * @return The bytes for fullResourceName.
     */
    com.google.protobuf.ByteString getFullResourceNameBytes();

    /**
     *
     *
     * <pre>
     * The [full resource name]
     * (https://cloud.google.com/asset-inventory/docs/resource-name-format) of
     * the parent of
     * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name].
     * </pre>
     *
     * <code>string parent = 2;</code>
     *
     * @return The parent.
     */
    java.lang.String getParent();
    /**
     *
     *
     * <pre>
     * The [full resource name]
     * (https://cloud.google.com/asset-inventory/docs/resource-name-format) of
     * the parent of
     * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name].
     * </pre>
     *
     * <code>string parent = 2;</code>
     *
     * @return The bytes for parent.
     */
    com.google.protobuf.ByteString getParentBytes();

    /**
     *
     *
     * <pre>
     * The project that this resource belongs to, in the format of
     * projects/{PROJECT_NUMBER}. This field is available when the resource
     * belongs to a project.
     * </pre>
     *
     * <code>string project = 5;</code>
     *
     * @return The project.
     */
    java.lang.String getProject();
    /**
     *
     *
     * <pre>
     * The project that this resource belongs to, in the format of
     * projects/{PROJECT_NUMBER}. This field is available when the resource
     * belongs to a project.
     * </pre>
     *
     * <code>string project = 5;</code>
     *
     * @return The bytes for project.
     */
    com.google.protobuf.ByteString getProjectBytes();

    /**
     *
     *
     * <pre>
     * The folder(s) that this resource belongs to, in the format of
     * folders/{FOLDER_NUMBER}. This field is available when the resource
     * belongs (directly or cascadingly) to one or more folders.
     * </pre>
     *
     * <code>repeated string folders = 6;</code>
     *
     * @return A list containing the folders.
     */
    java.util.List<java.lang.String> getFoldersList();
    /**
     *
     *
     * <pre>
     * The folder(s) that this resource belongs to, in the format of
     * folders/{FOLDER_NUMBER}. This field is available when the resource
     * belongs (directly or cascadingly) to one or more folders.
     * </pre>
     *
     * <code>repeated string folders = 6;</code>
     *
     * @return The count of folders.
     */
    int getFoldersCount();
    /**
     *
     *
     * <pre>
     * The folder(s) that this resource belongs to, in the format of
     * folders/{FOLDER_NUMBER}. This field is available when the resource
     * belongs (directly or cascadingly) to one or more folders.
     * </pre>
     *
     * <code>repeated string folders = 6;</code>
     *
     * @param index The index of the element to return.
     * @return The folders at the given index.
     */
    java.lang.String getFolders(int index);
    /**
     *
     *
     * <pre>
     * The folder(s) that this resource belongs to, in the format of
     * folders/{FOLDER_NUMBER}. This field is available when the resource
     * belongs (directly or cascadingly) to one or more folders.
     * </pre>
     *
     * <code>repeated string folders = 6;</code>
     *
     * @param index The index of the value to return.
     * @return The bytes of the folders at the given index.
     */
    com.google.protobuf.ByteString getFoldersBytes(int index);

    /**
     *
     *
     * <pre>
     * The organization that this resource belongs to, in the format of
     * organizations/{ORGANIZATION_NUMBER}. This field is available when the
     * resource belongs (directly or cascadingly) to an organization.
     * </pre>
     *
     * <code>string organization = 7;</code>
     *
     * @return The organization.
     */
    java.lang.String getOrganization();
    /**
     *
     *
     * <pre>
     * The organization that this resource belongs to, in the format of
     * organizations/{ORGANIZATION_NUMBER}. This field is available when the
     * resource belongs (directly or cascadingly) to an organization.
     * </pre>
     *
     * <code>string organization = 7;</code>
     *
     * @return The bytes for organization.
     */
    com.google.protobuf.ByteString getOrganizationBytes();
  }
  /**
   *
   *
   * <pre>
   * The Google Cloud resources governed by the organization policies of the
   * [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint].
   * </pre>
   *
   * Protobuf type {@code
   * google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource}
   */
  public static final class GovernedResource extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource)
      GovernedResourceOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use GovernedResource.newBuilder() to construct.
    private GovernedResource(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private GovernedResource() {
      fullResourceName_ = "";
      parent_ = "";
      project_ = "";
      folders_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      organization_ = "";
    }

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

    @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_AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource_descriptor;
    }

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

    public static final int FULL_RESOURCE_NAME_FIELD_NUMBER = 1;

    @SuppressWarnings("serial")
    private volatile java.lang.Object fullResourceName_ = "";
    /**
     *
     *
     * <pre>
     * The [full resource name]
     * (https://cloud.google.com/asset-inventory/docs/resource-name-format) of
     * the Google Cloud resource.
     * </pre>
     *
     * <code>string full_resource_name = 1;</code>
     *
     * @return The fullResourceName.
     */
    @java.lang.Override
    public java.lang.String getFullResourceName() {
      java.lang.Object ref = fullResourceName_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        fullResourceName_ = s;
        return s;
      }
    }
    /**
     *
     *
     * <pre>
     * The [full resource name]
     * (https://cloud.google.com/asset-inventory/docs/resource-name-format) of
     * the Google Cloud resource.
     * </pre>
     *
     * <code>string full_resource_name = 1;</code>
     *
     * @return The bytes for fullResourceName.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getFullResourceNameBytes() {
      java.lang.Object ref = fullResourceName_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        fullResourceName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int PARENT_FIELD_NUMBER = 2;

    @SuppressWarnings("serial")
    private volatile java.lang.Object parent_ = "";
    /**
     *
     *
     * <pre>
     * The [full resource name]
     * (https://cloud.google.com/asset-inventory/docs/resource-name-format) of
     * the parent of
     * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name].
     * </pre>
     *
     * <code>string parent = 2;</code>
     *
     * @return The parent.
     */
    @java.lang.Override
    public java.lang.String getParent() {
      java.lang.Object ref = parent_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        parent_ = s;
        return s;
      }
    }
    /**
     *
     *
     * <pre>
     * The [full resource name]
     * (https://cloud.google.com/asset-inventory/docs/resource-name-format) of
     * the parent of
     * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name].
     * </pre>
     *
     * <code>string parent = 2;</code>
     *
     * @return The bytes for parent.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getParentBytes() {
      java.lang.Object ref = parent_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        parent_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int PROJECT_FIELD_NUMBER = 5;

    @SuppressWarnings("serial")
    private volatile java.lang.Object project_ = "";
    /**
     *
     *
     * <pre>
     * The project that this resource belongs to, in the format of
     * projects/{PROJECT_NUMBER}. This field is available when the resource
     * belongs to a project.
     * </pre>
     *
     * <code>string project = 5;</code>
     *
     * @return The project.
     */
    @java.lang.Override
    public java.lang.String getProject() {
      java.lang.Object ref = project_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        project_ = s;
        return s;
      }
    }
    /**
     *
     *
     * <pre>
     * The project that this resource belongs to, in the format of
     * projects/{PROJECT_NUMBER}. This field is available when the resource
     * belongs to a project.
     * </pre>
     *
     * <code>string project = 5;</code>
     *
     * @return The bytes for project.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getProjectBytes() {
      java.lang.Object ref = project_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        project_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int FOLDERS_FIELD_NUMBER = 6;

    @SuppressWarnings("serial")
    private com.google.protobuf.LazyStringList folders_;
    /**
     *
     *
     * <pre>
     * The folder(s) that this resource belongs to, in the format of
     * folders/{FOLDER_NUMBER}. This field is available when the resource
     * belongs (directly or cascadingly) to one or more folders.
     * </pre>
     *
     * <code>repeated string folders = 6;</code>
     *
     * @return A list containing the folders.
     */
    public com.google.protobuf.ProtocolStringList getFoldersList() {
      return folders_;
    }
    /**
     *
     *
     * <pre>
     * The folder(s) that this resource belongs to, in the format of
     * folders/{FOLDER_NUMBER}. This field is available when the resource
     * belongs (directly or cascadingly) to one or more folders.
     * </pre>
     *
     * <code>repeated string folders = 6;</code>
     *
     * @return The count of folders.
     */
    public int getFoldersCount() {
      return folders_.size();
    }
    /**
     *
     *
     * <pre>
     * The folder(s) that this resource belongs to, in the format of
     * folders/{FOLDER_NUMBER}. This field is available when the resource
     * belongs (directly or cascadingly) to one or more folders.
     * </pre>
     *
     * <code>repeated string folders = 6;</code>
     *
     * @param index The index of the element to return.
     * @return The folders at the given index.
     */
    public java.lang.String getFolders(int index) {
      return folders_.get(index);
    }
    /**
     *
     *
     * <pre>
     * The folder(s) that this resource belongs to, in the format of
     * folders/{FOLDER_NUMBER}. This field is available when the resource
     * belongs (directly or cascadingly) to one or more folders.
     * </pre>
     *
     * <code>repeated string folders = 6;</code>
     *
     * @param index The index of the value to return.
     * @return The bytes of the folders at the given index.
     */
    public com.google.protobuf.ByteString getFoldersBytes(int index) {
      return folders_.getByteString(index);
    }

    public static final int ORGANIZATION_FIELD_NUMBER = 7;

    @SuppressWarnings("serial")
    private volatile java.lang.Object organization_ = "";
    /**
     *
     *
     * <pre>
     * The organization that this resource belongs to, in the format of
     * organizations/{ORGANIZATION_NUMBER}. This field is available when the
     * resource belongs (directly or cascadingly) to an organization.
     * </pre>
     *
     * <code>string organization = 7;</code>
     *
     * @return The organization.
     */
    @java.lang.Override
    public java.lang.String getOrganization() {
      java.lang.Object ref = organization_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        organization_ = s;
        return s;
      }
    }
    /**
     *
     *
     * <pre>
     * The organization that this resource belongs to, in the format of
     * organizations/{ORGANIZATION_NUMBER}. This field is available when the
     * resource belongs (directly or cascadingly) to an organization.
     * </pre>
     *
     * <code>string organization = 7;</code>
     *
     * @return The bytes for organization.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getOrganizationBytes() {
      java.lang.Object ref = organization_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        organization_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullResourceName_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fullResourceName_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parent_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 5, project_);
      }
      for (int i = 0; i < folders_.size(); i++) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 6, folders_.getRaw(i));
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organization_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 7, organization_);
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullResourceName_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fullResourceName_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parent_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, project_);
      }
      {
        int dataSize = 0;
        for (int i = 0; i < folders_.size(); i++) {
          dataSize += computeStringSizeNoTag(folders_.getRaw(i));
        }
        size += dataSize;
        size += 1 * getFoldersList().size();
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organization_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, organization_);
      }
      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.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource)) {
        return super.equals(obj);
      }
      com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource other =
          (com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource) obj;

      if (!getFullResourceName().equals(other.getFullResourceName())) return false;
      if (!getParent().equals(other.getParent())) return false;
      if (!getProject().equals(other.getProject())) return false;
      if (!getFoldersList().equals(other.getFoldersList())) return false;
      if (!getOrganization().equals(other.getOrganization())) 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();
      hash = (37 * hash) + FULL_RESOURCE_NAME_FIELD_NUMBER;
      hash = (53 * hash) + getFullResourceName().hashCode();
      hash = (37 * hash) + PARENT_FIELD_NUMBER;
      hash = (53 * hash) + getParent().hashCode();
      hash = (37 * hash) + PROJECT_FIELD_NUMBER;
      hash = (53 * hash) + getProject().hashCode();
      if (getFoldersCount() > 0) {
        hash = (37 * hash) + FOLDERS_FIELD_NUMBER;
        hash = (53 * hash) + getFoldersList().hashCode();
      }
      hash = (37 * hash) + ORGANIZATION_FIELD_NUMBER;
      hash = (53 * hash) + getOrganization().hashCode();
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

    public static com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource
        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.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource
        parseFrom(com.google.protobuf.ByteString data)
            throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource
        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.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource
        parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource
        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.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource
        parseFrom(java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource
        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.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource
        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    }

    public static com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource
        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.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource
        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.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource
        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.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource
            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>
     * The Google Cloud resources governed by the organization policies of the
     * [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint].
     * </pre>
     *
     * Protobuf type {@code
     * google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource)
        com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResourceOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.asset.v1.AssetServiceProto
            .internal_static_google_cloud_asset_v1_AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource_descriptor;
      }

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

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

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

      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        fullResourceName_ = "";
        parent_ = "";
        project_ = "";
        folders_ = com.google.protobuf.LazyStringArrayList.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000008);
        organization_ = "";
        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_AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource_descriptor;
      }

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

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

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

      private void buildPartialRepeatedFields(
          com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource
              result) {
        if (((bitField0_ & 0x00000008) != 0)) {
          folders_ = folders_.getUnmodifiableView();
          bitField0_ = (bitField0_ & ~0x00000008);
        }
        result.folders_ = folders_;
      }

      private void buildPartial0(
          com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource
              result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.fullResourceName_ = fullResourceName_;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.parent_ = parent_;
        }
        if (((from_bitField0_ & 0x00000004) != 0)) {
          result.project_ = project_;
        }
        if (((from_bitField0_ & 0x00000010) != 0)) {
          result.organization_ = organization_;
        }
      }

      @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.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource) {
          return mergeFrom(
              (com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource)
                  other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(
          com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource other) {
        if (other
            == com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource
                .getDefaultInstance()) return this;
        if (!other.getFullResourceName().isEmpty()) {
          fullResourceName_ = other.fullResourceName_;
          bitField0_ |= 0x00000001;
          onChanged();
        }
        if (!other.getParent().isEmpty()) {
          parent_ = other.parent_;
          bitField0_ |= 0x00000002;
          onChanged();
        }
        if (!other.getProject().isEmpty()) {
          project_ = other.project_;
          bitField0_ |= 0x00000004;
          onChanged();
        }
        if (!other.folders_.isEmpty()) {
          if (folders_.isEmpty()) {
            folders_ = other.folders_;
            bitField0_ = (bitField0_ & ~0x00000008);
          } else {
            ensureFoldersIsMutable();
            folders_.addAll(other.folders_);
          }
          onChanged();
        }
        if (!other.getOrganization().isEmpty()) {
          organization_ = other.organization_;
          bitField0_ |= 0x00000010;
          onChanged();
        }
        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:
                {
                  fullResourceName_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000001;
                  break;
                } // case 10
              case 18:
                {
                  parent_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000002;
                  break;
                } // case 18
              case 42:
                {
                  project_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000004;
                  break;
                } // case 42
              case 50:
                {
                  java.lang.String s = input.readStringRequireUtf8();
                  ensureFoldersIsMutable();
                  folders_.add(s);
                  break;
                } // case 50
              case 58:
                {
                  organization_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000010;
                  break;
                } // case 58
              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 java.lang.Object fullResourceName_ = "";
      /**
       *
       *
       * <pre>
       * The [full resource name]
       * (https://cloud.google.com/asset-inventory/docs/resource-name-format) of
       * the Google Cloud resource.
       * </pre>
       *
       * <code>string full_resource_name = 1;</code>
       *
       * @return The fullResourceName.
       */
      public java.lang.String getFullResourceName() {
        java.lang.Object ref = fullResourceName_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          fullResourceName_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * The [full resource name]
       * (https://cloud.google.com/asset-inventory/docs/resource-name-format) of
       * the Google Cloud resource.
       * </pre>
       *
       * <code>string full_resource_name = 1;</code>
       *
       * @return The bytes for fullResourceName.
       */
      public com.google.protobuf.ByteString getFullResourceNameBytes() {
        java.lang.Object ref = fullResourceName_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          fullResourceName_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * The [full resource name]
       * (https://cloud.google.com/asset-inventory/docs/resource-name-format) of
       * the Google Cloud resource.
       * </pre>
       *
       * <code>string full_resource_name = 1;</code>
       *
       * @param value The fullResourceName to set.
       * @return This builder for chaining.
       */
      public Builder setFullResourceName(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        fullResourceName_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The [full resource name]
       * (https://cloud.google.com/asset-inventory/docs/resource-name-format) of
       * the Google Cloud resource.
       * </pre>
       *
       * <code>string full_resource_name = 1;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearFullResourceName() {
        fullResourceName_ = getDefaultInstance().getFullResourceName();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The [full resource name]
       * (https://cloud.google.com/asset-inventory/docs/resource-name-format) of
       * the Google Cloud resource.
       * </pre>
       *
       * <code>string full_resource_name = 1;</code>
       *
       * @param value The bytes for fullResourceName to set.
       * @return This builder for chaining.
       */
      public Builder setFullResourceNameBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        fullResourceName_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }

      private java.lang.Object parent_ = "";
      /**
       *
       *
       * <pre>
       * The [full resource name]
       * (https://cloud.google.com/asset-inventory/docs/resource-name-format) of
       * the parent of
       * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name].
       * </pre>
       *
       * <code>string parent = 2;</code>
       *
       * @return The parent.
       */
      public java.lang.String getParent() {
        java.lang.Object ref = parent_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          parent_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * The [full resource name]
       * (https://cloud.google.com/asset-inventory/docs/resource-name-format) of
       * the parent of
       * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name].
       * </pre>
       *
       * <code>string parent = 2;</code>
       *
       * @return The bytes for parent.
       */
      public com.google.protobuf.ByteString getParentBytes() {
        java.lang.Object ref = parent_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          parent_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * The [full resource name]
       * (https://cloud.google.com/asset-inventory/docs/resource-name-format) of
       * the parent of
       * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name].
       * </pre>
       *
       * <code>string parent = 2;</code>
       *
       * @param value The parent to set.
       * @return This builder for chaining.
       */
      public Builder setParent(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        parent_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The [full resource name]
       * (https://cloud.google.com/asset-inventory/docs/resource-name-format) of
       * the parent of
       * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name].
       * </pre>
       *
       * <code>string parent = 2;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearParent() {
        parent_ = getDefaultInstance().getParent();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The [full resource name]
       * (https://cloud.google.com/asset-inventory/docs/resource-name-format) of
       * the parent of
       * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name].
       * </pre>
       *
       * <code>string parent = 2;</code>
       *
       * @param value The bytes for parent to set.
       * @return This builder for chaining.
       */
      public Builder setParentBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        parent_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }

      private java.lang.Object project_ = "";
      /**
       *
       *
       * <pre>
       * The project that this resource belongs to, in the format of
       * projects/{PROJECT_NUMBER}. This field is available when the resource
       * belongs to a project.
       * </pre>
       *
       * <code>string project = 5;</code>
       *
       * @return The project.
       */
      public java.lang.String getProject() {
        java.lang.Object ref = project_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          project_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * The project that this resource belongs to, in the format of
       * projects/{PROJECT_NUMBER}. This field is available when the resource
       * belongs to a project.
       * </pre>
       *
       * <code>string project = 5;</code>
       *
       * @return The bytes for project.
       */
      public com.google.protobuf.ByteString getProjectBytes() {
        java.lang.Object ref = project_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          project_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * The project that this resource belongs to, in the format of
       * projects/{PROJECT_NUMBER}. This field is available when the resource
       * belongs to a project.
       * </pre>
       *
       * <code>string project = 5;</code>
       *
       * @param value The project to set.
       * @return This builder for chaining.
       */
      public Builder setProject(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        project_ = value;
        bitField0_ |= 0x00000004;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The project that this resource belongs to, in the format of
       * projects/{PROJECT_NUMBER}. This field is available when the resource
       * belongs to a project.
       * </pre>
       *
       * <code>string project = 5;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearProject() {
        project_ = getDefaultInstance().getProject();
        bitField0_ = (bitField0_ & ~0x00000004);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The project that this resource belongs to, in the format of
       * projects/{PROJECT_NUMBER}. This field is available when the resource
       * belongs to a project.
       * </pre>
       *
       * <code>string project = 5;</code>
       *
       * @param value The bytes for project to set.
       * @return This builder for chaining.
       */
      public Builder setProjectBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        project_ = value;
        bitField0_ |= 0x00000004;
        onChanged();
        return this;
      }

      private com.google.protobuf.LazyStringList folders_ =
          com.google.protobuf.LazyStringArrayList.EMPTY;

      private void ensureFoldersIsMutable() {
        if (!((bitField0_ & 0x00000008) != 0)) {
          folders_ = new com.google.protobuf.LazyStringArrayList(folders_);
          bitField0_ |= 0x00000008;
        }
      }
      /**
       *
       *
       * <pre>
       * The folder(s) that this resource belongs to, in the format of
       * folders/{FOLDER_NUMBER}. This field is available when the resource
       * belongs (directly or cascadingly) to one or more folders.
       * </pre>
       *
       * <code>repeated string folders = 6;</code>
       *
       * @return A list containing the folders.
       */
      public com.google.protobuf.ProtocolStringList getFoldersList() {
        return folders_.getUnmodifiableView();
      }
      /**
       *
       *
       * <pre>
       * The folder(s) that this resource belongs to, in the format of
       * folders/{FOLDER_NUMBER}. This field is available when the resource
       * belongs (directly or cascadingly) to one or more folders.
       * </pre>
       *
       * <code>repeated string folders = 6;</code>
       *
       * @return The count of folders.
       */
      public int getFoldersCount() {
        return folders_.size();
      }
      /**
       *
       *
       * <pre>
       * The folder(s) that this resource belongs to, in the format of
       * folders/{FOLDER_NUMBER}. This field is available when the resource
       * belongs (directly or cascadingly) to one or more folders.
       * </pre>
       *
       * <code>repeated string folders = 6;</code>
       *
       * @param index The index of the element to return.
       * @return The folders at the given index.
       */
      public java.lang.String getFolders(int index) {
        return folders_.get(index);
      }
      /**
       *
       *
       * <pre>
       * The folder(s) that this resource belongs to, in the format of
       * folders/{FOLDER_NUMBER}. This field is available when the resource
       * belongs (directly or cascadingly) to one or more folders.
       * </pre>
       *
       * <code>repeated string folders = 6;</code>
       *
       * @param index The index of the value to return.
       * @return The bytes of the folders at the given index.
       */
      public com.google.protobuf.ByteString getFoldersBytes(int index) {
        return folders_.getByteString(index);
      }
      /**
       *
       *
       * <pre>
       * The folder(s) that this resource belongs to, in the format of
       * folders/{FOLDER_NUMBER}. This field is available when the resource
       * belongs (directly or cascadingly) to one or more folders.
       * </pre>
       *
       * <code>repeated string folders = 6;</code>
       *
       * @param index The index to set the value at.
       * @param value The folders to set.
       * @return This builder for chaining.
       */
      public Builder setFolders(int index, java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureFoldersIsMutable();
        folders_.set(index, value);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The folder(s) that this resource belongs to, in the format of
       * folders/{FOLDER_NUMBER}. This field is available when the resource
       * belongs (directly or cascadingly) to one or more folders.
       * </pre>
       *
       * <code>repeated string folders = 6;</code>
       *
       * @param value The folders to add.
       * @return This builder for chaining.
       */
      public Builder addFolders(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureFoldersIsMutable();
        folders_.add(value);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The folder(s) that this resource belongs to, in the format of
       * folders/{FOLDER_NUMBER}. This field is available when the resource
       * belongs (directly or cascadingly) to one or more folders.
       * </pre>
       *
       * <code>repeated string folders = 6;</code>
       *
       * @param values The folders to add.
       * @return This builder for chaining.
       */
      public Builder addAllFolders(java.lang.Iterable<java.lang.String> values) {
        ensureFoldersIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, folders_);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The folder(s) that this resource belongs to, in the format of
       * folders/{FOLDER_NUMBER}. This field is available when the resource
       * belongs (directly or cascadingly) to one or more folders.
       * </pre>
       *
       * <code>repeated string folders = 6;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearFolders() {
        folders_ = com.google.protobuf.LazyStringArrayList.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000008);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The folder(s) that this resource belongs to, in the format of
       * folders/{FOLDER_NUMBER}. This field is available when the resource
       * belongs (directly or cascadingly) to one or more folders.
       * </pre>
       *
       * <code>repeated string folders = 6;</code>
       *
       * @param value The bytes of the folders to add.
       * @return This builder for chaining.
       */
      public Builder addFoldersBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        ensureFoldersIsMutable();
        folders_.add(value);
        onChanged();
        return this;
      }

      private java.lang.Object organization_ = "";
      /**
       *
       *
       * <pre>
       * The organization that this resource belongs to, in the format of
       * organizations/{ORGANIZATION_NUMBER}. This field is available when the
       * resource belongs (directly or cascadingly) to an organization.
       * </pre>
       *
       * <code>string organization = 7;</code>
       *
       * @return The organization.
       */
      public java.lang.String getOrganization() {
        java.lang.Object ref = organization_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          organization_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * The organization that this resource belongs to, in the format of
       * organizations/{ORGANIZATION_NUMBER}. This field is available when the
       * resource belongs (directly or cascadingly) to an organization.
       * </pre>
       *
       * <code>string organization = 7;</code>
       *
       * @return The bytes for organization.
       */
      public com.google.protobuf.ByteString getOrganizationBytes() {
        java.lang.Object ref = organization_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          organization_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * The organization that this resource belongs to, in the format of
       * organizations/{ORGANIZATION_NUMBER}. This field is available when the
       * resource belongs (directly or cascadingly) to an organization.
       * </pre>
       *
       * <code>string organization = 7;</code>
       *
       * @param value The organization to set.
       * @return This builder for chaining.
       */
      public Builder setOrganization(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        organization_ = value;
        bitField0_ |= 0x00000010;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The organization that this resource belongs to, in the format of
       * organizations/{ORGANIZATION_NUMBER}. This field is available when the
       * resource belongs (directly or cascadingly) to an organization.
       * </pre>
       *
       * <code>string organization = 7;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearOrganization() {
        organization_ = getDefaultInstance().getOrganization();
        bitField0_ = (bitField0_ & ~0x00000010);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The organization that this resource belongs to, in the format of
       * organizations/{ORGANIZATION_NUMBER}. This field is available when the
       * resource belongs (directly or cascadingly) to an organization.
       * </pre>
       *
       * <code>string organization = 7;</code>
       *
       * @param value The bytes for organization to set.
       * @return This builder for chaining.
       */
      public Builder setOrganizationBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        organization_ = value;
        bitField0_ |= 0x00000010;
        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.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource)
    }

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

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

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

    private static final com.google.protobuf.Parser<GovernedResource> PARSER =
        new com.google.protobuf.AbstractParser<GovernedResource>() {
          @java.lang.Override
          public GovernedResource 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<GovernedResource> parser() {
      return PARSER;
    }

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

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

  public interface GovernedIamPolicyOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * The full resource name of the resource associated with this IAM policy.
     * Example:
     * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
     * See [Cloud Asset Inventory Resource Name
     * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
     * for more information.
     * </pre>
     *
     * <code>string attached_resource = 1;</code>
     *
     * @return The attachedResource.
     */
    java.lang.String getAttachedResource();
    /**
     *
     *
     * <pre>
     * The full resource name of the resource associated with this IAM policy.
     * Example:
     * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
     * See [Cloud Asset Inventory Resource Name
     * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
     * for more information.
     * </pre>
     *
     * <code>string attached_resource = 1;</code>
     *
     * @return The bytes for attachedResource.
     */
    com.google.protobuf.ByteString getAttachedResourceBytes();

    /**
     *
     *
     * <pre>
     * The IAM policy directly set on the given resource.
     * </pre>
     *
     * <code>.google.iam.v1.Policy policy = 2;</code>
     *
     * @return Whether the policy field is set.
     */
    boolean hasPolicy();
    /**
     *
     *
     * <pre>
     * The IAM policy directly set on the given resource.
     * </pre>
     *
     * <code>.google.iam.v1.Policy policy = 2;</code>
     *
     * @return The policy.
     */
    com.google.iam.v1.Policy getPolicy();
    /**
     *
     *
     * <pre>
     * The IAM policy directly set on the given resource.
     * </pre>
     *
     * <code>.google.iam.v1.Policy policy = 2;</code>
     */
    com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder();

    /**
     *
     *
     * <pre>
     * The project that this IAM policy belongs to, in the format of
     * projects/{PROJECT_NUMBER}. This field is available when the IAM policy
     * belongs to a project.
     * </pre>
     *
     * <code>string project = 5;</code>
     *
     * @return The project.
     */
    java.lang.String getProject();
    /**
     *
     *
     * <pre>
     * The project that this IAM policy belongs to, in the format of
     * projects/{PROJECT_NUMBER}. This field is available when the IAM policy
     * belongs to a project.
     * </pre>
     *
     * <code>string project = 5;</code>
     *
     * @return The bytes for project.
     */
    com.google.protobuf.ByteString getProjectBytes();

    /**
     *
     *
     * <pre>
     * The folder(s) that this IAM policy belongs to, in the format of
     * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
     * belongs (directly or cascadingly) to one or more folders.
     * </pre>
     *
     * <code>repeated string folders = 6;</code>
     *
     * @return A list containing the folders.
     */
    java.util.List<java.lang.String> getFoldersList();
    /**
     *
     *
     * <pre>
     * The folder(s) that this IAM policy belongs to, in the format of
     * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
     * belongs (directly or cascadingly) to one or more folders.
     * </pre>
     *
     * <code>repeated string folders = 6;</code>
     *
     * @return The count of folders.
     */
    int getFoldersCount();
    /**
     *
     *
     * <pre>
     * The folder(s) that this IAM policy belongs to, in the format of
     * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
     * belongs (directly or cascadingly) to one or more folders.
     * </pre>
     *
     * <code>repeated string folders = 6;</code>
     *
     * @param index The index of the element to return.
     * @return The folders at the given index.
     */
    java.lang.String getFolders(int index);
    /**
     *
     *
     * <pre>
     * The folder(s) that this IAM policy belongs to, in the format of
     * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
     * belongs (directly or cascadingly) to one or more folders.
     * </pre>
     *
     * <code>repeated string folders = 6;</code>
     *
     * @param index The index of the value to return.
     * @return The bytes of the folders at the given index.
     */
    com.google.protobuf.ByteString getFoldersBytes(int index);

    /**
     *
     *
     * <pre>
     * The organization that this IAM policy belongs to, in the format of
     * organizations/{ORGANIZATION_NUMBER}. This field is available when the
     * IAM policy belongs (directly or cascadingly) to an organization.
     * </pre>
     *
     * <code>string organization = 7;</code>
     *
     * @return The organization.
     */
    java.lang.String getOrganization();
    /**
     *
     *
     * <pre>
     * The organization that this IAM policy belongs to, in the format of
     * organizations/{ORGANIZATION_NUMBER}. This field is available when the
     * IAM policy belongs (directly or cascadingly) to an organization.
     * </pre>
     *
     * <code>string organization = 7;</code>
     *
     * @return The bytes for organization.
     */
    com.google.protobuf.ByteString getOrganizationBytes();
  }
  /**
   *
   *
   * <pre>
   * The IAM policies governed by the organization policies of the
   * [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint].
   * </pre>
   *
   * Protobuf type {@code
   * google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy}
   */
  public static final class GovernedIamPolicy extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy)
      GovernedIamPolicyOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use GovernedIamPolicy.newBuilder() to construct.
    private GovernedIamPolicy(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private GovernedIamPolicy() {
      attachedResource_ = "";
      project_ = "";
      folders_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      organization_ = "";
    }

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

    @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_AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy_descriptor;
    }

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

    public static final int ATTACHED_RESOURCE_FIELD_NUMBER = 1;

    @SuppressWarnings("serial")
    private volatile java.lang.Object attachedResource_ = "";
    /**
     *
     *
     * <pre>
     * The full resource name of the resource associated with this IAM policy.
     * Example:
     * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
     * See [Cloud Asset Inventory Resource Name
     * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
     * for more information.
     * </pre>
     *
     * <code>string attached_resource = 1;</code>
     *
     * @return The attachedResource.
     */
    @java.lang.Override
    public java.lang.String getAttachedResource() {
      java.lang.Object ref = attachedResource_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        attachedResource_ = s;
        return s;
      }
    }
    /**
     *
     *
     * <pre>
     * The full resource name of the resource associated with this IAM policy.
     * Example:
     * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
     * See [Cloud Asset Inventory Resource Name
     * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
     * for more information.
     * </pre>
     *
     * <code>string attached_resource = 1;</code>
     *
     * @return The bytes for attachedResource.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getAttachedResourceBytes() {
      java.lang.Object ref = attachedResource_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        attachedResource_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int POLICY_FIELD_NUMBER = 2;
    private com.google.iam.v1.Policy policy_;
    /**
     *
     *
     * <pre>
     * The IAM policy directly set on the given resource.
     * </pre>
     *
     * <code>.google.iam.v1.Policy policy = 2;</code>
     *
     * @return Whether the policy field is set.
     */
    @java.lang.Override
    public boolean hasPolicy() {
      return policy_ != null;
    }
    /**
     *
     *
     * <pre>
     * The IAM policy directly set on the given resource.
     * </pre>
     *
     * <code>.google.iam.v1.Policy policy = 2;</code>
     *
     * @return The policy.
     */
    @java.lang.Override
    public com.google.iam.v1.Policy getPolicy() {
      return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_;
    }
    /**
     *
     *
     * <pre>
     * The IAM policy directly set on the given resource.
     * </pre>
     *
     * <code>.google.iam.v1.Policy policy = 2;</code>
     */
    @java.lang.Override
    public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
      return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_;
    }

    public static final int PROJECT_FIELD_NUMBER = 5;

    @SuppressWarnings("serial")
    private volatile java.lang.Object project_ = "";
    /**
     *
     *
     * <pre>
     * The project that this IAM policy belongs to, in the format of
     * projects/{PROJECT_NUMBER}. This field is available when the IAM policy
     * belongs to a project.
     * </pre>
     *
     * <code>string project = 5;</code>
     *
     * @return The project.
     */
    @java.lang.Override
    public java.lang.String getProject() {
      java.lang.Object ref = project_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        project_ = s;
        return s;
      }
    }
    /**
     *
     *
     * <pre>
     * The project that this IAM policy belongs to, in the format of
     * projects/{PROJECT_NUMBER}. This field is available when the IAM policy
     * belongs to a project.
     * </pre>
     *
     * <code>string project = 5;</code>
     *
     * @return The bytes for project.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getProjectBytes() {
      java.lang.Object ref = project_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        project_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int FOLDERS_FIELD_NUMBER = 6;

    @SuppressWarnings("serial")
    private com.google.protobuf.LazyStringList folders_;
    /**
     *
     *
     * <pre>
     * The folder(s) that this IAM policy belongs to, in the format of
     * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
     * belongs (directly or cascadingly) to one or more folders.
     * </pre>
     *
     * <code>repeated string folders = 6;</code>
     *
     * @return A list containing the folders.
     */
    public com.google.protobuf.ProtocolStringList getFoldersList() {
      return folders_;
    }
    /**
     *
     *
     * <pre>
     * The folder(s) that this IAM policy belongs to, in the format of
     * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
     * belongs (directly or cascadingly) to one or more folders.
     * </pre>
     *
     * <code>repeated string folders = 6;</code>
     *
     * @return The count of folders.
     */
    public int getFoldersCount() {
      return folders_.size();
    }
    /**
     *
     *
     * <pre>
     * The folder(s) that this IAM policy belongs to, in the format of
     * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
     * belongs (directly or cascadingly) to one or more folders.
     * </pre>
     *
     * <code>repeated string folders = 6;</code>
     *
     * @param index The index of the element to return.
     * @return The folders at the given index.
     */
    public java.lang.String getFolders(int index) {
      return folders_.get(index);
    }
    /**
     *
     *
     * <pre>
     * The folder(s) that this IAM policy belongs to, in the format of
     * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
     * belongs (directly or cascadingly) to one or more folders.
     * </pre>
     *
     * <code>repeated string folders = 6;</code>
     *
     * @param index The index of the value to return.
     * @return The bytes of the folders at the given index.
     */
    public com.google.protobuf.ByteString getFoldersBytes(int index) {
      return folders_.getByteString(index);
    }

    public static final int ORGANIZATION_FIELD_NUMBER = 7;

    @SuppressWarnings("serial")
    private volatile java.lang.Object organization_ = "";
    /**
     *
     *
     * <pre>
     * The organization that this IAM policy belongs to, in the format of
     * organizations/{ORGANIZATION_NUMBER}. This field is available when the
     * IAM policy belongs (directly or cascadingly) to an organization.
     * </pre>
     *
     * <code>string organization = 7;</code>
     *
     * @return The organization.
     */
    @java.lang.Override
    public java.lang.String getOrganization() {
      java.lang.Object ref = organization_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        organization_ = s;
        return s;
      }
    }
    /**
     *
     *
     * <pre>
     * The organization that this IAM policy belongs to, in the format of
     * organizations/{ORGANIZATION_NUMBER}. This field is available when the
     * IAM policy belongs (directly or cascadingly) to an organization.
     * </pre>
     *
     * <code>string organization = 7;</code>
     *
     * @return The bytes for organization.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getOrganizationBytes() {
      java.lang.Object ref = organization_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        organization_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attachedResource_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, attachedResource_);
      }
      if (policy_ != null) {
        output.writeMessage(2, getPolicy());
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 5, project_);
      }
      for (int i = 0; i < folders_.size(); i++) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 6, folders_.getRaw(i));
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organization_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 7, organization_);
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attachedResource_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, attachedResource_);
      }
      if (policy_ != null) {
        size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPolicy());
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, project_);
      }
      {
        int dataSize = 0;
        for (int i = 0; i < folders_.size(); i++) {
          dataSize += computeStringSizeNoTag(folders_.getRaw(i));
        }
        size += dataSize;
        size += 1 * getFoldersList().size();
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organization_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, organization_);
      }
      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.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy)) {
        return super.equals(obj);
      }
      com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy other =
          (com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy) obj;

      if (!getAttachedResource().equals(other.getAttachedResource())) return false;
      if (hasPolicy() != other.hasPolicy()) return false;
      if (hasPolicy()) {
        if (!getPolicy().equals(other.getPolicy())) return false;
      }
      if (!getProject().equals(other.getProject())) return false;
      if (!getFoldersList().equals(other.getFoldersList())) return false;
      if (!getOrganization().equals(other.getOrganization())) 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();
      hash = (37 * hash) + ATTACHED_RESOURCE_FIELD_NUMBER;
      hash = (53 * hash) + getAttachedResource().hashCode();
      if (hasPolicy()) {
        hash = (37 * hash) + POLICY_FIELD_NUMBER;
        hash = (53 * hash) + getPolicy().hashCode();
      }
      hash = (37 * hash) + PROJECT_FIELD_NUMBER;
      hash = (53 * hash) + getProject().hashCode();
      if (getFoldersCount() > 0) {
        hash = (37 * hash) + FOLDERS_FIELD_NUMBER;
        hash = (53 * hash) + getFoldersList().hashCode();
      }
      hash = (37 * hash) + ORGANIZATION_FIELD_NUMBER;
      hash = (53 * hash) + getOrganization().hashCode();
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

    public static com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy
        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.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy
        parseFrom(com.google.protobuf.ByteString data)
            throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy
        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.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy
        parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy
        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.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy
        parseFrom(java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy
        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.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy
        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    }

    public static com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy
        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.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy
        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.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy
        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.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy
            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>
     * The IAM policies governed by the organization policies of the
     * [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint].
     * </pre>
     *
     * Protobuf type {@code
     * google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy)
        com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse
            .GovernedIamPolicyOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.asset.v1.AssetServiceProto
            .internal_static_google_cloud_asset_v1_AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy_descriptor;
      }

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

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

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

      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        attachedResource_ = "";
        policy_ = null;
        if (policyBuilder_ != null) {
          policyBuilder_.dispose();
          policyBuilder_ = null;
        }
        project_ = "";
        folders_ = com.google.protobuf.LazyStringArrayList.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000008);
        organization_ = "";
        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_AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy_descriptor;
      }

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

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

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

      private void buildPartialRepeatedFields(
          com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy
              result) {
        if (((bitField0_ & 0x00000008) != 0)) {
          folders_ = folders_.getUnmodifiableView();
          bitField0_ = (bitField0_ & ~0x00000008);
        }
        result.folders_ = folders_;
      }

      private void buildPartial0(
          com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy
              result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.attachedResource_ = attachedResource_;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.policy_ = policyBuilder_ == null ? policy_ : policyBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000004) != 0)) {
          result.project_ = project_;
        }
        if (((from_bitField0_ & 0x00000010) != 0)) {
          result.organization_ = organization_;
        }
      }

      @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.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy) {
          return mergeFrom(
              (com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy)
                  other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(
          com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy
              other) {
        if (other
            == com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy
                .getDefaultInstance()) return this;
        if (!other.getAttachedResource().isEmpty()) {
          attachedResource_ = other.attachedResource_;
          bitField0_ |= 0x00000001;
          onChanged();
        }
        if (other.hasPolicy()) {
          mergePolicy(other.getPolicy());
        }
        if (!other.getProject().isEmpty()) {
          project_ = other.project_;
          bitField0_ |= 0x00000004;
          onChanged();
        }
        if (!other.folders_.isEmpty()) {
          if (folders_.isEmpty()) {
            folders_ = other.folders_;
            bitField0_ = (bitField0_ & ~0x00000008);
          } else {
            ensureFoldersIsMutable();
            folders_.addAll(other.folders_);
          }
          onChanged();
        }
        if (!other.getOrganization().isEmpty()) {
          organization_ = other.organization_;
          bitField0_ |= 0x00000010;
          onChanged();
        }
        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:
                {
                  attachedResource_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000001;
                  break;
                } // case 10
              case 18:
                {
                  input.readMessage(getPolicyFieldBuilder().getBuilder(), extensionRegistry);
                  bitField0_ |= 0x00000002;
                  break;
                } // case 18
              case 42:
                {
                  project_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000004;
                  break;
                } // case 42
              case 50:
                {
                  java.lang.String s = input.readStringRequireUtf8();
                  ensureFoldersIsMutable();
                  folders_.add(s);
                  break;
                } // case 50
              case 58:
                {
                  organization_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000010;
                  break;
                } // case 58
              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 java.lang.Object attachedResource_ = "";
      /**
       *
       *
       * <pre>
       * The full resource name of the resource associated with this IAM policy.
       * Example:
       * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
       * See [Cloud Asset Inventory Resource Name
       * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
       * for more information.
       * </pre>
       *
       * <code>string attached_resource = 1;</code>
       *
       * @return The attachedResource.
       */
      public java.lang.String getAttachedResource() {
        java.lang.Object ref = attachedResource_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          attachedResource_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * The full resource name of the resource associated with this IAM policy.
       * Example:
       * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
       * See [Cloud Asset Inventory Resource Name
       * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
       * for more information.
       * </pre>
       *
       * <code>string attached_resource = 1;</code>
       *
       * @return The bytes for attachedResource.
       */
      public com.google.protobuf.ByteString getAttachedResourceBytes() {
        java.lang.Object ref = attachedResource_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          attachedResource_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * The full resource name of the resource associated with this IAM policy.
       * Example:
       * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
       * See [Cloud Asset Inventory Resource Name
       * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
       * for more information.
       * </pre>
       *
       * <code>string attached_resource = 1;</code>
       *
       * @param value The attachedResource to set.
       * @return This builder for chaining.
       */
      public Builder setAttachedResource(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        attachedResource_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The full resource name of the resource associated with this IAM policy.
       * Example:
       * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
       * See [Cloud Asset Inventory Resource Name
       * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
       * for more information.
       * </pre>
       *
       * <code>string attached_resource = 1;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearAttachedResource() {
        attachedResource_ = getDefaultInstance().getAttachedResource();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The full resource name of the resource associated with this IAM policy.
       * Example:
       * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
       * See [Cloud Asset Inventory Resource Name
       * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
       * for more information.
       * </pre>
       *
       * <code>string attached_resource = 1;</code>
       *
       * @param value The bytes for attachedResource to set.
       * @return This builder for chaining.
       */
      public Builder setAttachedResourceBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        attachedResource_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }

      private com.google.iam.v1.Policy policy_;
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.iam.v1.Policy,
              com.google.iam.v1.Policy.Builder,
              com.google.iam.v1.PolicyOrBuilder>
          policyBuilder_;
      /**
       *
       *
       * <pre>
       * The IAM policy directly set on the given resource.
       * </pre>
       *
       * <code>.google.iam.v1.Policy policy = 2;</code>
       *
       * @return Whether the policy field is set.
       */
      public boolean hasPolicy() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       *
       *
       * <pre>
       * The IAM policy directly set on the given resource.
       * </pre>
       *
       * <code>.google.iam.v1.Policy policy = 2;</code>
       *
       * @return The policy.
       */
      public com.google.iam.v1.Policy getPolicy() {
        if (policyBuilder_ == null) {
          return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_;
        } else {
          return policyBuilder_.getMessage();
        }
      }
      /**
       *
       *
       * <pre>
       * The IAM policy directly set on the given resource.
       * </pre>
       *
       * <code>.google.iam.v1.Policy policy = 2;</code>
       */
      public Builder setPolicy(com.google.iam.v1.Policy value) {
        if (policyBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          policy_ = value;
        } else {
          policyBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The IAM policy directly set on the given resource.
       * </pre>
       *
       * <code>.google.iam.v1.Policy policy = 2;</code>
       */
      public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
        if (policyBuilder_ == null) {
          policy_ = builderForValue.build();
        } else {
          policyBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The IAM policy directly set on the given resource.
       * </pre>
       *
       * <code>.google.iam.v1.Policy policy = 2;</code>
       */
      public Builder mergePolicy(com.google.iam.v1.Policy value) {
        if (policyBuilder_ == null) {
          if (((bitField0_ & 0x00000002) != 0)
              && policy_ != null
              && policy_ != com.google.iam.v1.Policy.getDefaultInstance()) {
            getPolicyBuilder().mergeFrom(value);
          } else {
            policy_ = value;
          }
        } else {
          policyBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The IAM policy directly set on the given resource.
       * </pre>
       *
       * <code>.google.iam.v1.Policy policy = 2;</code>
       */
      public Builder clearPolicy() {
        bitField0_ = (bitField0_ & ~0x00000002);
        policy_ = null;
        if (policyBuilder_ != null) {
          policyBuilder_.dispose();
          policyBuilder_ = null;
        }
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The IAM policy directly set on the given resource.
       * </pre>
       *
       * <code>.google.iam.v1.Policy policy = 2;</code>
       */
      public com.google.iam.v1.Policy.Builder getPolicyBuilder() {
        bitField0_ |= 0x00000002;
        onChanged();
        return getPolicyFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * The IAM policy directly set on the given resource.
       * </pre>
       *
       * <code>.google.iam.v1.Policy policy = 2;</code>
       */
      public com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder() {
        if (policyBuilder_ != null) {
          return policyBuilder_.getMessageOrBuilder();
        } else {
          return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_;
        }
      }
      /**
       *
       *
       * <pre>
       * The IAM policy directly set on the given resource.
       * </pre>
       *
       * <code>.google.iam.v1.Policy policy = 2;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.iam.v1.Policy,
              com.google.iam.v1.Policy.Builder,
              com.google.iam.v1.PolicyOrBuilder>
          getPolicyFieldBuilder() {
        if (policyBuilder_ == null) {
          policyBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.iam.v1.Policy,
                  com.google.iam.v1.Policy.Builder,
                  com.google.iam.v1.PolicyOrBuilder>(
                  getPolicy(), getParentForChildren(), isClean());
          policy_ = null;
        }
        return policyBuilder_;
      }

      private java.lang.Object project_ = "";
      /**
       *
       *
       * <pre>
       * The project that this IAM policy belongs to, in the format of
       * projects/{PROJECT_NUMBER}. This field is available when the IAM policy
       * belongs to a project.
       * </pre>
       *
       * <code>string project = 5;</code>
       *
       * @return The project.
       */
      public java.lang.String getProject() {
        java.lang.Object ref = project_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          project_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * The project that this IAM policy belongs to, in the format of
       * projects/{PROJECT_NUMBER}. This field is available when the IAM policy
       * belongs to a project.
       * </pre>
       *
       * <code>string project = 5;</code>
       *
       * @return The bytes for project.
       */
      public com.google.protobuf.ByteString getProjectBytes() {
        java.lang.Object ref = project_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          project_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * The project that this IAM policy belongs to, in the format of
       * projects/{PROJECT_NUMBER}. This field is available when the IAM policy
       * belongs to a project.
       * </pre>
       *
       * <code>string project = 5;</code>
       *
       * @param value The project to set.
       * @return This builder for chaining.
       */
      public Builder setProject(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        project_ = value;
        bitField0_ |= 0x00000004;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The project that this IAM policy belongs to, in the format of
       * projects/{PROJECT_NUMBER}. This field is available when the IAM policy
       * belongs to a project.
       * </pre>
       *
       * <code>string project = 5;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearProject() {
        project_ = getDefaultInstance().getProject();
        bitField0_ = (bitField0_ & ~0x00000004);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The project that this IAM policy belongs to, in the format of
       * projects/{PROJECT_NUMBER}. This field is available when the IAM policy
       * belongs to a project.
       * </pre>
       *
       * <code>string project = 5;</code>
       *
       * @param value The bytes for project to set.
       * @return This builder for chaining.
       */
      public Builder setProjectBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        project_ = value;
        bitField0_ |= 0x00000004;
        onChanged();
        return this;
      }

      private com.google.protobuf.LazyStringList folders_ =
          com.google.protobuf.LazyStringArrayList.EMPTY;

      private void ensureFoldersIsMutable() {
        if (!((bitField0_ & 0x00000008) != 0)) {
          folders_ = new com.google.protobuf.LazyStringArrayList(folders_);
          bitField0_ |= 0x00000008;
        }
      }
      /**
       *
       *
       * <pre>
       * The folder(s) that this IAM policy belongs to, in the format of
       * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
       * belongs (directly or cascadingly) to one or more folders.
       * </pre>
       *
       * <code>repeated string folders = 6;</code>
       *
       * @return A list containing the folders.
       */
      public com.google.protobuf.ProtocolStringList getFoldersList() {
        return folders_.getUnmodifiableView();
      }
      /**
       *
       *
       * <pre>
       * The folder(s) that this IAM policy belongs to, in the format of
       * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
       * belongs (directly or cascadingly) to one or more folders.
       * </pre>
       *
       * <code>repeated string folders = 6;</code>
       *
       * @return The count of folders.
       */
      public int getFoldersCount() {
        return folders_.size();
      }
      /**
       *
       *
       * <pre>
       * The folder(s) that this IAM policy belongs to, in the format of
       * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
       * belongs (directly or cascadingly) to one or more folders.
       * </pre>
       *
       * <code>repeated string folders = 6;</code>
       *
       * @param index The index of the element to return.
       * @return The folders at the given index.
       */
      public java.lang.String getFolders(int index) {
        return folders_.get(index);
      }
      /**
       *
       *
       * <pre>
       * The folder(s) that this IAM policy belongs to, in the format of
       * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
       * belongs (directly or cascadingly) to one or more folders.
       * </pre>
       *
       * <code>repeated string folders = 6;</code>
       *
       * @param index The index of the value to return.
       * @return The bytes of the folders at the given index.
       */
      public com.google.protobuf.ByteString getFoldersBytes(int index) {
        return folders_.getByteString(index);
      }
      /**
       *
       *
       * <pre>
       * The folder(s) that this IAM policy belongs to, in the format of
       * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
       * belongs (directly or cascadingly) to one or more folders.
       * </pre>
       *
       * <code>repeated string folders = 6;</code>
       *
       * @param index The index to set the value at.
       * @param value The folders to set.
       * @return This builder for chaining.
       */
      public Builder setFolders(int index, java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureFoldersIsMutable();
        folders_.set(index, value);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The folder(s) that this IAM policy belongs to, in the format of
       * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
       * belongs (directly or cascadingly) to one or more folders.
       * </pre>
       *
       * <code>repeated string folders = 6;</code>
       *
       * @param value The folders to add.
       * @return This builder for chaining.
       */
      public Builder addFolders(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureFoldersIsMutable();
        folders_.add(value);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The folder(s) that this IAM policy belongs to, in the format of
       * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
       * belongs (directly or cascadingly) to one or more folders.
       * </pre>
       *
       * <code>repeated string folders = 6;</code>
       *
       * @param values The folders to add.
       * @return This builder for chaining.
       */
      public Builder addAllFolders(java.lang.Iterable<java.lang.String> values) {
        ensureFoldersIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, folders_);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The folder(s) that this IAM policy belongs to, in the format of
       * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
       * belongs (directly or cascadingly) to one or more folders.
       * </pre>
       *
       * <code>repeated string folders = 6;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearFolders() {
        folders_ = com.google.protobuf.LazyStringArrayList.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000008);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The folder(s) that this IAM policy belongs to, in the format of
       * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
       * belongs (directly or cascadingly) to one or more folders.
       * </pre>
       *
       * <code>repeated string folders = 6;</code>
       *
       * @param value The bytes of the folders to add.
       * @return This builder for chaining.
       */
      public Builder addFoldersBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        ensureFoldersIsMutable();
        folders_.add(value);
        onChanged();
        return this;
      }

      private java.lang.Object organization_ = "";
      /**
       *
       *
       * <pre>
       * The organization that this IAM policy belongs to, in the format of
       * organizations/{ORGANIZATION_NUMBER}. This field is available when the
       * IAM policy belongs (directly or cascadingly) to an organization.
       * </pre>
       *
       * <code>string organization = 7;</code>
       *
       * @return The organization.
       */
      public java.lang.String getOrganization() {
        java.lang.Object ref = organization_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          organization_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * The organization that this IAM policy belongs to, in the format of
       * organizations/{ORGANIZATION_NUMBER}. This field is available when the
       * IAM policy belongs (directly or cascadingly) to an organization.
       * </pre>
       *
       * <code>string organization = 7;</code>
       *
       * @return The bytes for organization.
       */
      public com.google.protobuf.ByteString getOrganizationBytes() {
        java.lang.Object ref = organization_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          organization_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * The organization that this IAM policy belongs to, in the format of
       * organizations/{ORGANIZATION_NUMBER}. This field is available when the
       * IAM policy belongs (directly or cascadingly) to an organization.
       * </pre>
       *
       * <code>string organization = 7;</code>
       *
       * @param value The organization to set.
       * @return This builder for chaining.
       */
      public Builder setOrganization(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        organization_ = value;
        bitField0_ |= 0x00000010;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The organization that this IAM policy belongs to, in the format of
       * organizations/{ORGANIZATION_NUMBER}. This field is available when the
       * IAM policy belongs (directly or cascadingly) to an organization.
       * </pre>
       *
       * <code>string organization = 7;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearOrganization() {
        organization_ = getDefaultInstance().getOrganization();
        bitField0_ = (bitField0_ & ~0x00000010);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The organization that this IAM policy belongs to, in the format of
       * organizations/{ORGANIZATION_NUMBER}. This field is available when the
       * IAM policy belongs (directly or cascadingly) to an organization.
       * </pre>
       *
       * <code>string organization = 7;</code>
       *
       * @param value The bytes for organization to set.
       * @return This builder for chaining.
       */
      public Builder setOrganizationBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        organization_ = value;
        bitField0_ |= 0x00000010;
        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.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy)
    }

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

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

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

    private static final com.google.protobuf.Parser<GovernedIamPolicy> PARSER =
        new com.google.protobuf.AbstractParser<GovernedIamPolicy>() {
          @java.lang.Override
          public GovernedIamPolicy 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<GovernedIamPolicy> parser() {
      return PARSER;
    }

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

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

  public interface GovernedAssetOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * A Google Cloud resource governed by the organization
     * policies of the
     * [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint].
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource governed_resource = 1;
     * </code>
     *
     * @return Whether the governedResource field is set.
     */
    boolean hasGovernedResource();
    /**
     *
     *
     * <pre>
     * A Google Cloud resource governed by the organization
     * policies of the
     * [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint].
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource governed_resource = 1;
     * </code>
     *
     * @return The governedResource.
     */
    com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource
        getGovernedResource();
    /**
     *
     *
     * <pre>
     * A Google Cloud resource governed by the organization
     * policies of the
     * [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint].
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource governed_resource = 1;
     * </code>
     */
    com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResourceOrBuilder
        getGovernedResourceOrBuilder();

    /**
     *
     *
     * <pre>
     * An IAM policy governed by the organization
     * policies of the
     * [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint].
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy governed_iam_policy = 2;
     * </code>
     *
     * @return Whether the governedIamPolicy field is set.
     */
    boolean hasGovernedIamPolicy();
    /**
     *
     *
     * <pre>
     * An IAM policy governed by the organization
     * policies of the
     * [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint].
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy governed_iam_policy = 2;
     * </code>
     *
     * @return The governedIamPolicy.
     */
    com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy
        getGovernedIamPolicy();
    /**
     *
     *
     * <pre>
     * An IAM policy governed by the organization
     * policies of the
     * [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint].
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy governed_iam_policy = 2;
     * </code>
     */
    com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicyOrBuilder
        getGovernedIamPolicyOrBuilder();

    /**
     *
     *
     * <pre>
     * The consolidated policy for the analyzed asset. The consolidated
     * policy is computed by merging and evaluating
     * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle].
     * The evaluation will respect the organization policy [hierarchy
     * rules](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-hierarchy).
     * </pre>
     *
     * <code>.google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 3;</code>
     *
     * @return Whether the consolidatedPolicy field is set.
     */
    boolean hasConsolidatedPolicy();
    /**
     *
     *
     * <pre>
     * The consolidated policy for the analyzed asset. The consolidated
     * policy is computed by merging and evaluating
     * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle].
     * The evaluation will respect the organization policy [hierarchy
     * rules](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-hierarchy).
     * </pre>
     *
     * <code>.google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 3;</code>
     *
     * @return The consolidatedPolicy.
     */
    com.google.cloud.asset.v1.AnalyzerOrgPolicy getConsolidatedPolicy();
    /**
     *
     *
     * <pre>
     * The consolidated policy for the analyzed asset. The consolidated
     * policy is computed by merging and evaluating
     * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle].
     * The evaluation will respect the organization policy [hierarchy
     * rules](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-hierarchy).
     * </pre>
     *
     * <code>.google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 3;</code>
     */
    com.google.cloud.asset.v1.AnalyzerOrgPolicyOrBuilder getConsolidatedPolicyOrBuilder();

    /**
     *
     *
     * <pre>
     * The ordered list of all organization policies from the
     * [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]
     * to the scope specified in the request.
     * If the constraint is defined with default policy, it will also appear in
     * the list.
     * </pre>
     *
     * <code>repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4;</code>
     */
    java.util.List<com.google.cloud.asset.v1.AnalyzerOrgPolicy> getPolicyBundleList();
    /**
     *
     *
     * <pre>
     * The ordered list of all organization policies from the
     * [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]
     * to the scope specified in the request.
     * If the constraint is defined with default policy, it will also appear in
     * the list.
     * </pre>
     *
     * <code>repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4;</code>
     */
    com.google.cloud.asset.v1.AnalyzerOrgPolicy getPolicyBundle(int index);
    /**
     *
     *
     * <pre>
     * The ordered list of all organization policies from the
     * [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]
     * to the scope specified in the request.
     * If the constraint is defined with default policy, it will also appear in
     * the list.
     * </pre>
     *
     * <code>repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4;</code>
     */
    int getPolicyBundleCount();
    /**
     *
     *
     * <pre>
     * The ordered list of all organization policies from the
     * [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]
     * to the scope specified in the request.
     * If the constraint is defined with default policy, it will also appear in
     * the list.
     * </pre>
     *
     * <code>repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4;</code>
     */
    java.util.List<? extends com.google.cloud.asset.v1.AnalyzerOrgPolicyOrBuilder>
        getPolicyBundleOrBuilderList();
    /**
     *
     *
     * <pre>
     * The ordered list of all organization policies from the
     * [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]
     * to the scope specified in the request.
     * If the constraint is defined with default policy, it will also appear in
     * the list.
     * </pre>
     *
     * <code>repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4;</code>
     */
    com.google.cloud.asset.v1.AnalyzerOrgPolicyOrBuilder getPolicyBundleOrBuilder(int index);

    public com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset
            .GovernedAssetCase
        getGovernedAssetCase();
  }
  /**
   *
   *
   * <pre>
   * Represents a Google Cloud asset(resource or IAM policy) governed by the
   * organization policies of the
   * [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint].
   * </pre>
   *
   * Protobuf type {@code
   * google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset}
   */
  public static final class GovernedAsset extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset)
      GovernedAssetOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use GovernedAsset.newBuilder() to construct.
    private GovernedAsset(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private GovernedAsset() {
      policyBundle_ = java.util.Collections.emptyList();
    }

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

    @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_AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset_descriptor;
    }

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

    private int governedAssetCase_ = 0;
    private java.lang.Object governedAsset_;

    public enum GovernedAssetCase
        implements
            com.google.protobuf.Internal.EnumLite,
            com.google.protobuf.AbstractMessage.InternalOneOfEnum {
      GOVERNED_RESOURCE(1),
      GOVERNED_IAM_POLICY(2),
      GOVERNEDASSET_NOT_SET(0);
      private final int value;

      private GovernedAssetCase(int value) {
        this.value = value;
      }
      /**
       * @param value The number of the enum to look for.
       * @return The enum associated with the given number.
       * @deprecated Use {@link #forNumber(int)} instead.
       */
      @java.lang.Deprecated
      public static GovernedAssetCase valueOf(int value) {
        return forNumber(value);
      }

      public static GovernedAssetCase forNumber(int value) {
        switch (value) {
          case 1:
            return GOVERNED_RESOURCE;
          case 2:
            return GOVERNED_IAM_POLICY;
          case 0:
            return GOVERNEDASSET_NOT_SET;
          default:
            return null;
        }
      }

      public int getNumber() {
        return this.value;
      }
    };

    public GovernedAssetCase getGovernedAssetCase() {
      return GovernedAssetCase.forNumber(governedAssetCase_);
    }

    public static final int GOVERNED_RESOURCE_FIELD_NUMBER = 1;
    /**
     *
     *
     * <pre>
     * A Google Cloud resource governed by the organization
     * policies of the
     * [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint].
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource governed_resource = 1;
     * </code>
     *
     * @return Whether the governedResource field is set.
     */
    @java.lang.Override
    public boolean hasGovernedResource() {
      return governedAssetCase_ == 1;
    }
    /**
     *
     *
     * <pre>
     * A Google Cloud resource governed by the organization
     * policies of the
     * [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint].
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource governed_resource = 1;
     * </code>
     *
     * @return The governedResource.
     */
    @java.lang.Override
    public com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource
        getGovernedResource() {
      if (governedAssetCase_ == 1) {
        return (com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource)
            governedAsset_;
      }
      return com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource
          .getDefaultInstance();
    }
    /**
     *
     *
     * <pre>
     * A Google Cloud resource governed by the organization
     * policies of the
     * [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint].
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource governed_resource = 1;
     * </code>
     */
    @java.lang.Override
    public com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse
            .GovernedResourceOrBuilder
        getGovernedResourceOrBuilder() {
      if (governedAssetCase_ == 1) {
        return (com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource)
            governedAsset_;
      }
      return com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource
          .getDefaultInstance();
    }

    public static final int GOVERNED_IAM_POLICY_FIELD_NUMBER = 2;
    /**
     *
     *
     * <pre>
     * An IAM policy governed by the organization
     * policies of the
     * [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint].
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy governed_iam_policy = 2;
     * </code>
     *
     * @return Whether the governedIamPolicy field is set.
     */
    @java.lang.Override
    public boolean hasGovernedIamPolicy() {
      return governedAssetCase_ == 2;
    }
    /**
     *
     *
     * <pre>
     * An IAM policy governed by the organization
     * policies of the
     * [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint].
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy governed_iam_policy = 2;
     * </code>
     *
     * @return The governedIamPolicy.
     */
    @java.lang.Override
    public com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy
        getGovernedIamPolicy() {
      if (governedAssetCase_ == 2) {
        return (com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy)
            governedAsset_;
      }
      return com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy
          .getDefaultInstance();
    }
    /**
     *
     *
     * <pre>
     * An IAM policy governed by the organization
     * policies of the
     * [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint].
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy governed_iam_policy = 2;
     * </code>
     */
    @java.lang.Override
    public com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse
            .GovernedIamPolicyOrBuilder
        getGovernedIamPolicyOrBuilder() {
      if (governedAssetCase_ == 2) {
        return (com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy)
            governedAsset_;
      }
      return com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy
          .getDefaultInstance();
    }

    public static final int CONSOLIDATED_POLICY_FIELD_NUMBER = 3;
    private com.google.cloud.asset.v1.AnalyzerOrgPolicy consolidatedPolicy_;
    /**
     *
     *
     * <pre>
     * The consolidated policy for the analyzed asset. The consolidated
     * policy is computed by merging and evaluating
     * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle].
     * The evaluation will respect the organization policy [hierarchy
     * rules](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-hierarchy).
     * </pre>
     *
     * <code>.google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 3;</code>
     *
     * @return Whether the consolidatedPolicy field is set.
     */
    @java.lang.Override
    public boolean hasConsolidatedPolicy() {
      return consolidatedPolicy_ != null;
    }
    /**
     *
     *
     * <pre>
     * The consolidated policy for the analyzed asset. The consolidated
     * policy is computed by merging and evaluating
     * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle].
     * The evaluation will respect the organization policy [hierarchy
     * rules](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-hierarchy).
     * </pre>
     *
     * <code>.google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 3;</code>
     *
     * @return The consolidatedPolicy.
     */
    @java.lang.Override
    public com.google.cloud.asset.v1.AnalyzerOrgPolicy getConsolidatedPolicy() {
      return consolidatedPolicy_ == null
          ? com.google.cloud.asset.v1.AnalyzerOrgPolicy.getDefaultInstance()
          : consolidatedPolicy_;
    }
    /**
     *
     *
     * <pre>
     * The consolidated policy for the analyzed asset. The consolidated
     * policy is computed by merging and evaluating
     * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle].
     * The evaluation will respect the organization policy [hierarchy
     * rules](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-hierarchy).
     * </pre>
     *
     * <code>.google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 3;</code>
     */
    @java.lang.Override
    public com.google.cloud.asset.v1.AnalyzerOrgPolicyOrBuilder getConsolidatedPolicyOrBuilder() {
      return consolidatedPolicy_ == null
          ? com.google.cloud.asset.v1.AnalyzerOrgPolicy.getDefaultInstance()
          : consolidatedPolicy_;
    }

    public static final int POLICY_BUNDLE_FIELD_NUMBER = 4;

    @SuppressWarnings("serial")
    private java.util.List<com.google.cloud.asset.v1.AnalyzerOrgPolicy> policyBundle_;
    /**
     *
     *
     * <pre>
     * The ordered list of all organization policies from the
     * [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]
     * to the scope specified in the request.
     * If the constraint is defined with default policy, it will also appear in
     * the list.
     * </pre>
     *
     * <code>repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4;</code>
     */
    @java.lang.Override
    public java.util.List<com.google.cloud.asset.v1.AnalyzerOrgPolicy> getPolicyBundleList() {
      return policyBundle_;
    }
    /**
     *
     *
     * <pre>
     * The ordered list of all organization policies from the
     * [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]
     * to the scope specified in the request.
     * If the constraint is defined with default policy, it will also appear in
     * the list.
     * </pre>
     *
     * <code>repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4;</code>
     */
    @java.lang.Override
    public java.util.List<? extends com.google.cloud.asset.v1.AnalyzerOrgPolicyOrBuilder>
        getPolicyBundleOrBuilderList() {
      return policyBundle_;
    }
    /**
     *
     *
     * <pre>
     * The ordered list of all organization policies from the
     * [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]
     * to the scope specified in the request.
     * If the constraint is defined with default policy, it will also appear in
     * the list.
     * </pre>
     *
     * <code>repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4;</code>
     */
    @java.lang.Override
    public int getPolicyBundleCount() {
      return policyBundle_.size();
    }
    /**
     *
     *
     * <pre>
     * The ordered list of all organization policies from the
     * [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]
     * to the scope specified in the request.
     * If the constraint is defined with default policy, it will also appear in
     * the list.
     * </pre>
     *
     * <code>repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4;</code>
     */
    @java.lang.Override
    public com.google.cloud.asset.v1.AnalyzerOrgPolicy getPolicyBundle(int index) {
      return policyBundle_.get(index);
    }
    /**
     *
     *
     * <pre>
     * The ordered list of all organization policies from the
     * [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]
     * to the scope specified in the request.
     * If the constraint is defined with default policy, it will also appear in
     * the list.
     * </pre>
     *
     * <code>repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4;</code>
     */
    @java.lang.Override
    public com.google.cloud.asset.v1.AnalyzerOrgPolicyOrBuilder getPolicyBundleOrBuilder(
        int index) {
      return policyBundle_.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 (governedAssetCase_ == 1) {
        output.writeMessage(
            1,
            (com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource)
                governedAsset_);
      }
      if (governedAssetCase_ == 2) {
        output.writeMessage(
            2,
            (com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy)
                governedAsset_);
      }
      if (consolidatedPolicy_ != null) {
        output.writeMessage(3, getConsolidatedPolicy());
      }
      for (int i = 0; i < policyBundle_.size(); i++) {
        output.writeMessage(4, policyBundle_.get(i));
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (governedAssetCase_ == 1) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                1,
                (com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource)
                    governedAsset_);
      }
      if (governedAssetCase_ == 2) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                2,
                (com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy)
                    governedAsset_);
      }
      if (consolidatedPolicy_ != null) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(3, getConsolidatedPolicy());
      }
      for (int i = 0; i < policyBundle_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, policyBundle_.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.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset)) {
        return super.equals(obj);
      }
      com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset other =
          (com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset) obj;

      if (hasConsolidatedPolicy() != other.hasConsolidatedPolicy()) return false;
      if (hasConsolidatedPolicy()) {
        if (!getConsolidatedPolicy().equals(other.getConsolidatedPolicy())) return false;
      }
      if (!getPolicyBundleList().equals(other.getPolicyBundleList())) return false;
      if (!getGovernedAssetCase().equals(other.getGovernedAssetCase())) return false;
      switch (governedAssetCase_) {
        case 1:
          if (!getGovernedResource().equals(other.getGovernedResource())) return false;
          break;
        case 2:
          if (!getGovernedIamPolicy().equals(other.getGovernedIamPolicy())) return false;
          break;
        case 0:
        default:
      }
      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 (hasConsolidatedPolicy()) {
        hash = (37 * hash) + CONSOLIDATED_POLICY_FIELD_NUMBER;
        hash = (53 * hash) + getConsolidatedPolicy().hashCode();
      }
      if (getPolicyBundleCount() > 0) {
        hash = (37 * hash) + POLICY_BUNDLE_FIELD_NUMBER;
        hash = (53 * hash) + getPolicyBundleList().hashCode();
      }
      switch (governedAssetCase_) {
        case 1:
          hash = (37 * hash) + GOVERNED_RESOURCE_FIELD_NUMBER;
          hash = (53 * hash) + getGovernedResource().hashCode();
          break;
        case 2:
          hash = (37 * hash) + GOVERNED_IAM_POLICY_FIELD_NUMBER;
          hash = (53 * hash) + getGovernedIamPolicy().hashCode();
          break;
        case 0:
        default:
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

    public static com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset
        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.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset
        parseFrom(com.google.protobuf.ByteString data)
            throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset
        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.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset
        parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset
        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.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset
        parseFrom(java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset
        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.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset
        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    }

    public static com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset
        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.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset
        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.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset
        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.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset 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>
     * Represents a Google Cloud asset(resource or IAM policy) governed by the
     * organization policies of the
     * [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint].
     * </pre>
     *
     * Protobuf type {@code
     * google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset)
        com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAssetOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.asset.v1.AssetServiceProto
            .internal_static_google_cloud_asset_v1_AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset_descriptor;
      }

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

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

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

      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        if (governedResourceBuilder_ != null) {
          governedResourceBuilder_.clear();
        }
        if (governedIamPolicyBuilder_ != null) {
          governedIamPolicyBuilder_.clear();
        }
        consolidatedPolicy_ = null;
        if (consolidatedPolicyBuilder_ != null) {
          consolidatedPolicyBuilder_.dispose();
          consolidatedPolicyBuilder_ = null;
        }
        if (policyBundleBuilder_ == null) {
          policyBundle_ = java.util.Collections.emptyList();
        } else {
          policyBundle_ = null;
          policyBundleBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000008);
        governedAssetCase_ = 0;
        governedAsset_ = null;
        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_AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset_descriptor;
      }

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

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

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

      private void buildPartialRepeatedFields(
          com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset result) {
        if (policyBundleBuilder_ == null) {
          if (((bitField0_ & 0x00000008) != 0)) {
            policyBundle_ = java.util.Collections.unmodifiableList(policyBundle_);
            bitField0_ = (bitField0_ & ~0x00000008);
          }
          result.policyBundle_ = policyBundle_;
        } else {
          result.policyBundle_ = policyBundleBuilder_.build();
        }
      }

      private void buildPartial0(
          com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000004) != 0)) {
          result.consolidatedPolicy_ =
              consolidatedPolicyBuilder_ == null
                  ? consolidatedPolicy_
                  : consolidatedPolicyBuilder_.build();
        }
      }

      private void buildPartialOneofs(
          com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset result) {
        result.governedAssetCase_ = governedAssetCase_;
        result.governedAsset_ = this.governedAsset_;
        if (governedAssetCase_ == 1 && governedResourceBuilder_ != null) {
          result.governedAsset_ = governedResourceBuilder_.build();
        }
        if (governedAssetCase_ == 2 && governedIamPolicyBuilder_ != null) {
          result.governedAsset_ = governedIamPolicyBuilder_.build();
        }
      }

      @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.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset) {
          return mergeFrom(
              (com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset)
                  other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(
          com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset other) {
        if (other
            == com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset
                .getDefaultInstance()) return this;
        if (other.hasConsolidatedPolicy()) {
          mergeConsolidatedPolicy(other.getConsolidatedPolicy());
        }
        if (policyBundleBuilder_ == null) {
          if (!other.policyBundle_.isEmpty()) {
            if (policyBundle_.isEmpty()) {
              policyBundle_ = other.policyBundle_;
              bitField0_ = (bitField0_ & ~0x00000008);
            } else {
              ensurePolicyBundleIsMutable();
              policyBundle_.addAll(other.policyBundle_);
            }
            onChanged();
          }
        } else {
          if (!other.policyBundle_.isEmpty()) {
            if (policyBundleBuilder_.isEmpty()) {
              policyBundleBuilder_.dispose();
              policyBundleBuilder_ = null;
              policyBundle_ = other.policyBundle_;
              bitField0_ = (bitField0_ & ~0x00000008);
              policyBundleBuilder_ =
                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                      ? getPolicyBundleFieldBuilder()
                      : null;
            } else {
              policyBundleBuilder_.addAllMessages(other.policyBundle_);
            }
          }
        }
        switch (other.getGovernedAssetCase()) {
          case GOVERNED_RESOURCE:
            {
              mergeGovernedResource(other.getGovernedResource());
              break;
            }
          case GOVERNED_IAM_POLICY:
            {
              mergeGovernedIamPolicy(other.getGovernedIamPolicy());
              break;
            }
          case GOVERNEDASSET_NOT_SET:
            {
              break;
            }
        }
        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(
                      getGovernedResourceFieldBuilder().getBuilder(), extensionRegistry);
                  governedAssetCase_ = 1;
                  break;
                } // case 10
              case 18:
                {
                  input.readMessage(
                      getGovernedIamPolicyFieldBuilder().getBuilder(), extensionRegistry);
                  governedAssetCase_ = 2;
                  break;
                } // case 18
              case 26:
                {
                  input.readMessage(
                      getConsolidatedPolicyFieldBuilder().getBuilder(), extensionRegistry);
                  bitField0_ |= 0x00000004;
                  break;
                } // case 26
              case 34:
                {
                  com.google.cloud.asset.v1.AnalyzerOrgPolicy m =
                      input.readMessage(
                          com.google.cloud.asset.v1.AnalyzerOrgPolicy.parser(), extensionRegistry);
                  if (policyBundleBuilder_ == null) {
                    ensurePolicyBundleIsMutable();
                    policyBundle_.add(m);
                  } else {
                    policyBundleBuilder_.addMessage(m);
                  }
                  break;
                } // case 34
              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 governedAssetCase_ = 0;
      private java.lang.Object governedAsset_;

      public GovernedAssetCase getGovernedAssetCase() {
        return GovernedAssetCase.forNumber(governedAssetCase_);
      }

      public Builder clearGovernedAsset() {
        governedAssetCase_ = 0;
        governedAsset_ = null;
        onChanged();
        return this;
      }

      private int bitField0_;

      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource,
              com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource
                  .Builder,
              com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse
                  .GovernedResourceOrBuilder>
          governedResourceBuilder_;
      /**
       *
       *
       * <pre>
       * A Google Cloud resource governed by the organization
       * policies of the
       * [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint].
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource governed_resource = 1;
       * </code>
       *
       * @return Whether the governedResource field is set.
       */
      @java.lang.Override
      public boolean hasGovernedResource() {
        return governedAssetCase_ == 1;
      }
      /**
       *
       *
       * <pre>
       * A Google Cloud resource governed by the organization
       * policies of the
       * [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint].
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource governed_resource = 1;
       * </code>
       *
       * @return The governedResource.
       */
      @java.lang.Override
      public com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource
          getGovernedResource() {
        if (governedResourceBuilder_ == null) {
          if (governedAssetCase_ == 1) {
            return (com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse
                    .GovernedResource)
                governedAsset_;
          }
          return com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource
              .getDefaultInstance();
        } else {
          if (governedAssetCase_ == 1) {
            return governedResourceBuilder_.getMessage();
          }
          return com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource
              .getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * A Google Cloud resource governed by the organization
       * policies of the
       * [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint].
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource governed_resource = 1;
       * </code>
       */
      public Builder setGovernedResource(
          com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource value) {
        if (governedResourceBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          governedAsset_ = value;
          onChanged();
        } else {
          governedResourceBuilder_.setMessage(value);
        }
        governedAssetCase_ = 1;
        return this;
      }
      /**
       *
       *
       * <pre>
       * A Google Cloud resource governed by the organization
       * policies of the
       * [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint].
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource governed_resource = 1;
       * </code>
       */
      public Builder setGovernedResource(
          com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.Builder
              builderForValue) {
        if (governedResourceBuilder_ == null) {
          governedAsset_ = builderForValue.build();
          onChanged();
        } else {
          governedResourceBuilder_.setMessage(builderForValue.build());
        }
        governedAssetCase_ = 1;
        return this;
      }
      /**
       *
       *
       * <pre>
       * A Google Cloud resource governed by the organization
       * policies of the
       * [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint].
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource governed_resource = 1;
       * </code>
       */
      public Builder mergeGovernedResource(
          com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource value) {
        if (governedResourceBuilder_ == null) {
          if (governedAssetCase_ == 1
              && governedAsset_
                  != com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse
                      .GovernedResource.getDefaultInstance()) {
            governedAsset_ =
                com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource
                    .newBuilder(
                        (com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse
                                .GovernedResource)
                            governedAsset_)
                    .mergeFrom(value)
                    .buildPartial();
          } else {
            governedAsset_ = value;
          }
          onChanged();
        } else {
          if (governedAssetCase_ == 1) {
            governedResourceBuilder_.mergeFrom(value);
          } else {
            governedResourceBuilder_.setMessage(value);
          }
        }
        governedAssetCase_ = 1;
        return this;
      }
      /**
       *
       *
       * <pre>
       * A Google Cloud resource governed by the organization
       * policies of the
       * [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint].
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource governed_resource = 1;
       * </code>
       */
      public Builder clearGovernedResource() {
        if (governedResourceBuilder_ == null) {
          if (governedAssetCase_ == 1) {
            governedAssetCase_ = 0;
            governedAsset_ = null;
            onChanged();
          }
        } else {
          if (governedAssetCase_ == 1) {
            governedAssetCase_ = 0;
            governedAsset_ = null;
          }
          governedResourceBuilder_.clear();
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * A Google Cloud resource governed by the organization
       * policies of the
       * [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint].
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource governed_resource = 1;
       * </code>
       */
      public com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource
              .Builder
          getGovernedResourceBuilder() {
        return getGovernedResourceFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * A Google Cloud resource governed by the organization
       * policies of the
       * [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint].
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource governed_resource = 1;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse
              .GovernedResourceOrBuilder
          getGovernedResourceOrBuilder() {
        if ((governedAssetCase_ == 1) && (governedResourceBuilder_ != null)) {
          return governedResourceBuilder_.getMessageOrBuilder();
        } else {
          if (governedAssetCase_ == 1) {
            return (com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse
                    .GovernedResource)
                governedAsset_;
          }
          return com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource
              .getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * A Google Cloud resource governed by the organization
       * policies of the
       * [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint].
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource governed_resource = 1;
       * </code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource,
              com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource
                  .Builder,
              com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse
                  .GovernedResourceOrBuilder>
          getGovernedResourceFieldBuilder() {
        if (governedResourceBuilder_ == null) {
          if (!(governedAssetCase_ == 1)) {
            governedAsset_ =
                com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource
                    .getDefaultInstance();
          }
          governedResourceBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource,
                  com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource
                      .Builder,
                  com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse
                      .GovernedResourceOrBuilder>(
                  (com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse
                          .GovernedResource)
                      governedAsset_,
                  getParentForChildren(),
                  isClean());
          governedAsset_ = null;
        }
        governedAssetCase_ = 1;
        onChanged();
        return governedResourceBuilder_;
      }

      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy,
              com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy
                  .Builder,
              com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse
                  .GovernedIamPolicyOrBuilder>
          governedIamPolicyBuilder_;
      /**
       *
       *
       * <pre>
       * An IAM policy governed by the organization
       * policies of the
       * [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint].
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy governed_iam_policy = 2;
       * </code>
       *
       * @return Whether the governedIamPolicy field is set.
       */
      @java.lang.Override
      public boolean hasGovernedIamPolicy() {
        return governedAssetCase_ == 2;
      }
      /**
       *
       *
       * <pre>
       * An IAM policy governed by the organization
       * policies of the
       * [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint].
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy governed_iam_policy = 2;
       * </code>
       *
       * @return The governedIamPolicy.
       */
      @java.lang.Override
      public com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy
          getGovernedIamPolicy() {
        if (governedIamPolicyBuilder_ == null) {
          if (governedAssetCase_ == 2) {
            return (com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse
                    .GovernedIamPolicy)
                governedAsset_;
          }
          return com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy
              .getDefaultInstance();
        } else {
          if (governedAssetCase_ == 2) {
            return governedIamPolicyBuilder_.getMessage();
          }
          return com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy
              .getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * An IAM policy governed by the organization
       * policies of the
       * [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint].
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy governed_iam_policy = 2;
       * </code>
       */
      public Builder setGovernedIamPolicy(
          com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy
              value) {
        if (governedIamPolicyBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          governedAsset_ = value;
          onChanged();
        } else {
          governedIamPolicyBuilder_.setMessage(value);
        }
        governedAssetCase_ = 2;
        return this;
      }
      /**
       *
       *
       * <pre>
       * An IAM policy governed by the organization
       * policies of the
       * [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint].
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy governed_iam_policy = 2;
       * </code>
       */
      public Builder setGovernedIamPolicy(
          com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder
              builderForValue) {
        if (governedIamPolicyBuilder_ == null) {
          governedAsset_ = builderForValue.build();
          onChanged();
        } else {
          governedIamPolicyBuilder_.setMessage(builderForValue.build());
        }
        governedAssetCase_ = 2;
        return this;
      }
      /**
       *
       *
       * <pre>
       * An IAM policy governed by the organization
       * policies of the
       * [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint].
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy governed_iam_policy = 2;
       * </code>
       */
      public Builder mergeGovernedIamPolicy(
          com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy
              value) {
        if (governedIamPolicyBuilder_ == null) {
          if (governedAssetCase_ == 2
              && governedAsset_
                  != com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse
                      .GovernedIamPolicy.getDefaultInstance()) {
            governedAsset_ =
                com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy
                    .newBuilder(
                        (com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse
                                .GovernedIamPolicy)
                            governedAsset_)
                    .mergeFrom(value)
                    .buildPartial();
          } else {
            governedAsset_ = value;
          }
          onChanged();
        } else {
          if (governedAssetCase_ == 2) {
            governedIamPolicyBuilder_.mergeFrom(value);
          } else {
            governedIamPolicyBuilder_.setMessage(value);
          }
        }
        governedAssetCase_ = 2;
        return this;
      }
      /**
       *
       *
       * <pre>
       * An IAM policy governed by the organization
       * policies of the
       * [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint].
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy governed_iam_policy = 2;
       * </code>
       */
      public Builder clearGovernedIamPolicy() {
        if (governedIamPolicyBuilder_ == null) {
          if (governedAssetCase_ == 2) {
            governedAssetCase_ = 0;
            governedAsset_ = null;
            onChanged();
          }
        } else {
          if (governedAssetCase_ == 2) {
            governedAssetCase_ = 0;
            governedAsset_ = null;
          }
          governedIamPolicyBuilder_.clear();
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * An IAM policy governed by the organization
       * policies of the
       * [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint].
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy governed_iam_policy = 2;
       * </code>
       */
      public com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy
              .Builder
          getGovernedIamPolicyBuilder() {
        return getGovernedIamPolicyFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * An IAM policy governed by the organization
       * policies of the
       * [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint].
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy governed_iam_policy = 2;
       * </code>
       */
      @java.lang.Override
      public com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse
              .GovernedIamPolicyOrBuilder
          getGovernedIamPolicyOrBuilder() {
        if ((governedAssetCase_ == 2) && (governedIamPolicyBuilder_ != null)) {
          return governedIamPolicyBuilder_.getMessageOrBuilder();
        } else {
          if (governedAssetCase_ == 2) {
            return (com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse
                    .GovernedIamPolicy)
                governedAsset_;
          }
          return com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy
              .getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * An IAM policy governed by the organization
       * policies of the
       * [AnalyzeOrgPolicyGovernedAssetsRequest.constraint][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsRequest.constraint].
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy governed_iam_policy = 2;
       * </code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy,
              com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy
                  .Builder,
              com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse
                  .GovernedIamPolicyOrBuilder>
          getGovernedIamPolicyFieldBuilder() {
        if (governedIamPolicyBuilder_ == null) {
          if (!(governedAssetCase_ == 2)) {
            governedAsset_ =
                com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy
                    .getDefaultInstance();
          }
          governedIamPolicyBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse
                      .GovernedIamPolicy,
                  com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy
                      .Builder,
                  com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse
                      .GovernedIamPolicyOrBuilder>(
                  (com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse
                          .GovernedIamPolicy)
                      governedAsset_,
                  getParentForChildren(),
                  isClean());
          governedAsset_ = null;
        }
        governedAssetCase_ = 2;
        onChanged();
        return governedIamPolicyBuilder_;
      }

      private com.google.cloud.asset.v1.AnalyzerOrgPolicy consolidatedPolicy_;
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.asset.v1.AnalyzerOrgPolicy,
              com.google.cloud.asset.v1.AnalyzerOrgPolicy.Builder,
              com.google.cloud.asset.v1.AnalyzerOrgPolicyOrBuilder>
          consolidatedPolicyBuilder_;
      /**
       *
       *
       * <pre>
       * The consolidated policy for the analyzed asset. The consolidated
       * policy is computed by merging and evaluating
       * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle].
       * The evaluation will respect the organization policy [hierarchy
       * rules](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-hierarchy).
       * </pre>
       *
       * <code>.google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 3;</code>
       *
       * @return Whether the consolidatedPolicy field is set.
       */
      public boolean hasConsolidatedPolicy() {
        return ((bitField0_ & 0x00000004) != 0);
      }
      /**
       *
       *
       * <pre>
       * The consolidated policy for the analyzed asset. The consolidated
       * policy is computed by merging and evaluating
       * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle].
       * The evaluation will respect the organization policy [hierarchy
       * rules](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-hierarchy).
       * </pre>
       *
       * <code>.google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 3;</code>
       *
       * @return The consolidatedPolicy.
       */
      public com.google.cloud.asset.v1.AnalyzerOrgPolicy getConsolidatedPolicy() {
        if (consolidatedPolicyBuilder_ == null) {
          return consolidatedPolicy_ == null
              ? com.google.cloud.asset.v1.AnalyzerOrgPolicy.getDefaultInstance()
              : consolidatedPolicy_;
        } else {
          return consolidatedPolicyBuilder_.getMessage();
        }
      }
      /**
       *
       *
       * <pre>
       * The consolidated policy for the analyzed asset. The consolidated
       * policy is computed by merging and evaluating
       * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle].
       * The evaluation will respect the organization policy [hierarchy
       * rules](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-hierarchy).
       * </pre>
       *
       * <code>.google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 3;</code>
       */
      public Builder setConsolidatedPolicy(com.google.cloud.asset.v1.AnalyzerOrgPolicy value) {
        if (consolidatedPolicyBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          consolidatedPolicy_ = value;
        } else {
          consolidatedPolicyBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000004;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The consolidated policy for the analyzed asset. The consolidated
       * policy is computed by merging and evaluating
       * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle].
       * The evaluation will respect the organization policy [hierarchy
       * rules](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-hierarchy).
       * </pre>
       *
       * <code>.google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 3;</code>
       */
      public Builder setConsolidatedPolicy(
          com.google.cloud.asset.v1.AnalyzerOrgPolicy.Builder builderForValue) {
        if (consolidatedPolicyBuilder_ == null) {
          consolidatedPolicy_ = builderForValue.build();
        } else {
          consolidatedPolicyBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000004;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The consolidated policy for the analyzed asset. The consolidated
       * policy is computed by merging and evaluating
       * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle].
       * The evaluation will respect the organization policy [hierarchy
       * rules](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-hierarchy).
       * </pre>
       *
       * <code>.google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 3;</code>
       */
      public Builder mergeConsolidatedPolicy(com.google.cloud.asset.v1.AnalyzerOrgPolicy value) {
        if (consolidatedPolicyBuilder_ == null) {
          if (((bitField0_ & 0x00000004) != 0)
              && consolidatedPolicy_ != null
              && consolidatedPolicy_
                  != com.google.cloud.asset.v1.AnalyzerOrgPolicy.getDefaultInstance()) {
            getConsolidatedPolicyBuilder().mergeFrom(value);
          } else {
            consolidatedPolicy_ = value;
          }
        } else {
          consolidatedPolicyBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000004;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The consolidated policy for the analyzed asset. The consolidated
       * policy is computed by merging and evaluating
       * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle].
       * The evaluation will respect the organization policy [hierarchy
       * rules](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-hierarchy).
       * </pre>
       *
       * <code>.google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 3;</code>
       */
      public Builder clearConsolidatedPolicy() {
        bitField0_ = (bitField0_ & ~0x00000004);
        consolidatedPolicy_ = null;
        if (consolidatedPolicyBuilder_ != null) {
          consolidatedPolicyBuilder_.dispose();
          consolidatedPolicyBuilder_ = null;
        }
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The consolidated policy for the analyzed asset. The consolidated
       * policy is computed by merging and evaluating
       * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle].
       * The evaluation will respect the organization policy [hierarchy
       * rules](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-hierarchy).
       * </pre>
       *
       * <code>.google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 3;</code>
       */
      public com.google.cloud.asset.v1.AnalyzerOrgPolicy.Builder getConsolidatedPolicyBuilder() {
        bitField0_ |= 0x00000004;
        onChanged();
        return getConsolidatedPolicyFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * The consolidated policy for the analyzed asset. The consolidated
       * policy is computed by merging and evaluating
       * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle].
       * The evaluation will respect the organization policy [hierarchy
       * rules](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-hierarchy).
       * </pre>
       *
       * <code>.google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 3;</code>
       */
      public com.google.cloud.asset.v1.AnalyzerOrgPolicyOrBuilder getConsolidatedPolicyOrBuilder() {
        if (consolidatedPolicyBuilder_ != null) {
          return consolidatedPolicyBuilder_.getMessageOrBuilder();
        } else {
          return consolidatedPolicy_ == null
              ? com.google.cloud.asset.v1.AnalyzerOrgPolicy.getDefaultInstance()
              : consolidatedPolicy_;
        }
      }
      /**
       *
       *
       * <pre>
       * The consolidated policy for the analyzed asset. The consolidated
       * policy is computed by merging and evaluating
       * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.policy_bundle].
       * The evaluation will respect the organization policy [hierarchy
       * rules](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-hierarchy).
       * </pre>
       *
       * <code>.google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 3;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.asset.v1.AnalyzerOrgPolicy,
              com.google.cloud.asset.v1.AnalyzerOrgPolicy.Builder,
              com.google.cloud.asset.v1.AnalyzerOrgPolicyOrBuilder>
          getConsolidatedPolicyFieldBuilder() {
        if (consolidatedPolicyBuilder_ == null) {
          consolidatedPolicyBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.asset.v1.AnalyzerOrgPolicy,
                  com.google.cloud.asset.v1.AnalyzerOrgPolicy.Builder,
                  com.google.cloud.asset.v1.AnalyzerOrgPolicyOrBuilder>(
                  getConsolidatedPolicy(), getParentForChildren(), isClean());
          consolidatedPolicy_ = null;
        }
        return consolidatedPolicyBuilder_;
      }

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

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

      private com.google.protobuf.RepeatedFieldBuilderV3<
              com.google.cloud.asset.v1.AnalyzerOrgPolicy,
              com.google.cloud.asset.v1.AnalyzerOrgPolicy.Builder,
              com.google.cloud.asset.v1.AnalyzerOrgPolicyOrBuilder>
          policyBundleBuilder_;

      /**
       *
       *
       * <pre>
       * The ordered list of all organization policies from the
       * [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]
       * to the scope specified in the request.
       * If the constraint is defined with default policy, it will also appear in
       * the list.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4;</code>
       */
      public java.util.List<com.google.cloud.asset.v1.AnalyzerOrgPolicy> getPolicyBundleList() {
        if (policyBundleBuilder_ == null) {
          return java.util.Collections.unmodifiableList(policyBundle_);
        } else {
          return policyBundleBuilder_.getMessageList();
        }
      }
      /**
       *
       *
       * <pre>
       * The ordered list of all organization policies from the
       * [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]
       * to the scope specified in the request.
       * If the constraint is defined with default policy, it will also appear in
       * the list.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4;</code>
       */
      public int getPolicyBundleCount() {
        if (policyBundleBuilder_ == null) {
          return policyBundle_.size();
        } else {
          return policyBundleBuilder_.getCount();
        }
      }
      /**
       *
       *
       * <pre>
       * The ordered list of all organization policies from the
       * [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]
       * to the scope specified in the request.
       * If the constraint is defined with default policy, it will also appear in
       * the list.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4;</code>
       */
      public com.google.cloud.asset.v1.AnalyzerOrgPolicy getPolicyBundle(int index) {
        if (policyBundleBuilder_ == null) {
          return policyBundle_.get(index);
        } else {
          return policyBundleBuilder_.getMessage(index);
        }
      }
      /**
       *
       *
       * <pre>
       * The ordered list of all organization policies from the
       * [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]
       * to the scope specified in the request.
       * If the constraint is defined with default policy, it will also appear in
       * the list.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4;</code>
       */
      public Builder setPolicyBundle(int index, com.google.cloud.asset.v1.AnalyzerOrgPolicy value) {
        if (policyBundleBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensurePolicyBundleIsMutable();
          policyBundle_.set(index, value);
          onChanged();
        } else {
          policyBundleBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * The ordered list of all organization policies from the
       * [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]
       * to the scope specified in the request.
       * If the constraint is defined with default policy, it will also appear in
       * the list.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4;</code>
       */
      public Builder setPolicyBundle(
          int index, com.google.cloud.asset.v1.AnalyzerOrgPolicy.Builder builderForValue) {
        if (policyBundleBuilder_ == null) {
          ensurePolicyBundleIsMutable();
          policyBundle_.set(index, builderForValue.build());
          onChanged();
        } else {
          policyBundleBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * The ordered list of all organization policies from the
       * [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]
       * to the scope specified in the request.
       * If the constraint is defined with default policy, it will also appear in
       * the list.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4;</code>
       */
      public Builder addPolicyBundle(com.google.cloud.asset.v1.AnalyzerOrgPolicy value) {
        if (policyBundleBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensurePolicyBundleIsMutable();
          policyBundle_.add(value);
          onChanged();
        } else {
          policyBundleBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * The ordered list of all organization policies from the
       * [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]
       * to the scope specified in the request.
       * If the constraint is defined with default policy, it will also appear in
       * the list.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4;</code>
       */
      public Builder addPolicyBundle(int index, com.google.cloud.asset.v1.AnalyzerOrgPolicy value) {
        if (policyBundleBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensurePolicyBundleIsMutable();
          policyBundle_.add(index, value);
          onChanged();
        } else {
          policyBundleBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * The ordered list of all organization policies from the
       * [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]
       * to the scope specified in the request.
       * If the constraint is defined with default policy, it will also appear in
       * the list.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4;</code>
       */
      public Builder addPolicyBundle(
          com.google.cloud.asset.v1.AnalyzerOrgPolicy.Builder builderForValue) {
        if (policyBundleBuilder_ == null) {
          ensurePolicyBundleIsMutable();
          policyBundle_.add(builderForValue.build());
          onChanged();
        } else {
          policyBundleBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * The ordered list of all organization policies from the
       * [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]
       * to the scope specified in the request.
       * If the constraint is defined with default policy, it will also appear in
       * the list.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4;</code>
       */
      public Builder addPolicyBundle(
          int index, com.google.cloud.asset.v1.AnalyzerOrgPolicy.Builder builderForValue) {
        if (policyBundleBuilder_ == null) {
          ensurePolicyBundleIsMutable();
          policyBundle_.add(index, builderForValue.build());
          onChanged();
        } else {
          policyBundleBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * The ordered list of all organization policies from the
       * [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]
       * to the scope specified in the request.
       * If the constraint is defined with default policy, it will also appear in
       * the list.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4;</code>
       */
      public Builder addAllPolicyBundle(
          java.lang.Iterable<? extends com.google.cloud.asset.v1.AnalyzerOrgPolicy> values) {
        if (policyBundleBuilder_ == null) {
          ensurePolicyBundleIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(values, policyBundle_);
          onChanged();
        } else {
          policyBundleBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * The ordered list of all organization policies from the
       * [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]
       * to the scope specified in the request.
       * If the constraint is defined with default policy, it will also appear in
       * the list.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4;</code>
       */
      public Builder clearPolicyBundle() {
        if (policyBundleBuilder_ == null) {
          policyBundle_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000008);
          onChanged();
        } else {
          policyBundleBuilder_.clear();
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * The ordered list of all organization policies from the
       * [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]
       * to the scope specified in the request.
       * If the constraint is defined with default policy, it will also appear in
       * the list.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4;</code>
       */
      public Builder removePolicyBundle(int index) {
        if (policyBundleBuilder_ == null) {
          ensurePolicyBundleIsMutable();
          policyBundle_.remove(index);
          onChanged();
        } else {
          policyBundleBuilder_.remove(index);
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * The ordered list of all organization policies from the
       * [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]
       * to the scope specified in the request.
       * If the constraint is defined with default policy, it will also appear in
       * the list.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4;</code>
       */
      public com.google.cloud.asset.v1.AnalyzerOrgPolicy.Builder getPolicyBundleBuilder(int index) {
        return getPolicyBundleFieldBuilder().getBuilder(index);
      }
      /**
       *
       *
       * <pre>
       * The ordered list of all organization policies from the
       * [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]
       * to the scope specified in the request.
       * If the constraint is defined with default policy, it will also appear in
       * the list.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4;</code>
       */
      public com.google.cloud.asset.v1.AnalyzerOrgPolicyOrBuilder getPolicyBundleOrBuilder(
          int index) {
        if (policyBundleBuilder_ == null) {
          return policyBundle_.get(index);
        } else {
          return policyBundleBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       *
       *
       * <pre>
       * The ordered list of all organization policies from the
       * [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]
       * to the scope specified in the request.
       * If the constraint is defined with default policy, it will also appear in
       * the list.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4;</code>
       */
      public java.util.List<? extends com.google.cloud.asset.v1.AnalyzerOrgPolicyOrBuilder>
          getPolicyBundleOrBuilderList() {
        if (policyBundleBuilder_ != null) {
          return policyBundleBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(policyBundle_);
        }
      }
      /**
       *
       *
       * <pre>
       * The ordered list of all organization policies from the
       * [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]
       * to the scope specified in the request.
       * If the constraint is defined with default policy, it will also appear in
       * the list.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4;</code>
       */
      public com.google.cloud.asset.v1.AnalyzerOrgPolicy.Builder addPolicyBundleBuilder() {
        return getPolicyBundleFieldBuilder()
            .addBuilder(com.google.cloud.asset.v1.AnalyzerOrgPolicy.getDefaultInstance());
      }
      /**
       *
       *
       * <pre>
       * The ordered list of all organization policies from the
       * [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]
       * to the scope specified in the request.
       * If the constraint is defined with default policy, it will also appear in
       * the list.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4;</code>
       */
      public com.google.cloud.asset.v1.AnalyzerOrgPolicy.Builder addPolicyBundleBuilder(int index) {
        return getPolicyBundleFieldBuilder()
            .addBuilder(index, com.google.cloud.asset.v1.AnalyzerOrgPolicy.getDefaultInstance());
      }
      /**
       *
       *
       * <pre>
       * The ordered list of all organization policies from the
       * [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]
       * to the scope specified in the request.
       * If the constraint is defined with default policy, it will also appear in
       * the list.
       * </pre>
       *
       * <code>repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4;</code>
       */
      public java.util.List<com.google.cloud.asset.v1.AnalyzerOrgPolicy.Builder>
          getPolicyBundleBuilderList() {
        return getPolicyBundleFieldBuilder().getBuilderList();
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
              com.google.cloud.asset.v1.AnalyzerOrgPolicy,
              com.google.cloud.asset.v1.AnalyzerOrgPolicy.Builder,
              com.google.cloud.asset.v1.AnalyzerOrgPolicyOrBuilder>
          getPolicyBundleFieldBuilder() {
        if (policyBundleBuilder_ == null) {
          policyBundleBuilder_ =
              new com.google.protobuf.RepeatedFieldBuilderV3<
                  com.google.cloud.asset.v1.AnalyzerOrgPolicy,
                  com.google.cloud.asset.v1.AnalyzerOrgPolicy.Builder,
                  com.google.cloud.asset.v1.AnalyzerOrgPolicyOrBuilder>(
                  policyBundle_,
                  ((bitField0_ & 0x00000008) != 0),
                  getParentForChildren(),
                  isClean());
          policyBundle_ = null;
        }
        return policyBundleBuilder_;
      }

      @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.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset)
    }

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

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

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

    private static final com.google.protobuf.Parser<GovernedAsset> PARSER =
        new com.google.protobuf.AbstractParser<GovernedAsset>() {
          @java.lang.Override
          public GovernedAsset 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<GovernedAsset> parser() {
      return PARSER;
    }

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

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

  public static final int GOVERNED_ASSETS_FIELD_NUMBER = 1;

  @SuppressWarnings("serial")
  private java.util.List<
          com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset>
      governedAssets_;
  /**
   *
   *
   * <pre>
   * The list of the analyzed governed assets.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset governed_assets = 1;
   * </code>
   */
  @java.lang.Override
  public java.util.List<
          com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset>
      getGovernedAssetsList() {
    return governedAssets_;
  }
  /**
   *
   *
   * <pre>
   * The list of the analyzed governed assets.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset governed_assets = 1;
   * </code>
   */
  @java.lang.Override
  public java.util.List<
          ? extends
              com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse
                  .GovernedAssetOrBuilder>
      getGovernedAssetsOrBuilderList() {
    return governedAssets_;
  }
  /**
   *
   *
   * <pre>
   * The list of the analyzed governed assets.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset governed_assets = 1;
   * </code>
   */
  @java.lang.Override
  public int getGovernedAssetsCount() {
    return governedAssets_.size();
  }
  /**
   *
   *
   * <pre>
   * The list of the analyzed governed assets.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset governed_assets = 1;
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset
      getGovernedAssets(int index) {
    return governedAssets_.get(index);
  }
  /**
   *
   *
   * <pre>
   * The list of the analyzed governed assets.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset governed_assets = 1;
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAssetOrBuilder
      getGovernedAssetsOrBuilder(int index) {
    return governedAssets_.get(index);
  }

  public static final int CONSTRAINT_FIELD_NUMBER = 2;
  private com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint constraint_;
  /**
   *
   *
   * <pre>
   * The definition of the constraint in the request.
   * </pre>
   *
   * <code>.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint constraint = 2;</code>
   *
   * @return Whether the constraint field is set.
   */
  @java.lang.Override
  public boolean hasConstraint() {
    return constraint_ != null;
  }
  /**
   *
   *
   * <pre>
   * The definition of the constraint in the request.
   * </pre>
   *
   * <code>.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint constraint = 2;</code>
   *
   * @return The constraint.
   */
  @java.lang.Override
  public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint getConstraint() {
    return constraint_ == null
        ? com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.getDefaultInstance()
        : constraint_;
  }
  /**
   *
   *
   * <pre>
   * The definition of the constraint in the request.
   * </pre>
   *
   * <code>.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint constraint = 2;</code>
   */
  @java.lang.Override
  public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraintOrBuilder getConstraintOrBuilder() {
    return constraint_ == null
        ? com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.getDefaultInstance()
        : constraint_;
  }

  public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3;

  @SuppressWarnings("serial")
  private volatile java.lang.Object nextPageToken_ = "";
  /**
   *
   *
   * <pre>
   * The page token to fetch the next page for
   * [AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets].
   * </pre>
   *
   * <code>string next_page_token = 3;</code>
   *
   * @return The nextPageToken.
   */
  @java.lang.Override
  public java.lang.String getNextPageToken() {
    java.lang.Object ref = nextPageToken_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      nextPageToken_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The page token to fetch the next page for
   * [AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets].
   * </pre>
   *
   * <code>string next_page_token = 3;</code>
   *
   * @return The bytes for nextPageToken.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getNextPageTokenBytes() {
    java.lang.Object ref = nextPageToken_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      nextPageToken_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  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 {
    for (int i = 0; i < governedAssets_.size(); i++) {
      output.writeMessage(1, governedAssets_.get(i));
    }
    if (constraint_ != null) {
      output.writeMessage(2, getConstraint());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, nextPageToken_);
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    for (int i = 0; i < governedAssets_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, governedAssets_.get(i));
    }
    if (constraint_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConstraint());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_);
    }
    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.AnalyzeOrgPolicyGovernedAssetsResponse)) {
      return super.equals(obj);
    }
    com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse other =
        (com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse) obj;

    if (!getGovernedAssetsList().equals(other.getGovernedAssetsList())) return false;
    if (hasConstraint() != other.hasConstraint()) return false;
    if (hasConstraint()) {
      if (!getConstraint().equals(other.getConstraint())) return false;
    }
    if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getGovernedAssetsCount() > 0) {
      hash = (37 * hash) + GOVERNED_ASSETS_FIELD_NUMBER;
      hash = (53 * hash) + getGovernedAssetsList().hashCode();
    }
    if (hasConstraint()) {
      hash = (37 * hash) + CONSTRAINT_FIELD_NUMBER;
      hash = (53 * hash) + getConstraint().hashCode();
    }
    hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
    hash = (53 * hash) + getNextPageToken().hashCode();
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

  public static com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse 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.AnalyzeOrgPolicyGovernedAssetsResponse parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse 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.AnalyzeOrgPolicyGovernedAssetsResponse parseFrom(
      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse 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.AnalyzeOrgPolicyGovernedAssetsResponse parseFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse 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.AnalyzeOrgPolicyGovernedAssetsResponse parseDelimitedFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse 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.AnalyzeOrgPolicyGovernedAssetsResponse 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.AnalyzeOrgPolicyGovernedAssetsResponse 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.AnalyzeOrgPolicyGovernedAssetsResponse 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>
   * The response message for
   * [AssetService.AnalyzeOrgPolicyGovernedAssets][google.cloud.asset.v1.AssetService.AnalyzeOrgPolicyGovernedAssets].
   * </pre>
   *
   * Protobuf type {@code google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse)
      com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponseOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.asset.v1.AssetServiceProto
          .internal_static_google_cloud_asset_v1_AnalyzeOrgPolicyGovernedAssetsResponse_descriptor;
    }

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

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

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

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      if (governedAssetsBuilder_ == null) {
        governedAssets_ = java.util.Collections.emptyList();
      } else {
        governedAssets_ = null;
        governedAssetsBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000001);
      constraint_ = null;
      if (constraintBuilder_ != null) {
        constraintBuilder_.dispose();
        constraintBuilder_ = null;
      }
      nextPageToken_ = "";
      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_AnalyzeOrgPolicyGovernedAssetsResponse_descriptor;
    }

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

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

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

    private void buildPartialRepeatedFields(
        com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse result) {
      if (governedAssetsBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          governedAssets_ = java.util.Collections.unmodifiableList(governedAssets_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.governedAssets_ = governedAssets_;
      } else {
        result.governedAssets_ = governedAssetsBuilder_.build();
      }
    }

    private void buildPartial0(
        com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.constraint_ = constraintBuilder_ == null ? constraint_ : constraintBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.nextPageToken_ = nextPageToken_;
      }
    }

    @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.AnalyzeOrgPolicyGovernedAssetsResponse) {
        return mergeFrom((com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(
        com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse other) {
      if (other
          == com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.getDefaultInstance())
        return this;
      if (governedAssetsBuilder_ == null) {
        if (!other.governedAssets_.isEmpty()) {
          if (governedAssets_.isEmpty()) {
            governedAssets_ = other.governedAssets_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureGovernedAssetsIsMutable();
            governedAssets_.addAll(other.governedAssets_);
          }
          onChanged();
        }
      } else {
        if (!other.governedAssets_.isEmpty()) {
          if (governedAssetsBuilder_.isEmpty()) {
            governedAssetsBuilder_.dispose();
            governedAssetsBuilder_ = null;
            governedAssets_ = other.governedAssets_;
            bitField0_ = (bitField0_ & ~0x00000001);
            governedAssetsBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getGovernedAssetsFieldBuilder()
                    : null;
          } else {
            governedAssetsBuilder_.addAllMessages(other.governedAssets_);
          }
        }
      }
      if (other.hasConstraint()) {
        mergeConstraint(other.getConstraint());
      }
      if (!other.getNextPageToken().isEmpty()) {
        nextPageToken_ = other.nextPageToken_;
        bitField0_ |= 0x00000004;
        onChanged();
      }
      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:
              {
                com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset m =
                    input.readMessage(
                        com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse
                            .GovernedAsset.parser(),
                        extensionRegistry);
                if (governedAssetsBuilder_ == null) {
                  ensureGovernedAssetsIsMutable();
                  governedAssets_.add(m);
                } else {
                  governedAssetsBuilder_.addMessage(m);
                }
                break;
              } // case 10
            case 18:
              {
                input.readMessage(getConstraintFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000002;
                break;
              } // case 18
            case 26:
              {
                nextPageToken_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000004;
                break;
              } // case 26
            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 java.util.List<
            com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset>
        governedAssets_ = java.util.Collections.emptyList();

    private void ensureGovernedAssetsIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        governedAssets_ =
            new java.util.ArrayList<
                com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset>(
                governedAssets_);
        bitField0_ |= 0x00000001;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset,
            com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder,
            com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAssetOrBuilder>
        governedAssetsBuilder_;

    /**
     *
     *
     * <pre>
     * The list of the analyzed governed assets.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset governed_assets = 1;
     * </code>
     */
    public java.util.List<
            com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset>
        getGovernedAssetsList() {
      if (governedAssetsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(governedAssets_);
      } else {
        return governedAssetsBuilder_.getMessageList();
      }
    }
    /**
     *
     *
     * <pre>
     * The list of the analyzed governed assets.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset governed_assets = 1;
     * </code>
     */
    public int getGovernedAssetsCount() {
      if (governedAssetsBuilder_ == null) {
        return governedAssets_.size();
      } else {
        return governedAssetsBuilder_.getCount();
      }
    }
    /**
     *
     *
     * <pre>
     * The list of the analyzed governed assets.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset governed_assets = 1;
     * </code>
     */
    public com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset
        getGovernedAssets(int index) {
      if (governedAssetsBuilder_ == null) {
        return governedAssets_.get(index);
      } else {
        return governedAssetsBuilder_.getMessage(index);
      }
    }
    /**
     *
     *
     * <pre>
     * The list of the analyzed governed assets.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset governed_assets = 1;
     * </code>
     */
    public Builder setGovernedAssets(
        int index,
        com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset value) {
      if (governedAssetsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureGovernedAssetsIsMutable();
        governedAssets_.set(index, value);
        onChanged();
      } else {
        governedAssetsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The list of the analyzed governed assets.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset governed_assets = 1;
     * </code>
     */
    public Builder setGovernedAssets(
        int index,
        com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder
            builderForValue) {
      if (governedAssetsBuilder_ == null) {
        ensureGovernedAssetsIsMutable();
        governedAssets_.set(index, builderForValue.build());
        onChanged();
      } else {
        governedAssetsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The list of the analyzed governed assets.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset governed_assets = 1;
     * </code>
     */
    public Builder addGovernedAssets(
        com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset value) {
      if (governedAssetsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureGovernedAssetsIsMutable();
        governedAssets_.add(value);
        onChanged();
      } else {
        governedAssetsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The list of the analyzed governed assets.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset governed_assets = 1;
     * </code>
     */
    public Builder addGovernedAssets(
        int index,
        com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset value) {
      if (governedAssetsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureGovernedAssetsIsMutable();
        governedAssets_.add(index, value);
        onChanged();
      } else {
        governedAssetsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The list of the analyzed governed assets.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset governed_assets = 1;
     * </code>
     */
    public Builder addGovernedAssets(
        com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder
            builderForValue) {
      if (governedAssetsBuilder_ == null) {
        ensureGovernedAssetsIsMutable();
        governedAssets_.add(builderForValue.build());
        onChanged();
      } else {
        governedAssetsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The list of the analyzed governed assets.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset governed_assets = 1;
     * </code>
     */
    public Builder addGovernedAssets(
        int index,
        com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder
            builderForValue) {
      if (governedAssetsBuilder_ == null) {
        ensureGovernedAssetsIsMutable();
        governedAssets_.add(index, builderForValue.build());
        onChanged();
      } else {
        governedAssetsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The list of the analyzed governed assets.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset governed_assets = 1;
     * </code>
     */
    public Builder addAllGovernedAssets(
        java.lang.Iterable<
                ? extends
                    com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset>
            values) {
      if (governedAssetsBuilder_ == null) {
        ensureGovernedAssetsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, governedAssets_);
        onChanged();
      } else {
        governedAssetsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The list of the analyzed governed assets.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset governed_assets = 1;
     * </code>
     */
    public Builder clearGovernedAssets() {
      if (governedAssetsBuilder_ == null) {
        governedAssets_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        governedAssetsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The list of the analyzed governed assets.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset governed_assets = 1;
     * </code>
     */
    public Builder removeGovernedAssets(int index) {
      if (governedAssetsBuilder_ == null) {
        ensureGovernedAssetsIsMutable();
        governedAssets_.remove(index);
        onChanged();
      } else {
        governedAssetsBuilder_.remove(index);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The list of the analyzed governed assets.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset governed_assets = 1;
     * </code>
     */
    public com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder
        getGovernedAssetsBuilder(int index) {
      return getGovernedAssetsFieldBuilder().getBuilder(index);
    }
    /**
     *
     *
     * <pre>
     * The list of the analyzed governed assets.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset governed_assets = 1;
     * </code>
     */
    public com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAssetOrBuilder
        getGovernedAssetsOrBuilder(int index) {
      if (governedAssetsBuilder_ == null) {
        return governedAssets_.get(index);
      } else {
        return governedAssetsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     *
     *
     * <pre>
     * The list of the analyzed governed assets.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset governed_assets = 1;
     * </code>
     */
    public java.util.List<
            ? extends
                com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse
                    .GovernedAssetOrBuilder>
        getGovernedAssetsOrBuilderList() {
      if (governedAssetsBuilder_ != null) {
        return governedAssetsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(governedAssets_);
      }
    }
    /**
     *
     *
     * <pre>
     * The list of the analyzed governed assets.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset governed_assets = 1;
     * </code>
     */
    public com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder
        addGovernedAssetsBuilder() {
      return getGovernedAssetsFieldBuilder()
          .addBuilder(
              com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset
                  .getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * The list of the analyzed governed assets.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset governed_assets = 1;
     * </code>
     */
    public com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder
        addGovernedAssetsBuilder(int index) {
      return getGovernedAssetsFieldBuilder()
          .addBuilder(
              index,
              com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset
                  .getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * The list of the analyzed governed assets.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset governed_assets = 1;
     * </code>
     */
    public java.util.List<
            com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder>
        getGovernedAssetsBuilderList() {
      return getGovernedAssetsFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset,
            com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.Builder,
            com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAssetOrBuilder>
        getGovernedAssetsFieldBuilder() {
      if (governedAssetsBuilder_ == null) {
        governedAssetsBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset,
                com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset
                    .Builder,
                com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse
                    .GovernedAssetOrBuilder>(
                governedAssets_,
                ((bitField0_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        governedAssets_ = null;
      }
      return governedAssetsBuilder_;
    }

    private com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint constraint_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint,
            com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Builder,
            com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraintOrBuilder>
        constraintBuilder_;
    /**
     *
     *
     * <pre>
     * The definition of the constraint in the request.
     * </pre>
     *
     * <code>.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint constraint = 2;</code>
     *
     * @return Whether the constraint field is set.
     */
    public boolean hasConstraint() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     *
     *
     * <pre>
     * The definition of the constraint in the request.
     * </pre>
     *
     * <code>.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint constraint = 2;</code>
     *
     * @return The constraint.
     */
    public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint getConstraint() {
      if (constraintBuilder_ == null) {
        return constraint_ == null
            ? com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.getDefaultInstance()
            : constraint_;
      } else {
        return constraintBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * The definition of the constraint in the request.
     * </pre>
     *
     * <code>.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint constraint = 2;</code>
     */
    public Builder setConstraint(com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint value) {
      if (constraintBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        constraint_ = value;
      } else {
        constraintBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The definition of the constraint in the request.
     * </pre>
     *
     * <code>.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint constraint = 2;</code>
     */
    public Builder setConstraint(
        com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Builder builderForValue) {
      if (constraintBuilder_ == null) {
        constraint_ = builderForValue.build();
      } else {
        constraintBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The definition of the constraint in the request.
     * </pre>
     *
     * <code>.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint constraint = 2;</code>
     */
    public Builder mergeConstraint(com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint value) {
      if (constraintBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0)
            && constraint_ != null
            && constraint_
                != com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.getDefaultInstance()) {
          getConstraintBuilder().mergeFrom(value);
        } else {
          constraint_ = value;
        }
      } else {
        constraintBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The definition of the constraint in the request.
     * </pre>
     *
     * <code>.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint constraint = 2;</code>
     */
    public Builder clearConstraint() {
      bitField0_ = (bitField0_ & ~0x00000002);
      constraint_ = null;
      if (constraintBuilder_ != null) {
        constraintBuilder_.dispose();
        constraintBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The definition of the constraint in the request.
     * </pre>
     *
     * <code>.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint constraint = 2;</code>
     */
    public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Builder getConstraintBuilder() {
      bitField0_ |= 0x00000002;
      onChanged();
      return getConstraintFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * The definition of the constraint in the request.
     * </pre>
     *
     * <code>.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint constraint = 2;</code>
     */
    public com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraintOrBuilder getConstraintOrBuilder() {
      if (constraintBuilder_ != null) {
        return constraintBuilder_.getMessageOrBuilder();
      } else {
        return constraint_ == null
            ? com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.getDefaultInstance()
            : constraint_;
      }
    }
    /**
     *
     *
     * <pre>
     * The definition of the constraint in the request.
     * </pre>
     *
     * <code>.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint constraint = 2;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint,
            com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Builder,
            com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraintOrBuilder>
        getConstraintFieldBuilder() {
      if (constraintBuilder_ == null) {
        constraintBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint,
                com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.Builder,
                com.google.cloud.asset.v1.AnalyzerOrgPolicyConstraintOrBuilder>(
                getConstraint(), getParentForChildren(), isClean());
        constraint_ = null;
      }
      return constraintBuilder_;
    }

    private java.lang.Object nextPageToken_ = "";
    /**
     *
     *
     * <pre>
     * The page token to fetch the next page for
     * [AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets].
     * </pre>
     *
     * <code>string next_page_token = 3;</code>
     *
     * @return The nextPageToken.
     */
    public java.lang.String getNextPageToken() {
      java.lang.Object ref = nextPageToken_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        nextPageToken_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The page token to fetch the next page for
     * [AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets].
     * </pre>
     *
     * <code>string next_page_token = 3;</code>
     *
     * @return The bytes for nextPageToken.
     */
    public com.google.protobuf.ByteString getNextPageTokenBytes() {
      java.lang.Object ref = nextPageToken_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        nextPageToken_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The page token to fetch the next page for
     * [AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets].
     * </pre>
     *
     * <code>string next_page_token = 3;</code>
     *
     * @param value The nextPageToken to set.
     * @return This builder for chaining.
     */
    public Builder setNextPageToken(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      nextPageToken_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The page token to fetch the next page for
     * [AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets].
     * </pre>
     *
     * <code>string next_page_token = 3;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearNextPageToken() {
      nextPageToken_ = getDefaultInstance().getNextPageToken();
      bitField0_ = (bitField0_ & ~0x00000004);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The page token to fetch the next page for
     * [AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.governed_assets].
     * </pre>
     *
     * <code>string next_page_token = 3;</code>
     *
     * @param value The bytes for nextPageToken to set.
     * @return This builder for chaining.
     */
    public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      nextPageToken_ = value;
      bitField0_ |= 0x00000004;
      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.AnalyzeOrgPolicyGovernedAssetsResponse)
  }

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

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

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

  private static final com.google.protobuf.Parser<AnalyzeOrgPolicyGovernedAssetsResponse> PARSER =
      new com.google.protobuf.AbstractParser<AnalyzeOrgPolicyGovernedAssetsResponse>() {
        @java.lang.Override
        public AnalyzeOrgPolicyGovernedAssetsResponse 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<AnalyzeOrgPolicyGovernedAssetsResponse> parser() {
    return PARSER;
  }

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

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