/*
 * 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>
 * Output configuration for export IAM policy analysis destination.
 * </pre>
 *
 * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisOutputConfig}
 */
public final class IamPolicyAnalysisOutputConfig extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicyAnalysisOutputConfig)
    IamPolicyAnalysisOutputConfigOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use IamPolicyAnalysisOutputConfig.newBuilder() to construct.
  private IamPolicyAnalysisOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private IamPolicyAnalysisOutputConfig() {}

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

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

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

  public interface GcsDestinationOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * Required. The URI of the Cloud Storage object. It's the same URI that is
     * used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
     * Editing Object
     * Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
     * for more information.
     * If the specified Cloud Storage object already exists and there is no
     * [hold](https://cloud.google.com/storage/docs/object-holds), it will be
     * overwritten with the analysis result.
     * </pre>
     *
     * <code>string uri = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return The uri.
     */
    java.lang.String getUri();
    /**
     *
     *
     * <pre>
     * Required. The URI of the Cloud Storage object. It's the same URI that is
     * used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
     * Editing Object
     * Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
     * for more information.
     * If the specified Cloud Storage object already exists and there is no
     * [hold](https://cloud.google.com/storage/docs/object-holds), it will be
     * overwritten with the analysis result.
     * </pre>
     *
     * <code>string uri = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return The bytes for uri.
     */
    com.google.protobuf.ByteString getUriBytes();
  }
  /**
   *
   *
   * <pre>
   * A Cloud Storage location.
   * </pre>
   *
   * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination}
   */
  public static final class GcsDestination extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination)
      GcsDestinationOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use GcsDestination.newBuilder() to construct.
    private GcsDestination(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private GcsDestination() {
      uri_ = "";
    }

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

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

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

    public static final int URI_FIELD_NUMBER = 1;

    @SuppressWarnings("serial")
    private volatile java.lang.Object uri_ = "";
    /**
     *
     *
     * <pre>
     * Required. The URI of the Cloud Storage object. It's the same URI that is
     * used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
     * Editing Object
     * Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
     * for more information.
     * If the specified Cloud Storage object already exists and there is no
     * [hold](https://cloud.google.com/storage/docs/object-holds), it will be
     * overwritten with the analysis result.
     * </pre>
     *
     * <code>string uri = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return The uri.
     */
    @java.lang.Override
    public java.lang.String getUri() {
      java.lang.Object ref = uri_;
      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();
        uri_ = s;
        return s;
      }
    }
    /**
     *
     *
     * <pre>
     * Required. The URI of the Cloud Storage object. It's the same URI that is
     * used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
     * Editing Object
     * Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
     * for more information.
     * If the specified Cloud Storage object already exists and there is no
     * [hold](https://cloud.google.com/storage/docs/object-holds), it will be
     * overwritten with the analysis result.
     * </pre>
     *
     * <code>string uri = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return The bytes for uri.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getUriBytes() {
      java.lang.Object ref = uri_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        uri_ = 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(uri_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_);
      }
      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(uri_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_);
      }
      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.IamPolicyAnalysisOutputConfig.GcsDestination)) {
        return super.equals(obj);
      }
      com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination other =
          (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) obj;

      if (!getUri().equals(other.getUri())) 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) + URI_FIELD_NUMBER;
      hash = (53 * hash) + getUri().hashCode();
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

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

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

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

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

    public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination
        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.IamPolicyAnalysisOutputConfig.GcsDestination 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.IamPolicyAnalysisOutputConfig.GcsDestination 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.IamPolicyAnalysisOutputConfig.GcsDestination prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }

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

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     *
     *
     * <pre>
     * A Cloud Storage location.
     * </pre>
     *
     * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination)
        com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestinationOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.asset.v1.AssetServiceProto
            .internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_GcsDestination_descriptor;
      }

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

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

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

      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        uri_ = "";
        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_IamPolicyAnalysisOutputConfig_GcsDestination_descriptor;
      }

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

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

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

      private void buildPartial0(
          com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.uri_ = uri_;
        }
      }

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

      public Builder mergeFrom(
          com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination other) {
        if (other
            == com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination
                .getDefaultInstance()) return this;
        if (!other.getUri().isEmpty()) {
          uri_ = other.uri_;
          bitField0_ |= 0x00000001;
          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:
                {
                  uri_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000001;
                  break;
                } // case 10
              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 uri_ = "";
      /**
       *
       *
       * <pre>
       * Required. The URI of the Cloud Storage object. It's the same URI that is
       * used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
       * Editing Object
       * Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
       * for more information.
       * If the specified Cloud Storage object already exists and there is no
       * [hold](https://cloud.google.com/storage/docs/object-holds), it will be
       * overwritten with the analysis result.
       * </pre>
       *
       * <code>string uri = 1 [(.google.api.field_behavior) = REQUIRED];</code>
       *
       * @return The uri.
       */
      public java.lang.String getUri() {
        java.lang.Object ref = uri_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          uri_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * Required. The URI of the Cloud Storage object. It's the same URI that is
       * used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
       * Editing Object
       * Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
       * for more information.
       * If the specified Cloud Storage object already exists and there is no
       * [hold](https://cloud.google.com/storage/docs/object-holds), it will be
       * overwritten with the analysis result.
       * </pre>
       *
       * <code>string uri = 1 [(.google.api.field_behavior) = REQUIRED];</code>
       *
       * @return The bytes for uri.
       */
      public com.google.protobuf.ByteString getUriBytes() {
        java.lang.Object ref = uri_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          uri_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * Required. The URI of the Cloud Storage object. It's the same URI that is
       * used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
       * Editing Object
       * Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
       * for more information.
       * If the specified Cloud Storage object already exists and there is no
       * [hold](https://cloud.google.com/storage/docs/object-holds), it will be
       * overwritten with the analysis result.
       * </pre>
       *
       * <code>string uri = 1 [(.google.api.field_behavior) = REQUIRED];</code>
       *
       * @param value The uri to set.
       * @return This builder for chaining.
       */
      public Builder setUri(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        uri_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. The URI of the Cloud Storage object. It's the same URI that is
       * used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
       * Editing Object
       * Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
       * for more information.
       * If the specified Cloud Storage object already exists and there is no
       * [hold](https://cloud.google.com/storage/docs/object-holds), it will be
       * overwritten with the analysis result.
       * </pre>
       *
       * <code>string uri = 1 [(.google.api.field_behavior) = REQUIRED];</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearUri() {
        uri_ = getDefaultInstance().getUri();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. The URI of the Cloud Storage object. It's the same URI that is
       * used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
       * Editing Object
       * Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
       * for more information.
       * If the specified Cloud Storage object already exists and there is no
       * [hold](https://cloud.google.com/storage/docs/object-holds), it will be
       * overwritten with the analysis result.
       * </pre>
       *
       * <code>string uri = 1 [(.google.api.field_behavior) = REQUIRED];</code>
       *
       * @param value The bytes for uri to set.
       * @return This builder for chaining.
       */
      public Builder setUriBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        uri_ = value;
        bitField0_ |= 0x00000001;
        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.IamPolicyAnalysisOutputConfig.GcsDestination)
    }

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

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

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

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

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

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

  public interface BigQueryDestinationOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * Required. The BigQuery dataset in format
     * "projects/projectId/datasets/datasetId", to which the analysis results
     * should be exported. If this dataset does not exist, the export call will
     * return an INVALID_ARGUMENT error.
     * </pre>
     *
     * <code>string dataset = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return The dataset.
     */
    java.lang.String getDataset();
    /**
     *
     *
     * <pre>
     * Required. The BigQuery dataset in format
     * "projects/projectId/datasets/datasetId", to which the analysis results
     * should be exported. If this dataset does not exist, the export call will
     * return an INVALID_ARGUMENT error.
     * </pre>
     *
     * <code>string dataset = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return The bytes for dataset.
     */
    com.google.protobuf.ByteString getDatasetBytes();

    /**
     *
     *
     * <pre>
     * Required. The prefix of the BigQuery tables to which the analysis results
     * will be written. Tables will be created based on this table_prefix if not
     * exist:
     * * &lt;table_prefix&gt;_analysis table will contain export operation's metadata.
     * * &lt;table_prefix&gt;_analysis_result will contain all the
     *   [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult].
     * When [partition_key] is specified, both tables will be partitioned based
     * on the [partition_key].
     * </pre>
     *
     * <code>string table_prefix = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return The tablePrefix.
     */
    java.lang.String getTablePrefix();
    /**
     *
     *
     * <pre>
     * Required. The prefix of the BigQuery tables to which the analysis results
     * will be written. Tables will be created based on this table_prefix if not
     * exist:
     * * &lt;table_prefix&gt;_analysis table will contain export operation's metadata.
     * * &lt;table_prefix&gt;_analysis_result will contain all the
     *   [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult].
     * When [partition_key] is specified, both tables will be partitioned based
     * on the [partition_key].
     * </pre>
     *
     * <code>string table_prefix = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return The bytes for tablePrefix.
     */
    com.google.protobuf.ByteString getTablePrefixBytes();

    /**
     *
     *
     * <pre>
     * The partition key for BigQuery partitioned table.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3;
     * </code>
     *
     * @return The enum numeric value on the wire for partitionKey.
     */
    int getPartitionKeyValue();
    /**
     *
     *
     * <pre>
     * The partition key for BigQuery partitioned table.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3;
     * </code>
     *
     * @return The partitionKey.
     */
    com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey
        getPartitionKey();

    /**
     *
     *
     * <pre>
     * Optional. Specifies the action that occurs if the destination table or
     * partition already exists. The following values are supported:
     * * WRITE_TRUNCATE: If the table or partition already exists, BigQuery
     * overwrites the entire table or all the partitions data.
     * * WRITE_APPEND: If the table or partition already exists, BigQuery
     * appends the data to the table or the latest partition.
     * * WRITE_EMPTY: If the table already exists and contains data, an error is
     * returned.
     * The default value is WRITE_APPEND. Each action is atomic and only occurs
     * if BigQuery is able to complete the job successfully. Details are at
     * https://cloud.google.com/bigquery/docs/loading-data-local#appending_to_or_overwriting_a_table_using_a_local_file.
     * </pre>
     *
     * <code>string write_disposition = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The writeDisposition.
     */
    java.lang.String getWriteDisposition();
    /**
     *
     *
     * <pre>
     * Optional. Specifies the action that occurs if the destination table or
     * partition already exists. The following values are supported:
     * * WRITE_TRUNCATE: If the table or partition already exists, BigQuery
     * overwrites the entire table or all the partitions data.
     * * WRITE_APPEND: If the table or partition already exists, BigQuery
     * appends the data to the table or the latest partition.
     * * WRITE_EMPTY: If the table already exists and contains data, an error is
     * returned.
     * The default value is WRITE_APPEND. Each action is atomic and only occurs
     * if BigQuery is able to complete the job successfully. Details are at
     * https://cloud.google.com/bigquery/docs/loading-data-local#appending_to_or_overwriting_a_table_using_a_local_file.
     * </pre>
     *
     * <code>string write_disposition = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The bytes for writeDisposition.
     */
    com.google.protobuf.ByteString getWriteDispositionBytes();
  }
  /**
   *
   *
   * <pre>
   * A BigQuery destination.
   * </pre>
   *
   * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination}
   */
  public static final class BigQueryDestination extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination)
      BigQueryDestinationOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use BigQueryDestination.newBuilder() to construct.
    private BigQueryDestination(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private BigQueryDestination() {
      dataset_ = "";
      tablePrefix_ = "";
      partitionKey_ = 0;
      writeDisposition_ = "";
    }

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

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

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

    /**
     *
     *
     * <pre>
     * This enum determines the partition key column for the bigquery tables.
     * Partitioning can improve query performance and reduce query cost by
     * filtering partitions. Refer to
     * https://cloud.google.com/bigquery/docs/partitioned-tables for details.
     * </pre>
     *
     * Protobuf enum {@code
     * google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey}
     */
    public enum PartitionKey implements com.google.protobuf.ProtocolMessageEnum {
      /**
       *
       *
       * <pre>
       * Unspecified partition key. Tables won't be partitioned using this
       * option.
       * </pre>
       *
       * <code>PARTITION_KEY_UNSPECIFIED = 0;</code>
       */
      PARTITION_KEY_UNSPECIFIED(0),
      /**
       *
       *
       * <pre>
       * The time when the request is received. If specified as partition key,
       * the result table(s) is partitoned by the RequestTime column, an
       * additional timestamp column representing when the request was received.
       * </pre>
       *
       * <code>REQUEST_TIME = 1;</code>
       */
      REQUEST_TIME(1),
      UNRECOGNIZED(-1),
      ;

      /**
       *
       *
       * <pre>
       * Unspecified partition key. Tables won't be partitioned using this
       * option.
       * </pre>
       *
       * <code>PARTITION_KEY_UNSPECIFIED = 0;</code>
       */
      public static final int PARTITION_KEY_UNSPECIFIED_VALUE = 0;
      /**
       *
       *
       * <pre>
       * The time when the request is received. If specified as partition key,
       * the result table(s) is partitoned by the RequestTime column, an
       * additional timestamp column representing when the request was received.
       * </pre>
       *
       * <code>REQUEST_TIME = 1;</code>
       */
      public static final int REQUEST_TIME_VALUE = 1;

      public final int getNumber() {
        if (this == UNRECOGNIZED) {
          throw new java.lang.IllegalArgumentException(
              "Can't get the number of an unknown enum value.");
        }
        return value;
      }

      /**
       * @param value The numeric wire value of the corresponding enum entry.
       * @return The enum associated with the given numeric wire value.
       * @deprecated Use {@link #forNumber(int)} instead.
       */
      @java.lang.Deprecated
      public static PartitionKey valueOf(int value) {
        return forNumber(value);
      }

      /**
       * @param value The numeric wire value of the corresponding enum entry.
       * @return The enum associated with the given numeric wire value.
       */
      public static PartitionKey forNumber(int value) {
        switch (value) {
          case 0:
            return PARTITION_KEY_UNSPECIFIED;
          case 1:
            return REQUEST_TIME;
          default:
            return null;
        }
      }

      public static com.google.protobuf.Internal.EnumLiteMap<PartitionKey> internalGetValueMap() {
        return internalValueMap;
      }

      private static final com.google.protobuf.Internal.EnumLiteMap<PartitionKey> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap<PartitionKey>() {
            public PartitionKey findValueByNumber(int number) {
              return PartitionKey.forNumber(number);
            }
          };

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
        if (this == UNRECOGNIZED) {
          throw new java.lang.IllegalStateException(
              "Can't get the descriptor of an unrecognized enum value.");
        }
        return getDescriptor().getValues().get(ordinal());
      }

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
        return getDescriptor();
      }

      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
        return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination
            .getDescriptor()
            .getEnumTypes()
            .get(0);
      }

      private static final PartitionKey[] VALUES = values();

      public static PartitionKey valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
        if (desc.getType() != getDescriptor()) {
          throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
        }
        if (desc.getIndex() == -1) {
          return UNRECOGNIZED;
        }
        return VALUES[desc.getIndex()];
      }

      private final int value;

      private PartitionKey(int value) {
        this.value = value;
      }

      // @@protoc_insertion_point(enum_scope:google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey)
    }

    public static final int DATASET_FIELD_NUMBER = 1;

    @SuppressWarnings("serial")
    private volatile java.lang.Object dataset_ = "";
    /**
     *
     *
     * <pre>
     * Required. The BigQuery dataset in format
     * "projects/projectId/datasets/datasetId", to which the analysis results
     * should be exported. If this dataset does not exist, the export call will
     * return an INVALID_ARGUMENT error.
     * </pre>
     *
     * <code>string dataset = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return The dataset.
     */
    @java.lang.Override
    public java.lang.String getDataset() {
      java.lang.Object ref = dataset_;
      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();
        dataset_ = s;
        return s;
      }
    }
    /**
     *
     *
     * <pre>
     * Required. The BigQuery dataset in format
     * "projects/projectId/datasets/datasetId", to which the analysis results
     * should be exported. If this dataset does not exist, the export call will
     * return an INVALID_ARGUMENT error.
     * </pre>
     *
     * <code>string dataset = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return The bytes for dataset.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getDatasetBytes() {
      java.lang.Object ref = dataset_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        dataset_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int TABLE_PREFIX_FIELD_NUMBER = 2;

    @SuppressWarnings("serial")
    private volatile java.lang.Object tablePrefix_ = "";
    /**
     *
     *
     * <pre>
     * Required. The prefix of the BigQuery tables to which the analysis results
     * will be written. Tables will be created based on this table_prefix if not
     * exist:
     * * &lt;table_prefix&gt;_analysis table will contain export operation's metadata.
     * * &lt;table_prefix&gt;_analysis_result will contain all the
     *   [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult].
     * When [partition_key] is specified, both tables will be partitioned based
     * on the [partition_key].
     * </pre>
     *
     * <code>string table_prefix = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return The tablePrefix.
     */
    @java.lang.Override
    public java.lang.String getTablePrefix() {
      java.lang.Object ref = tablePrefix_;
      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();
        tablePrefix_ = s;
        return s;
      }
    }
    /**
     *
     *
     * <pre>
     * Required. The prefix of the BigQuery tables to which the analysis results
     * will be written. Tables will be created based on this table_prefix if not
     * exist:
     * * &lt;table_prefix&gt;_analysis table will contain export operation's metadata.
     * * &lt;table_prefix&gt;_analysis_result will contain all the
     *   [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult].
     * When [partition_key] is specified, both tables will be partitioned based
     * on the [partition_key].
     * </pre>
     *
     * <code>string table_prefix = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return The bytes for tablePrefix.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getTablePrefixBytes() {
      java.lang.Object ref = tablePrefix_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        tablePrefix_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int PARTITION_KEY_FIELD_NUMBER = 3;
    private int partitionKey_ = 0;
    /**
     *
     *
     * <pre>
     * The partition key for BigQuery partitioned table.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3;
     * </code>
     *
     * @return The enum numeric value on the wire for partitionKey.
     */
    @java.lang.Override
    public int getPartitionKeyValue() {
      return partitionKey_;
    }
    /**
     *
     *
     * <pre>
     * The partition key for BigQuery partitioned table.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3;
     * </code>
     *
     * @return The partitionKey.
     */
    @java.lang.Override
    public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey
        getPartitionKey() {
      com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey
          result =
              com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination
                  .PartitionKey.forNumber(partitionKey_);
      return result == null
          ? com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey
              .UNRECOGNIZED
          : result;
    }

    public static final int WRITE_DISPOSITION_FIELD_NUMBER = 4;

    @SuppressWarnings("serial")
    private volatile java.lang.Object writeDisposition_ = "";
    /**
     *
     *
     * <pre>
     * Optional. Specifies the action that occurs if the destination table or
     * partition already exists. The following values are supported:
     * * WRITE_TRUNCATE: If the table or partition already exists, BigQuery
     * overwrites the entire table or all the partitions data.
     * * WRITE_APPEND: If the table or partition already exists, BigQuery
     * appends the data to the table or the latest partition.
     * * WRITE_EMPTY: If the table already exists and contains data, an error is
     * returned.
     * The default value is WRITE_APPEND. Each action is atomic and only occurs
     * if BigQuery is able to complete the job successfully. Details are at
     * https://cloud.google.com/bigquery/docs/loading-data-local#appending_to_or_overwriting_a_table_using_a_local_file.
     * </pre>
     *
     * <code>string write_disposition = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The writeDisposition.
     */
    @java.lang.Override
    public java.lang.String getWriteDisposition() {
      java.lang.Object ref = writeDisposition_;
      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();
        writeDisposition_ = s;
        return s;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional. Specifies the action that occurs if the destination table or
     * partition already exists. The following values are supported:
     * * WRITE_TRUNCATE: If the table or partition already exists, BigQuery
     * overwrites the entire table or all the partitions data.
     * * WRITE_APPEND: If the table or partition already exists, BigQuery
     * appends the data to the table or the latest partition.
     * * WRITE_EMPTY: If the table already exists and contains data, an error is
     * returned.
     * The default value is WRITE_APPEND. Each action is atomic and only occurs
     * if BigQuery is able to complete the job successfully. Details are at
     * https://cloud.google.com/bigquery/docs/loading-data-local#appending_to_or_overwriting_a_table_using_a_local_file.
     * </pre>
     *
     * <code>string write_disposition = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The bytes for writeDisposition.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getWriteDispositionBytes() {
      java.lang.Object ref = writeDisposition_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        writeDisposition_ = 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(dataset_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataset_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tablePrefix_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tablePrefix_);
      }
      if (partitionKey_
          != com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination
              .PartitionKey.PARTITION_KEY_UNSPECIFIED
              .getNumber()) {
        output.writeEnum(3, partitionKey_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(writeDisposition_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 4, writeDisposition_);
      }
      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(dataset_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataset_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tablePrefix_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tablePrefix_);
      }
      if (partitionKey_
          != com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination
              .PartitionKey.PARTITION_KEY_UNSPECIFIED
              .getNumber()) {
        size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, partitionKey_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(writeDisposition_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, writeDisposition_);
      }
      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.IamPolicyAnalysisOutputConfig.BigQueryDestination)) {
        return super.equals(obj);
      }
      com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination other =
          (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination) obj;

      if (!getDataset().equals(other.getDataset())) return false;
      if (!getTablePrefix().equals(other.getTablePrefix())) return false;
      if (partitionKey_ != other.partitionKey_) return false;
      if (!getWriteDisposition().equals(other.getWriteDisposition())) 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) + DATASET_FIELD_NUMBER;
      hash = (53 * hash) + getDataset().hashCode();
      hash = (37 * hash) + TABLE_PREFIX_FIELD_NUMBER;
      hash = (53 * hash) + getTablePrefix().hashCode();
      hash = (37 * hash) + PARTITION_KEY_FIELD_NUMBER;
      hash = (53 * hash) + partitionKey_;
      hash = (37 * hash) + WRITE_DISPOSITION_FIELD_NUMBER;
      hash = (53 * hash) + getWriteDisposition().hashCode();
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

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

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

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

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

    public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination
        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.IamPolicyAnalysisOutputConfig.BigQueryDestination
        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.IamPolicyAnalysisOutputConfig.BigQueryDestination
        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.IamPolicyAnalysisOutputConfig.BigQueryDestination prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }

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

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     *
     *
     * <pre>
     * A BigQuery destination.
     * </pre>
     *
     * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination)
        com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestinationOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.asset.v1.AssetServiceProto
            .internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_BigQueryDestination_descriptor;
      }

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

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

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

      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        dataset_ = "";
        tablePrefix_ = "";
        partitionKey_ = 0;
        writeDisposition_ = "";
        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_IamPolicyAnalysisOutputConfig_BigQueryDestination_descriptor;
      }

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

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

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

      private void buildPartial0(
          com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.dataset_ = dataset_;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.tablePrefix_ = tablePrefix_;
        }
        if (((from_bitField0_ & 0x00000004) != 0)) {
          result.partitionKey_ = partitionKey_;
        }
        if (((from_bitField0_ & 0x00000008) != 0)) {
          result.writeDisposition_ = writeDisposition_;
        }
      }

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

      public Builder mergeFrom(
          com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination other) {
        if (other
            == com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination
                .getDefaultInstance()) return this;
        if (!other.getDataset().isEmpty()) {
          dataset_ = other.dataset_;
          bitField0_ |= 0x00000001;
          onChanged();
        }
        if (!other.getTablePrefix().isEmpty()) {
          tablePrefix_ = other.tablePrefix_;
          bitField0_ |= 0x00000002;
          onChanged();
        }
        if (other.partitionKey_ != 0) {
          setPartitionKeyValue(other.getPartitionKeyValue());
        }
        if (!other.getWriteDisposition().isEmpty()) {
          writeDisposition_ = other.writeDisposition_;
          bitField0_ |= 0x00000008;
          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:
                {
                  dataset_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000001;
                  break;
                } // case 10
              case 18:
                {
                  tablePrefix_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000002;
                  break;
                } // case 18
              case 24:
                {
                  partitionKey_ = input.readEnum();
                  bitField0_ |= 0x00000004;
                  break;
                } // case 24
              case 34:
                {
                  writeDisposition_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000008;
                  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 bitField0_;

      private java.lang.Object dataset_ = "";
      /**
       *
       *
       * <pre>
       * Required. The BigQuery dataset in format
       * "projects/projectId/datasets/datasetId", to which the analysis results
       * should be exported. If this dataset does not exist, the export call will
       * return an INVALID_ARGUMENT error.
       * </pre>
       *
       * <code>string dataset = 1 [(.google.api.field_behavior) = REQUIRED];</code>
       *
       * @return The dataset.
       */
      public java.lang.String getDataset() {
        java.lang.Object ref = dataset_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          dataset_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * Required. The BigQuery dataset in format
       * "projects/projectId/datasets/datasetId", to which the analysis results
       * should be exported. If this dataset does not exist, the export call will
       * return an INVALID_ARGUMENT error.
       * </pre>
       *
       * <code>string dataset = 1 [(.google.api.field_behavior) = REQUIRED];</code>
       *
       * @return The bytes for dataset.
       */
      public com.google.protobuf.ByteString getDatasetBytes() {
        java.lang.Object ref = dataset_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          dataset_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * Required. The BigQuery dataset in format
       * "projects/projectId/datasets/datasetId", to which the analysis results
       * should be exported. If this dataset does not exist, the export call will
       * return an INVALID_ARGUMENT error.
       * </pre>
       *
       * <code>string dataset = 1 [(.google.api.field_behavior) = REQUIRED];</code>
       *
       * @param value The dataset to set.
       * @return This builder for chaining.
       */
      public Builder setDataset(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        dataset_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. The BigQuery dataset in format
       * "projects/projectId/datasets/datasetId", to which the analysis results
       * should be exported. If this dataset does not exist, the export call will
       * return an INVALID_ARGUMENT error.
       * </pre>
       *
       * <code>string dataset = 1 [(.google.api.field_behavior) = REQUIRED];</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearDataset() {
        dataset_ = getDefaultInstance().getDataset();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. The BigQuery dataset in format
       * "projects/projectId/datasets/datasetId", to which the analysis results
       * should be exported. If this dataset does not exist, the export call will
       * return an INVALID_ARGUMENT error.
       * </pre>
       *
       * <code>string dataset = 1 [(.google.api.field_behavior) = REQUIRED];</code>
       *
       * @param value The bytes for dataset to set.
       * @return This builder for chaining.
       */
      public Builder setDatasetBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        dataset_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }

      private java.lang.Object tablePrefix_ = "";
      /**
       *
       *
       * <pre>
       * Required. The prefix of the BigQuery tables to which the analysis results
       * will be written. Tables will be created based on this table_prefix if not
       * exist:
       * * &lt;table_prefix&gt;_analysis table will contain export operation's metadata.
       * * &lt;table_prefix&gt;_analysis_result will contain all the
       *   [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult].
       * When [partition_key] is specified, both tables will be partitioned based
       * on the [partition_key].
       * </pre>
       *
       * <code>string table_prefix = 2 [(.google.api.field_behavior) = REQUIRED];</code>
       *
       * @return The tablePrefix.
       */
      public java.lang.String getTablePrefix() {
        java.lang.Object ref = tablePrefix_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          tablePrefix_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * Required. The prefix of the BigQuery tables to which the analysis results
       * will be written. Tables will be created based on this table_prefix if not
       * exist:
       * * &lt;table_prefix&gt;_analysis table will contain export operation's metadata.
       * * &lt;table_prefix&gt;_analysis_result will contain all the
       *   [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult].
       * When [partition_key] is specified, both tables will be partitioned based
       * on the [partition_key].
       * </pre>
       *
       * <code>string table_prefix = 2 [(.google.api.field_behavior) = REQUIRED];</code>
       *
       * @return The bytes for tablePrefix.
       */
      public com.google.protobuf.ByteString getTablePrefixBytes() {
        java.lang.Object ref = tablePrefix_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          tablePrefix_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * Required. The prefix of the BigQuery tables to which the analysis results
       * will be written. Tables will be created based on this table_prefix if not
       * exist:
       * * &lt;table_prefix&gt;_analysis table will contain export operation's metadata.
       * * &lt;table_prefix&gt;_analysis_result will contain all the
       *   [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult].
       * When [partition_key] is specified, both tables will be partitioned based
       * on the [partition_key].
       * </pre>
       *
       * <code>string table_prefix = 2 [(.google.api.field_behavior) = REQUIRED];</code>
       *
       * @param value The tablePrefix to set.
       * @return This builder for chaining.
       */
      public Builder setTablePrefix(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        tablePrefix_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. The prefix of the BigQuery tables to which the analysis results
       * will be written. Tables will be created based on this table_prefix if not
       * exist:
       * * &lt;table_prefix&gt;_analysis table will contain export operation's metadata.
       * * &lt;table_prefix&gt;_analysis_result will contain all the
       *   [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult].
       * When [partition_key] is specified, both tables will be partitioned based
       * on the [partition_key].
       * </pre>
       *
       * <code>string table_prefix = 2 [(.google.api.field_behavior) = REQUIRED];</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearTablePrefix() {
        tablePrefix_ = getDefaultInstance().getTablePrefix();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. The prefix of the BigQuery tables to which the analysis results
       * will be written. Tables will be created based on this table_prefix if not
       * exist:
       * * &lt;table_prefix&gt;_analysis table will contain export operation's metadata.
       * * &lt;table_prefix&gt;_analysis_result will contain all the
       *   [IamPolicyAnalysisResult][google.cloud.asset.v1.IamPolicyAnalysisResult].
       * When [partition_key] is specified, both tables will be partitioned based
       * on the [partition_key].
       * </pre>
       *
       * <code>string table_prefix = 2 [(.google.api.field_behavior) = REQUIRED];</code>
       *
       * @param value The bytes for tablePrefix to set.
       * @return This builder for chaining.
       */
      public Builder setTablePrefixBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        tablePrefix_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }

      private int partitionKey_ = 0;
      /**
       *
       *
       * <pre>
       * The partition key for BigQuery partitioned table.
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3;
       * </code>
       *
       * @return The enum numeric value on the wire for partitionKey.
       */
      @java.lang.Override
      public int getPartitionKeyValue() {
        return partitionKey_;
      }
      /**
       *
       *
       * <pre>
       * The partition key for BigQuery partitioned table.
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3;
       * </code>
       *
       * @param value The enum numeric value on the wire for partitionKey to set.
       * @return This builder for chaining.
       */
      public Builder setPartitionKeyValue(int value) {
        partitionKey_ = value;
        bitField0_ |= 0x00000004;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The partition key for BigQuery partitioned table.
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3;
       * </code>
       *
       * @return The partitionKey.
       */
      @java.lang.Override
      public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination
              .PartitionKey
          getPartitionKey() {
        com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey
            result =
                com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination
                    .PartitionKey.forNumber(partitionKey_);
        return result == null
            ? com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination
                .PartitionKey.UNRECOGNIZED
            : result;
      }
      /**
       *
       *
       * <pre>
       * The partition key for BigQuery partitioned table.
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3;
       * </code>
       *
       * @param value The partitionKey to set.
       * @return This builder for chaining.
       */
      public Builder setPartitionKey(
          com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey
              value) {
        if (value == null) {
          throw new NullPointerException();
        }
        bitField0_ |= 0x00000004;
        partitionKey_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * The partition key for BigQuery partitioned table.
       * </pre>
       *
       * <code>
       * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey partition_key = 3;
       * </code>
       *
       * @return This builder for chaining.
       */
      public Builder clearPartitionKey() {
        bitField0_ = (bitField0_ & ~0x00000004);
        partitionKey_ = 0;
        onChanged();
        return this;
      }

      private java.lang.Object writeDisposition_ = "";
      /**
       *
       *
       * <pre>
       * Optional. Specifies the action that occurs if the destination table or
       * partition already exists. The following values are supported:
       * * WRITE_TRUNCATE: If the table or partition already exists, BigQuery
       * overwrites the entire table or all the partitions data.
       * * WRITE_APPEND: If the table or partition already exists, BigQuery
       * appends the data to the table or the latest partition.
       * * WRITE_EMPTY: If the table already exists and contains data, an error is
       * returned.
       * The default value is WRITE_APPEND. Each action is atomic and only occurs
       * if BigQuery is able to complete the job successfully. Details are at
       * https://cloud.google.com/bigquery/docs/loading-data-local#appending_to_or_overwriting_a_table_using_a_local_file.
       * </pre>
       *
       * <code>string write_disposition = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
       *
       * @return The writeDisposition.
       */
      public java.lang.String getWriteDisposition() {
        java.lang.Object ref = writeDisposition_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          writeDisposition_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * Optional. Specifies the action that occurs if the destination table or
       * partition already exists. The following values are supported:
       * * WRITE_TRUNCATE: If the table or partition already exists, BigQuery
       * overwrites the entire table or all the partitions data.
       * * WRITE_APPEND: If the table or partition already exists, BigQuery
       * appends the data to the table or the latest partition.
       * * WRITE_EMPTY: If the table already exists and contains data, an error is
       * returned.
       * The default value is WRITE_APPEND. Each action is atomic and only occurs
       * if BigQuery is able to complete the job successfully. Details are at
       * https://cloud.google.com/bigquery/docs/loading-data-local#appending_to_or_overwriting_a_table_using_a_local_file.
       * </pre>
       *
       * <code>string write_disposition = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
       *
       * @return The bytes for writeDisposition.
       */
      public com.google.protobuf.ByteString getWriteDispositionBytes() {
        java.lang.Object ref = writeDisposition_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          writeDisposition_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * Optional. Specifies the action that occurs if the destination table or
       * partition already exists. The following values are supported:
       * * WRITE_TRUNCATE: If the table or partition already exists, BigQuery
       * overwrites the entire table or all the partitions data.
       * * WRITE_APPEND: If the table or partition already exists, BigQuery
       * appends the data to the table or the latest partition.
       * * WRITE_EMPTY: If the table already exists and contains data, an error is
       * returned.
       * The default value is WRITE_APPEND. Each action is atomic and only occurs
       * if BigQuery is able to complete the job successfully. Details are at
       * https://cloud.google.com/bigquery/docs/loading-data-local#appending_to_or_overwriting_a_table_using_a_local_file.
       * </pre>
       *
       * <code>string write_disposition = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
       *
       * @param value The writeDisposition to set.
       * @return This builder for chaining.
       */
      public Builder setWriteDisposition(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        writeDisposition_ = value;
        bitField0_ |= 0x00000008;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional. Specifies the action that occurs if the destination table or
       * partition already exists. The following values are supported:
       * * WRITE_TRUNCATE: If the table or partition already exists, BigQuery
       * overwrites the entire table or all the partitions data.
       * * WRITE_APPEND: If the table or partition already exists, BigQuery
       * appends the data to the table or the latest partition.
       * * WRITE_EMPTY: If the table already exists and contains data, an error is
       * returned.
       * The default value is WRITE_APPEND. Each action is atomic and only occurs
       * if BigQuery is able to complete the job successfully. Details are at
       * https://cloud.google.com/bigquery/docs/loading-data-local#appending_to_or_overwriting_a_table_using_a_local_file.
       * </pre>
       *
       * <code>string write_disposition = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearWriteDisposition() {
        writeDisposition_ = getDefaultInstance().getWriteDisposition();
        bitField0_ = (bitField0_ & ~0x00000008);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional. Specifies the action that occurs if the destination table or
       * partition already exists. The following values are supported:
       * * WRITE_TRUNCATE: If the table or partition already exists, BigQuery
       * overwrites the entire table or all the partitions data.
       * * WRITE_APPEND: If the table or partition already exists, BigQuery
       * appends the data to the table or the latest partition.
       * * WRITE_EMPTY: If the table already exists and contains data, an error is
       * returned.
       * The default value is WRITE_APPEND. Each action is atomic and only occurs
       * if BigQuery is able to complete the job successfully. Details are at
       * https://cloud.google.com/bigquery/docs/loading-data-local#appending_to_or_overwriting_a_table_using_a_local_file.
       * </pre>
       *
       * <code>string write_disposition = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
       *
       * @param value The bytes for writeDisposition to set.
       * @return This builder for chaining.
       */
      public Builder setWriteDispositionBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        writeDisposition_ = value;
        bitField0_ |= 0x00000008;
        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.IamPolicyAnalysisOutputConfig.BigQueryDestination)
    }

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

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

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

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

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

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

  private int destinationCase_ = 0;
  private java.lang.Object destination_;

  public enum DestinationCase
      implements
          com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    GCS_DESTINATION(1),
    BIGQUERY_DESTINATION(2),
    DESTINATION_NOT_SET(0);
    private final int value;

    private DestinationCase(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 DestinationCase valueOf(int value) {
      return forNumber(value);
    }

    public static DestinationCase forNumber(int value) {
      switch (value) {
        case 1:
          return GCS_DESTINATION;
        case 2:
          return BIGQUERY_DESTINATION;
        case 0:
          return DESTINATION_NOT_SET;
        default:
          return null;
      }
    }

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

  public DestinationCase getDestinationCase() {
    return DestinationCase.forNumber(destinationCase_);
  }

  public static final int GCS_DESTINATION_FIELD_NUMBER = 1;
  /**
   *
   *
   * <pre>
   * Destination on Cloud Storage.
   * </pre>
   *
   * <code>.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1;
   * </code>
   *
   * @return Whether the gcsDestination field is set.
   */
  @java.lang.Override
  public boolean hasGcsDestination() {
    return destinationCase_ == 1;
  }
  /**
   *
   *
   * <pre>
   * Destination on Cloud Storage.
   * </pre>
   *
   * <code>.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1;
   * </code>
   *
   * @return The gcsDestination.
   */
  @java.lang.Override
  public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination
      getGcsDestination() {
    if (destinationCase_ == 1) {
      return (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) destination_;
    }
    return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination
        .getDefaultInstance();
  }
  /**
   *
   *
   * <pre>
   * Destination on Cloud Storage.
   * </pre>
   *
   * <code>.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1;
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestinationOrBuilder
      getGcsDestinationOrBuilder() {
    if (destinationCase_ == 1) {
      return (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) destination_;
    }
    return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination
        .getDefaultInstance();
  }

  public static final int BIGQUERY_DESTINATION_FIELD_NUMBER = 2;
  /**
   *
   *
   * <pre>
   * Destination on BigQuery.
   * </pre>
   *
   * <code>
   * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2;
   * </code>
   *
   * @return Whether the bigqueryDestination field is set.
   */
  @java.lang.Override
  public boolean hasBigqueryDestination() {
    return destinationCase_ == 2;
  }
  /**
   *
   *
   * <pre>
   * Destination on BigQuery.
   * </pre>
   *
   * <code>
   * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2;
   * </code>
   *
   * @return The bigqueryDestination.
   */
  @java.lang.Override
  public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination
      getBigqueryDestination() {
    if (destinationCase_ == 2) {
      return (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination)
          destination_;
    }
    return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination
        .getDefaultInstance();
  }
  /**
   *
   *
   * <pre>
   * Destination on BigQuery.
   * </pre>
   *
   * <code>
   * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2;
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestinationOrBuilder
      getBigqueryDestinationOrBuilder() {
    if (destinationCase_ == 2) {
      return (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination)
          destination_;
    }
    return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination
        .getDefaultInstance();
  }

  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 (destinationCase_ == 1) {
      output.writeMessage(
          1, (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination) destination_);
    }
    if (destinationCase_ == 2) {
      output.writeMessage(
          2,
          (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination)
              destination_);
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (destinationCase_ == 1) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              1,
              (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination)
                  destination_);
    }
    if (destinationCase_ == 2) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              2,
              (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination)
                  destination_);
    }
    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.IamPolicyAnalysisOutputConfig)) {
      return super.equals(obj);
    }
    com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig other =
        (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig) obj;

    if (!getDestinationCase().equals(other.getDestinationCase())) return false;
    switch (destinationCase_) {
      case 1:
        if (!getGcsDestination().equals(other.getGcsDestination())) return false;
        break;
      case 2:
        if (!getBigqueryDestination().equals(other.getBigqueryDestination())) 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();
    switch (destinationCase_) {
      case 1:
        hash = (37 * hash) + GCS_DESTINATION_FIELD_NUMBER;
        hash = (53 * hash) + getGcsDestination().hashCode();
        break;
      case 2:
        hash = (37 * hash) + BIGQUERY_DESTINATION_FIELD_NUMBER;
        hash = (53 * hash) + getBigqueryDestination().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

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

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

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

  public static com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig 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.IamPolicyAnalysisOutputConfig 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.IamPolicyAnalysisOutputConfig 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.IamPolicyAnalysisOutputConfig 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>
   * Output configuration for export IAM policy analysis destination.
   * </pre>
   *
   * Protobuf type {@code google.cloud.asset.v1.IamPolicyAnalysisOutputConfig}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.IamPolicyAnalysisOutputConfig)
      com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfigOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.asset.v1.AssetServiceProto
          .internal_static_google_cloud_asset_v1_IamPolicyAnalysisOutputConfig_descriptor;
    }

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

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

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

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      if (gcsDestinationBuilder_ != null) {
        gcsDestinationBuilder_.clear();
      }
      if (bigqueryDestinationBuilder_ != null) {
        bigqueryDestinationBuilder_.clear();
      }
      destinationCase_ = 0;
      destination_ = 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_IamPolicyAnalysisOutputConfig_descriptor;
    }

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

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

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

    private void buildPartial0(com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig result) {
      int from_bitField0_ = bitField0_;
    }

    private void buildPartialOneofs(
        com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig result) {
      result.destinationCase_ = destinationCase_;
      result.destination_ = this.destination_;
      if (destinationCase_ == 1 && gcsDestinationBuilder_ != null) {
        result.destination_ = gcsDestinationBuilder_.build();
      }
      if (destinationCase_ == 2 && bigqueryDestinationBuilder_ != null) {
        result.destination_ = bigqueryDestinationBuilder_.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.IamPolicyAnalysisOutputConfig) {
        return mergeFrom((com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig other) {
      if (other == com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.getDefaultInstance())
        return this;
      switch (other.getDestinationCase()) {
        case GCS_DESTINATION:
          {
            mergeGcsDestination(other.getGcsDestination());
            break;
          }
        case BIGQUERY_DESTINATION:
          {
            mergeBigqueryDestination(other.getBigqueryDestination());
            break;
          }
        case DESTINATION_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(getGcsDestinationFieldBuilder().getBuilder(), extensionRegistry);
                destinationCase_ = 1;
                break;
              } // case 10
            case 18:
              {
                input.readMessage(
                    getBigqueryDestinationFieldBuilder().getBuilder(), extensionRegistry);
                destinationCase_ = 2;
                break;
              } // case 18
            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 destinationCase_ = 0;
    private java.lang.Object destination_;

    public DestinationCase getDestinationCase() {
      return DestinationCase.forNumber(destinationCase_);
    }

    public Builder clearDestination() {
      destinationCase_ = 0;
      destination_ = null;
      onChanged();
      return this;
    }

    private int bitField0_;

    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination,
            com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.Builder,
            com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestinationOrBuilder>
        gcsDestinationBuilder_;
    /**
     *
     *
     * <pre>
     * Destination on Cloud Storage.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1;
     * </code>
     *
     * @return Whether the gcsDestination field is set.
     */
    @java.lang.Override
    public boolean hasGcsDestination() {
      return destinationCase_ == 1;
    }
    /**
     *
     *
     * <pre>
     * Destination on Cloud Storage.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1;
     * </code>
     *
     * @return The gcsDestination.
     */
    @java.lang.Override
    public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination
        getGcsDestination() {
      if (gcsDestinationBuilder_ == null) {
        if (destinationCase_ == 1) {
          return (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination)
              destination_;
        }
        return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination
            .getDefaultInstance();
      } else {
        if (destinationCase_ == 1) {
          return gcsDestinationBuilder_.getMessage();
        }
        return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination
            .getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Destination on Cloud Storage.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1;
     * </code>
     */
    public Builder setGcsDestination(
        com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination value) {
      if (gcsDestinationBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        destination_ = value;
        onChanged();
      } else {
        gcsDestinationBuilder_.setMessage(value);
      }
      destinationCase_ = 1;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Destination on Cloud Storage.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1;
     * </code>
     */
    public Builder setGcsDestination(
        com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.Builder
            builderForValue) {
      if (gcsDestinationBuilder_ == null) {
        destination_ = builderForValue.build();
        onChanged();
      } else {
        gcsDestinationBuilder_.setMessage(builderForValue.build());
      }
      destinationCase_ = 1;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Destination on Cloud Storage.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1;
     * </code>
     */
    public Builder mergeGcsDestination(
        com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination value) {
      if (gcsDestinationBuilder_ == null) {
        if (destinationCase_ == 1
            && destination_
                != com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination
                    .getDefaultInstance()) {
          destination_ =
              com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.newBuilder(
                      (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination)
                          destination_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          destination_ = value;
        }
        onChanged();
      } else {
        if (destinationCase_ == 1) {
          gcsDestinationBuilder_.mergeFrom(value);
        } else {
          gcsDestinationBuilder_.setMessage(value);
        }
      }
      destinationCase_ = 1;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Destination on Cloud Storage.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1;
     * </code>
     */
    public Builder clearGcsDestination() {
      if (gcsDestinationBuilder_ == null) {
        if (destinationCase_ == 1) {
          destinationCase_ = 0;
          destination_ = null;
          onChanged();
        }
      } else {
        if (destinationCase_ == 1) {
          destinationCase_ = 0;
          destination_ = null;
        }
        gcsDestinationBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Destination on Cloud Storage.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1;
     * </code>
     */
    public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.Builder
        getGcsDestinationBuilder() {
      return getGcsDestinationFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Destination on Cloud Storage.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1;
     * </code>
     */
    @java.lang.Override
    public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestinationOrBuilder
        getGcsDestinationOrBuilder() {
      if ((destinationCase_ == 1) && (gcsDestinationBuilder_ != null)) {
        return gcsDestinationBuilder_.getMessageOrBuilder();
      } else {
        if (destinationCase_ == 1) {
          return (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination)
              destination_;
        }
        return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination
            .getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Destination on Cloud Storage.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1;
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination,
            com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.Builder,
            com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestinationOrBuilder>
        getGcsDestinationFieldBuilder() {
      if (gcsDestinationBuilder_ == null) {
        if (!(destinationCase_ == 1)) {
          destination_ =
              com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination
                  .getDefaultInstance();
        }
        gcsDestinationBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination,
                com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination.Builder,
                com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestinationOrBuilder>(
                (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination)
                    destination_,
                getParentForChildren(),
                isClean());
        destination_ = null;
      }
      destinationCase_ = 1;
      onChanged();
      return gcsDestinationBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination,
            com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.Builder,
            com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestinationOrBuilder>
        bigqueryDestinationBuilder_;
    /**
     *
     *
     * <pre>
     * Destination on BigQuery.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2;
     * </code>
     *
     * @return Whether the bigqueryDestination field is set.
     */
    @java.lang.Override
    public boolean hasBigqueryDestination() {
      return destinationCase_ == 2;
    }
    /**
     *
     *
     * <pre>
     * Destination on BigQuery.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2;
     * </code>
     *
     * @return The bigqueryDestination.
     */
    @java.lang.Override
    public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination
        getBigqueryDestination() {
      if (bigqueryDestinationBuilder_ == null) {
        if (destinationCase_ == 2) {
          return (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination)
              destination_;
        }
        return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination
            .getDefaultInstance();
      } else {
        if (destinationCase_ == 2) {
          return bigqueryDestinationBuilder_.getMessage();
        }
        return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination
            .getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Destination on BigQuery.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2;
     * </code>
     */
    public Builder setBigqueryDestination(
        com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination value) {
      if (bigqueryDestinationBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        destination_ = value;
        onChanged();
      } else {
        bigqueryDestinationBuilder_.setMessage(value);
      }
      destinationCase_ = 2;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Destination on BigQuery.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2;
     * </code>
     */
    public Builder setBigqueryDestination(
        com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.Builder
            builderForValue) {
      if (bigqueryDestinationBuilder_ == null) {
        destination_ = builderForValue.build();
        onChanged();
      } else {
        bigqueryDestinationBuilder_.setMessage(builderForValue.build());
      }
      destinationCase_ = 2;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Destination on BigQuery.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2;
     * </code>
     */
    public Builder mergeBigqueryDestination(
        com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination value) {
      if (bigqueryDestinationBuilder_ == null) {
        if (destinationCase_ == 2
            && destination_
                != com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination
                    .getDefaultInstance()) {
          destination_ =
              com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination
                  .newBuilder(
                      (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination)
                          destination_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          destination_ = value;
        }
        onChanged();
      } else {
        if (destinationCase_ == 2) {
          bigqueryDestinationBuilder_.mergeFrom(value);
        } else {
          bigqueryDestinationBuilder_.setMessage(value);
        }
      }
      destinationCase_ = 2;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Destination on BigQuery.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2;
     * </code>
     */
    public Builder clearBigqueryDestination() {
      if (bigqueryDestinationBuilder_ == null) {
        if (destinationCase_ == 2) {
          destinationCase_ = 0;
          destination_ = null;
          onChanged();
        }
      } else {
        if (destinationCase_ == 2) {
          destinationCase_ = 0;
          destination_ = null;
        }
        bigqueryDestinationBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Destination on BigQuery.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2;
     * </code>
     */
    public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.Builder
        getBigqueryDestinationBuilder() {
      return getBigqueryDestinationFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Destination on BigQuery.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2;
     * </code>
     */
    @java.lang.Override
    public com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestinationOrBuilder
        getBigqueryDestinationOrBuilder() {
      if ((destinationCase_ == 2) && (bigqueryDestinationBuilder_ != null)) {
        return bigqueryDestinationBuilder_.getMessageOrBuilder();
      } else {
        if (destinationCase_ == 2) {
          return (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination)
              destination_;
        }
        return com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination
            .getDefaultInstance();
      }
    }
    /**
     *
     *
     * <pre>
     * Destination on BigQuery.
     * </pre>
     *
     * <code>
     * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2;
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination,
            com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.Builder,
            com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestinationOrBuilder>
        getBigqueryDestinationFieldBuilder() {
      if (bigqueryDestinationBuilder_ == null) {
        if (!(destinationCase_ == 2)) {
          destination_ =
              com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination
                  .getDefaultInstance();
        }
        bigqueryDestinationBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination,
                com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.Builder,
                com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig
                    .BigQueryDestinationOrBuilder>(
                (com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination)
                    destination_,
                getParentForChildren(),
                isClean());
        destination_ = null;
      }
      destinationCase_ = 2;
      onChanged();
      return bigqueryDestinationBuilder_;
    }

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

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

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

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

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

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

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