// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/privacy/dlp/v2/dlp.proto

package com.google.privacy.dlp.v2;

/**
 * <pre>
 * A task to execute on the completion of a job.
 * </pre>
 *
 * Protobuf type {@code google.privacy.dlp.v2.Action}
 */
public  final class Action extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.Action)
    ActionOrBuilder {
private static final long serialVersionUID = 0L;
  // Use Action.newBuilder() to construct.
  private Action(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private Action() {
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private Action(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          default: {
            if (!parseUnknownFieldProto3(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
          case 10: {
            com.google.privacy.dlp.v2.Action.SaveFindings.Builder subBuilder = null;
            if (actionCase_ == 1) {
              subBuilder = ((com.google.privacy.dlp.v2.Action.SaveFindings) action_).toBuilder();
            }
            action_ =
                input.readMessage(com.google.privacy.dlp.v2.Action.SaveFindings.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((com.google.privacy.dlp.v2.Action.SaveFindings) action_);
              action_ = subBuilder.buildPartial();
            }
            actionCase_ = 1;
            break;
          }
          case 18: {
            com.google.privacy.dlp.v2.Action.PublishToPubSub.Builder subBuilder = null;
            if (actionCase_ == 2) {
              subBuilder = ((com.google.privacy.dlp.v2.Action.PublishToPubSub) action_).toBuilder();
            }
            action_ =
                input.readMessage(com.google.privacy.dlp.v2.Action.PublishToPubSub.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((com.google.privacy.dlp.v2.Action.PublishToPubSub) action_);
              action_ = subBuilder.buildPartial();
            }
            actionCase_ = 2;
            break;
          }
          case 26: {
            com.google.privacy.dlp.v2.Action.PublishSummaryToCscc.Builder subBuilder = null;
            if (actionCase_ == 3) {
              subBuilder = ((com.google.privacy.dlp.v2.Action.PublishSummaryToCscc) action_).toBuilder();
            }
            action_ =
                input.readMessage(com.google.privacy.dlp.v2.Action.PublishSummaryToCscc.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((com.google.privacy.dlp.v2.Action.PublishSummaryToCscc) action_);
              action_ = subBuilder.buildPartial();
            }
            actionCase_ = 3;
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.google.privacy.dlp.v2.DlpProto.internal_static_google_privacy_dlp_v2_Action_descriptor;
  }

  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.privacy.dlp.v2.DlpProto.internal_static_google_privacy_dlp_v2_Action_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.privacy.dlp.v2.Action.class, com.google.privacy.dlp.v2.Action.Builder.class);
  }

  public interface SaveFindingsOrBuilder extends
      // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.Action.SaveFindings)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>.google.privacy.dlp.v2.OutputStorageConfig output_config = 1;</code>
     */
    boolean hasOutputConfig();
    /**
     * <code>.google.privacy.dlp.v2.OutputStorageConfig output_config = 1;</code>
     */
    com.google.privacy.dlp.v2.OutputStorageConfig getOutputConfig();
    /**
     * <code>.google.privacy.dlp.v2.OutputStorageConfig output_config = 1;</code>
     */
    com.google.privacy.dlp.v2.OutputStorageConfigOrBuilder getOutputConfigOrBuilder();
  }
  /**
   * <pre>
   * If set, the detailed findings will be persisted to the specified
   * OutputStorageConfig. Only a single instance of this action can be
   * specified.
   * Compatible with: Inspect
   * </pre>
   *
   * Protobuf type {@code google.privacy.dlp.v2.Action.SaveFindings}
   */
  public  static final class SaveFindings extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.Action.SaveFindings)
      SaveFindingsOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use SaveFindings.newBuilder() to construct.
    private SaveFindings(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private SaveFindings() {
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private SaveFindings(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!parseUnknownFieldProto3(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
            case 10: {
              com.google.privacy.dlp.v2.OutputStorageConfig.Builder subBuilder = null;
              if (outputConfig_ != null) {
                subBuilder = outputConfig_.toBuilder();
              }
              outputConfig_ = input.readMessage(com.google.privacy.dlp.v2.OutputStorageConfig.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(outputConfig_);
                outputConfig_ = subBuilder.buildPartial();
              }

              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.privacy.dlp.v2.DlpProto.internal_static_google_privacy_dlp_v2_Action_SaveFindings_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.privacy.dlp.v2.DlpProto.internal_static_google_privacy_dlp_v2_Action_SaveFindings_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.privacy.dlp.v2.Action.SaveFindings.class, com.google.privacy.dlp.v2.Action.SaveFindings.Builder.class);
    }

    public static final int OUTPUT_CONFIG_FIELD_NUMBER = 1;
    private com.google.privacy.dlp.v2.OutputStorageConfig outputConfig_;
    /**
     * <code>.google.privacy.dlp.v2.OutputStorageConfig output_config = 1;</code>
     */
    public boolean hasOutputConfig() {
      return outputConfig_ != null;
    }
    /**
     * <code>.google.privacy.dlp.v2.OutputStorageConfig output_config = 1;</code>
     */
    public com.google.privacy.dlp.v2.OutputStorageConfig getOutputConfig() {
      return outputConfig_ == null ? com.google.privacy.dlp.v2.OutputStorageConfig.getDefaultInstance() : outputConfig_;
    }
    /**
     * <code>.google.privacy.dlp.v2.OutputStorageConfig output_config = 1;</code>
     */
    public com.google.privacy.dlp.v2.OutputStorageConfigOrBuilder getOutputConfigOrBuilder() {
      return getOutputConfig();
    }

    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (outputConfig_ != null) {
        output.writeMessage(1, getOutputConfig());
      }
      unknownFields.writeTo(output);
    }

    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (outputConfig_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, getOutputConfig());
      }
      size += unknownFields.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.privacy.dlp.v2.Action.SaveFindings)) {
        return super.equals(obj);
      }
      com.google.privacy.dlp.v2.Action.SaveFindings other = (com.google.privacy.dlp.v2.Action.SaveFindings) obj;

      boolean result = true;
      result = result && (hasOutputConfig() == other.hasOutputConfig());
      if (hasOutputConfig()) {
        result = result && getOutputConfig()
            .equals(other.getOutputConfig());
      }
      result = result && unknownFields.equals(other.unknownFields);
      return result;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasOutputConfig()) {
        hash = (37 * hash) + OUTPUT_CONFIG_FIELD_NUMBER;
        hash = (53 * hash) + getOutputConfig().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.privacy.dlp.v2.Action.SaveFindings parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.privacy.dlp.v2.Action.SaveFindings parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.google.privacy.dlp.v2.Action.SaveFindings parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.privacy.dlp.v2.Action.SaveFindings 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.privacy.dlp.v2.Action.SaveFindings parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.privacy.dlp.v2.Action.SaveFindings parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.google.privacy.dlp.v2.Action.SaveFindings parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.google.privacy.dlp.v2.Action.SaveFindings 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.privacy.dlp.v2.Action.SaveFindings parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.google.privacy.dlp.v2.Action.SaveFindings 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.privacy.dlp.v2.Action.SaveFindings parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.google.privacy.dlp.v2.Action.SaveFindings parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(com.google.privacy.dlp.v2.Action.SaveFindings prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    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>
     * If set, the detailed findings will be persisted to the specified
     * OutputStorageConfig. Only a single instance of this action can be
     * specified.
     * Compatible with: Inspect
     * </pre>
     *
     * Protobuf type {@code google.privacy.dlp.v2.Action.SaveFindings}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.Action.SaveFindings)
        com.google.privacy.dlp.v2.Action.SaveFindingsOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.google.privacy.dlp.v2.DlpProto.internal_static_google_privacy_dlp_v2_Action_SaveFindings_descriptor;
      }

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.privacy.dlp.v2.DlpProto.internal_static_google_privacy_dlp_v2_Action_SaveFindings_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.privacy.dlp.v2.Action.SaveFindings.class, com.google.privacy.dlp.v2.Action.SaveFindings.Builder.class);
      }

      // Construct using com.google.privacy.dlp.v2.Action.SaveFindings.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      public Builder clear() {
        super.clear();
        if (outputConfigBuilder_ == null) {
          outputConfig_ = null;
        } else {
          outputConfig_ = null;
          outputConfigBuilder_ = null;
        }
        return this;
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.google.privacy.dlp.v2.DlpProto.internal_static_google_privacy_dlp_v2_Action_SaveFindings_descriptor;
      }

      public com.google.privacy.dlp.v2.Action.SaveFindings getDefaultInstanceForType() {
        return com.google.privacy.dlp.v2.Action.SaveFindings.getDefaultInstance();
      }

      public com.google.privacy.dlp.v2.Action.SaveFindings build() {
        com.google.privacy.dlp.v2.Action.SaveFindings result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public com.google.privacy.dlp.v2.Action.SaveFindings buildPartial() {
        com.google.privacy.dlp.v2.Action.SaveFindings result = new com.google.privacy.dlp.v2.Action.SaveFindings(this);
        if (outputConfigBuilder_ == null) {
          result.outputConfig_ = outputConfig_;
        } else {
          result.outputConfig_ = outputConfigBuilder_.build();
        }
        onBuilt();
        return result;
      }

      public Builder clone() {
        return (Builder) super.clone();
      }
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return (Builder) super.setField(field, value);
      }
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return (Builder) super.clearField(field);
      }
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return (Builder) super.clearOneof(oneof);
      }
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return (Builder) super.setRepeatedField(field, index, value);
      }
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return (Builder) super.addRepeatedField(field, value);
      }
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.google.privacy.dlp.v2.Action.SaveFindings) {
          return mergeFrom((com.google.privacy.dlp.v2.Action.SaveFindings)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.privacy.dlp.v2.Action.SaveFindings other) {
        if (other == com.google.privacy.dlp.v2.Action.SaveFindings.getDefaultInstance()) return this;
        if (other.hasOutputConfig()) {
          mergeOutputConfig(other.getOutputConfig());
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      public final boolean isInitialized() {
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.google.privacy.dlp.v2.Action.SaveFindings parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.google.privacy.dlp.v2.Action.SaveFindings) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private com.google.privacy.dlp.v2.OutputStorageConfig outputConfig_ = null;
      private com.google.protobuf.SingleFieldBuilderV3<
          com.google.privacy.dlp.v2.OutputStorageConfig, com.google.privacy.dlp.v2.OutputStorageConfig.Builder, com.google.privacy.dlp.v2.OutputStorageConfigOrBuilder> outputConfigBuilder_;
      /**
       * <code>.google.privacy.dlp.v2.OutputStorageConfig output_config = 1;</code>
       */
      public boolean hasOutputConfig() {
        return outputConfigBuilder_ != null || outputConfig_ != null;
      }
      /**
       * <code>.google.privacy.dlp.v2.OutputStorageConfig output_config = 1;</code>
       */
      public com.google.privacy.dlp.v2.OutputStorageConfig getOutputConfig() {
        if (outputConfigBuilder_ == null) {
          return outputConfig_ == null ? com.google.privacy.dlp.v2.OutputStorageConfig.getDefaultInstance() : outputConfig_;
        } else {
          return outputConfigBuilder_.getMessage();
        }
      }
      /**
       * <code>.google.privacy.dlp.v2.OutputStorageConfig output_config = 1;</code>
       */
      public Builder setOutputConfig(com.google.privacy.dlp.v2.OutputStorageConfig value) {
        if (outputConfigBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          outputConfig_ = value;
          onChanged();
        } else {
          outputConfigBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.google.privacy.dlp.v2.OutputStorageConfig output_config = 1;</code>
       */
      public Builder setOutputConfig(
          com.google.privacy.dlp.v2.OutputStorageConfig.Builder builderForValue) {
        if (outputConfigBuilder_ == null) {
          outputConfig_ = builderForValue.build();
          onChanged();
        } else {
          outputConfigBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.google.privacy.dlp.v2.OutputStorageConfig output_config = 1;</code>
       */
      public Builder mergeOutputConfig(com.google.privacy.dlp.v2.OutputStorageConfig value) {
        if (outputConfigBuilder_ == null) {
          if (outputConfig_ != null) {
            outputConfig_ =
              com.google.privacy.dlp.v2.OutputStorageConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial();
          } else {
            outputConfig_ = value;
          }
          onChanged();
        } else {
          outputConfigBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.google.privacy.dlp.v2.OutputStorageConfig output_config = 1;</code>
       */
      public Builder clearOutputConfig() {
        if (outputConfigBuilder_ == null) {
          outputConfig_ = null;
          onChanged();
        } else {
          outputConfig_ = null;
          outputConfigBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.google.privacy.dlp.v2.OutputStorageConfig output_config = 1;</code>
       */
      public com.google.privacy.dlp.v2.OutputStorageConfig.Builder getOutputConfigBuilder() {
        
        onChanged();
        return getOutputConfigFieldBuilder().getBuilder();
      }
      /**
       * <code>.google.privacy.dlp.v2.OutputStorageConfig output_config = 1;</code>
       */
      public com.google.privacy.dlp.v2.OutputStorageConfigOrBuilder getOutputConfigOrBuilder() {
        if (outputConfigBuilder_ != null) {
          return outputConfigBuilder_.getMessageOrBuilder();
        } else {
          return outputConfig_ == null ?
              com.google.privacy.dlp.v2.OutputStorageConfig.getDefaultInstance() : outputConfig_;
        }
      }
      /**
       * <code>.google.privacy.dlp.v2.OutputStorageConfig output_config = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.google.privacy.dlp.v2.OutputStorageConfig, com.google.privacy.dlp.v2.OutputStorageConfig.Builder, com.google.privacy.dlp.v2.OutputStorageConfigOrBuilder> 
          getOutputConfigFieldBuilder() {
        if (outputConfigBuilder_ == null) {
          outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.google.privacy.dlp.v2.OutputStorageConfig, com.google.privacy.dlp.v2.OutputStorageConfig.Builder, com.google.privacy.dlp.v2.OutputStorageConfigOrBuilder>(
                  getOutputConfig(),
                  getParentForChildren(),
                  isClean());
          outputConfig_ = null;
        }
        return outputConfigBuilder_;
      }
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFieldsProto3(unknownFields);
      }

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


      // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.Action.SaveFindings)
    }

    // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Action.SaveFindings)
    private static final com.google.privacy.dlp.v2.Action.SaveFindings DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.Action.SaveFindings();
    }

    public static com.google.privacy.dlp.v2.Action.SaveFindings getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<SaveFindings>
        PARSER = new com.google.protobuf.AbstractParser<SaveFindings>() {
      public SaveFindings parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new SaveFindings(input, extensionRegistry);
      }
    };

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

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

    public com.google.privacy.dlp.v2.Action.SaveFindings getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface PublishToPubSubOrBuilder extends
      // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.Action.PublishToPubSub)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     * Cloud Pub/Sub topic to send notifications to. The topic must have given
     * publishing access rights to the DLP API service account executing
     * the long running DlpJob sending the notifications.
     * Format is projects/{project}/topics/{topic}.
     * </pre>
     *
     * <code>string topic = 1;</code>
     */
    java.lang.String getTopic();
    /**
     * <pre>
     * Cloud Pub/Sub topic to send notifications to. The topic must have given
     * publishing access rights to the DLP API service account executing
     * the long running DlpJob sending the notifications.
     * Format is projects/{project}/topics/{topic}.
     * </pre>
     *
     * <code>string topic = 1;</code>
     */
    com.google.protobuf.ByteString
        getTopicBytes();
  }
  /**
   * <pre>
   * Publish the results of a DlpJob to a pub sub channel.
   * Compatible with: Inspect, Risk
   * </pre>
   *
   * Protobuf type {@code google.privacy.dlp.v2.Action.PublishToPubSub}
   */
  public  static final class PublishToPubSub extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.Action.PublishToPubSub)
      PublishToPubSubOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use PublishToPubSub.newBuilder() to construct.
    private PublishToPubSub(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private PublishToPubSub() {
      topic_ = "";
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private PublishToPubSub(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!parseUnknownFieldProto3(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
            case 10: {
              java.lang.String s = input.readStringRequireUtf8();

              topic_ = s;
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.privacy.dlp.v2.DlpProto.internal_static_google_privacy_dlp_v2_Action_PublishToPubSub_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.privacy.dlp.v2.DlpProto.internal_static_google_privacy_dlp_v2_Action_PublishToPubSub_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.privacy.dlp.v2.Action.PublishToPubSub.class, com.google.privacy.dlp.v2.Action.PublishToPubSub.Builder.class);
    }

    public static final int TOPIC_FIELD_NUMBER = 1;
    private volatile java.lang.Object topic_;
    /**
     * <pre>
     * Cloud Pub/Sub topic to send notifications to. The topic must have given
     * publishing access rights to the DLP API service account executing
     * the long running DlpJob sending the notifications.
     * Format is projects/{project}/topics/{topic}.
     * </pre>
     *
     * <code>string topic = 1;</code>
     */
    public java.lang.String getTopic() {
      java.lang.Object ref = topic_;
      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();
        topic_ = s;
        return s;
      }
    }
    /**
     * <pre>
     * Cloud Pub/Sub topic to send notifications to. The topic must have given
     * publishing access rights to the DLP API service account executing
     * the long running DlpJob sending the notifications.
     * Format is projects/{project}/topics/{topic}.
     * </pre>
     *
     * <code>string topic = 1;</code>
     */
    public com.google.protobuf.ByteString
        getTopicBytes() {
      java.lang.Object ref = topic_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        topic_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (!getTopicBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_);
      }
      unknownFields.writeTo(output);
    }

    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (!getTopicBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_);
      }
      size += unknownFields.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.privacy.dlp.v2.Action.PublishToPubSub)) {
        return super.equals(obj);
      }
      com.google.privacy.dlp.v2.Action.PublishToPubSub other = (com.google.privacy.dlp.v2.Action.PublishToPubSub) obj;

      boolean result = true;
      result = result && getTopic()
          .equals(other.getTopic());
      result = result && unknownFields.equals(other.unknownFields);
      return result;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + TOPIC_FIELD_NUMBER;
      hash = (53 * hash) + getTopic().hashCode();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.privacy.dlp.v2.Action.PublishToPubSub parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.privacy.dlp.v2.Action.PublishToPubSub parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.google.privacy.dlp.v2.Action.PublishToPubSub parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.privacy.dlp.v2.Action.PublishToPubSub 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.privacy.dlp.v2.Action.PublishToPubSub parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.privacy.dlp.v2.Action.PublishToPubSub parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.google.privacy.dlp.v2.Action.PublishToPubSub parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.google.privacy.dlp.v2.Action.PublishToPubSub 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.privacy.dlp.v2.Action.PublishToPubSub parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.google.privacy.dlp.v2.Action.PublishToPubSub 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.privacy.dlp.v2.Action.PublishToPubSub parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.google.privacy.dlp.v2.Action.PublishToPubSub parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(com.google.privacy.dlp.v2.Action.PublishToPubSub prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    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>
     * Publish the results of a DlpJob to a pub sub channel.
     * Compatible with: Inspect, Risk
     * </pre>
     *
     * Protobuf type {@code google.privacy.dlp.v2.Action.PublishToPubSub}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.Action.PublishToPubSub)
        com.google.privacy.dlp.v2.Action.PublishToPubSubOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.google.privacy.dlp.v2.DlpProto.internal_static_google_privacy_dlp_v2_Action_PublishToPubSub_descriptor;
      }

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.privacy.dlp.v2.DlpProto.internal_static_google_privacy_dlp_v2_Action_PublishToPubSub_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.privacy.dlp.v2.Action.PublishToPubSub.class, com.google.privacy.dlp.v2.Action.PublishToPubSub.Builder.class);
      }

      // Construct using com.google.privacy.dlp.v2.Action.PublishToPubSub.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      public Builder clear() {
        super.clear();
        topic_ = "";

        return this;
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.google.privacy.dlp.v2.DlpProto.internal_static_google_privacy_dlp_v2_Action_PublishToPubSub_descriptor;
      }

      public com.google.privacy.dlp.v2.Action.PublishToPubSub getDefaultInstanceForType() {
        return com.google.privacy.dlp.v2.Action.PublishToPubSub.getDefaultInstance();
      }

      public com.google.privacy.dlp.v2.Action.PublishToPubSub build() {
        com.google.privacy.dlp.v2.Action.PublishToPubSub result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public com.google.privacy.dlp.v2.Action.PublishToPubSub buildPartial() {
        com.google.privacy.dlp.v2.Action.PublishToPubSub result = new com.google.privacy.dlp.v2.Action.PublishToPubSub(this);
        result.topic_ = topic_;
        onBuilt();
        return result;
      }

      public Builder clone() {
        return (Builder) super.clone();
      }
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return (Builder) super.setField(field, value);
      }
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return (Builder) super.clearField(field);
      }
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return (Builder) super.clearOneof(oneof);
      }
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return (Builder) super.setRepeatedField(field, index, value);
      }
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return (Builder) super.addRepeatedField(field, value);
      }
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.google.privacy.dlp.v2.Action.PublishToPubSub) {
          return mergeFrom((com.google.privacy.dlp.v2.Action.PublishToPubSub)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.privacy.dlp.v2.Action.PublishToPubSub other) {
        if (other == com.google.privacy.dlp.v2.Action.PublishToPubSub.getDefaultInstance()) return this;
        if (!other.getTopic().isEmpty()) {
          topic_ = other.topic_;
          onChanged();
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      public final boolean isInitialized() {
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.google.privacy.dlp.v2.Action.PublishToPubSub parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.google.privacy.dlp.v2.Action.PublishToPubSub) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private java.lang.Object topic_ = "";
      /**
       * <pre>
       * Cloud Pub/Sub topic to send notifications to. The topic must have given
       * publishing access rights to the DLP API service account executing
       * the long running DlpJob sending the notifications.
       * Format is projects/{project}/topics/{topic}.
       * </pre>
       *
       * <code>string topic = 1;</code>
       */
      public java.lang.String getTopic() {
        java.lang.Object ref = topic_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          topic_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       * Cloud Pub/Sub topic to send notifications to. The topic must have given
       * publishing access rights to the DLP API service account executing
       * the long running DlpJob sending the notifications.
       * Format is projects/{project}/topics/{topic}.
       * </pre>
       *
       * <code>string topic = 1;</code>
       */
      public com.google.protobuf.ByteString
          getTopicBytes() {
        java.lang.Object ref = topic_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          topic_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       * Cloud Pub/Sub topic to send notifications to. The topic must have given
       * publishing access rights to the DLP API service account executing
       * the long running DlpJob sending the notifications.
       * Format is projects/{project}/topics/{topic}.
       * </pre>
       *
       * <code>string topic = 1;</code>
       */
      public Builder setTopic(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        topic_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Cloud Pub/Sub topic to send notifications to. The topic must have given
       * publishing access rights to the DLP API service account executing
       * the long running DlpJob sending the notifications.
       * Format is projects/{project}/topics/{topic}.
       * </pre>
       *
       * <code>string topic = 1;</code>
       */
      public Builder clearTopic() {
        
        topic_ = getDefaultInstance().getTopic();
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Cloud Pub/Sub topic to send notifications to. The topic must have given
       * publishing access rights to the DLP API service account executing
       * the long running DlpJob sending the notifications.
       * Format is projects/{project}/topics/{topic}.
       * </pre>
       *
       * <code>string topic = 1;</code>
       */
      public Builder setTopicBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        topic_ = value;
        onChanged();
        return this;
      }
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFieldsProto3(unknownFields);
      }

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


      // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.Action.PublishToPubSub)
    }

    // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Action.PublishToPubSub)
    private static final com.google.privacy.dlp.v2.Action.PublishToPubSub DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.Action.PublishToPubSub();
    }

    public static com.google.privacy.dlp.v2.Action.PublishToPubSub getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<PublishToPubSub>
        PARSER = new com.google.protobuf.AbstractParser<PublishToPubSub>() {
      public PublishToPubSub parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new PublishToPubSub(input, extensionRegistry);
      }
    };

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

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

    public com.google.privacy.dlp.v2.Action.PublishToPubSub getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface PublishSummaryToCsccOrBuilder extends
      // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.Action.PublishSummaryToCscc)
      com.google.protobuf.MessageOrBuilder {
  }
  /**
   * <pre>
   * Publish the result summary of a DlpJob to the Cloud Security
   * Command Center (CSCC Alpha).
   * This action is only available for projects which are parts of
   * an organization and whitelisted for the alpha Cloud Security Command
   * Center.
   * The action will publish count of finding instances and their info types.
   * The summary of findings will be persisted in CSCC and are governed by CSCC
   * service-specific policy, see https://cloud.google.com/terms/service-terms
   * Only a single instance of this action can be specified.
   * Compatible with: Inspect
   * </pre>
   *
   * Protobuf type {@code google.privacy.dlp.v2.Action.PublishSummaryToCscc}
   */
  public  static final class PublishSummaryToCscc extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.Action.PublishSummaryToCscc)
      PublishSummaryToCsccOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use PublishSummaryToCscc.newBuilder() to construct.
    private PublishSummaryToCscc(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private PublishSummaryToCscc() {
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private PublishSummaryToCscc(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!parseUnknownFieldProto3(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.privacy.dlp.v2.DlpProto.internal_static_google_privacy_dlp_v2_Action_PublishSummaryToCscc_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.privacy.dlp.v2.DlpProto.internal_static_google_privacy_dlp_v2_Action_PublishSummaryToCscc_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.privacy.dlp.v2.Action.PublishSummaryToCscc.class, com.google.privacy.dlp.v2.Action.PublishSummaryToCscc.Builder.class);
    }

    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      unknownFields.writeTo(output);
    }

    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      size += unknownFields.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.privacy.dlp.v2.Action.PublishSummaryToCscc)) {
        return super.equals(obj);
      }
      com.google.privacy.dlp.v2.Action.PublishSummaryToCscc other = (com.google.privacy.dlp.v2.Action.PublishSummaryToCscc) obj;

      boolean result = true;
      result = result && unknownFields.equals(other.unknownFields);
      return result;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.privacy.dlp.v2.Action.PublishSummaryToCscc parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.privacy.dlp.v2.Action.PublishSummaryToCscc parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.google.privacy.dlp.v2.Action.PublishSummaryToCscc parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.privacy.dlp.v2.Action.PublishSummaryToCscc 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.privacy.dlp.v2.Action.PublishSummaryToCscc parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.privacy.dlp.v2.Action.PublishSummaryToCscc parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.google.privacy.dlp.v2.Action.PublishSummaryToCscc parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.google.privacy.dlp.v2.Action.PublishSummaryToCscc 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.privacy.dlp.v2.Action.PublishSummaryToCscc parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.google.privacy.dlp.v2.Action.PublishSummaryToCscc 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.privacy.dlp.v2.Action.PublishSummaryToCscc parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.google.privacy.dlp.v2.Action.PublishSummaryToCscc parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(com.google.privacy.dlp.v2.Action.PublishSummaryToCscc prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    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>
     * Publish the result summary of a DlpJob to the Cloud Security
     * Command Center (CSCC Alpha).
     * This action is only available for projects which are parts of
     * an organization and whitelisted for the alpha Cloud Security Command
     * Center.
     * The action will publish count of finding instances and their info types.
     * The summary of findings will be persisted in CSCC and are governed by CSCC
     * service-specific policy, see https://cloud.google.com/terms/service-terms
     * Only a single instance of this action can be specified.
     * Compatible with: Inspect
     * </pre>
     *
     * Protobuf type {@code google.privacy.dlp.v2.Action.PublishSummaryToCscc}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.Action.PublishSummaryToCscc)
        com.google.privacy.dlp.v2.Action.PublishSummaryToCsccOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.google.privacy.dlp.v2.DlpProto.internal_static_google_privacy_dlp_v2_Action_PublishSummaryToCscc_descriptor;
      }

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.privacy.dlp.v2.DlpProto.internal_static_google_privacy_dlp_v2_Action_PublishSummaryToCscc_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.privacy.dlp.v2.Action.PublishSummaryToCscc.class, com.google.privacy.dlp.v2.Action.PublishSummaryToCscc.Builder.class);
      }

      // Construct using com.google.privacy.dlp.v2.Action.PublishSummaryToCscc.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      public Builder clear() {
        super.clear();
        return this;
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.google.privacy.dlp.v2.DlpProto.internal_static_google_privacy_dlp_v2_Action_PublishSummaryToCscc_descriptor;
      }

      public com.google.privacy.dlp.v2.Action.PublishSummaryToCscc getDefaultInstanceForType() {
        return com.google.privacy.dlp.v2.Action.PublishSummaryToCscc.getDefaultInstance();
      }

      public com.google.privacy.dlp.v2.Action.PublishSummaryToCscc build() {
        com.google.privacy.dlp.v2.Action.PublishSummaryToCscc result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public com.google.privacy.dlp.v2.Action.PublishSummaryToCscc buildPartial() {
        com.google.privacy.dlp.v2.Action.PublishSummaryToCscc result = new com.google.privacy.dlp.v2.Action.PublishSummaryToCscc(this);
        onBuilt();
        return result;
      }

      public Builder clone() {
        return (Builder) super.clone();
      }
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return (Builder) super.setField(field, value);
      }
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return (Builder) super.clearField(field);
      }
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return (Builder) super.clearOneof(oneof);
      }
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return (Builder) super.setRepeatedField(field, index, value);
      }
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return (Builder) super.addRepeatedField(field, value);
      }
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.google.privacy.dlp.v2.Action.PublishSummaryToCscc) {
          return mergeFrom((com.google.privacy.dlp.v2.Action.PublishSummaryToCscc)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.privacy.dlp.v2.Action.PublishSummaryToCscc other) {
        if (other == com.google.privacy.dlp.v2.Action.PublishSummaryToCscc.getDefaultInstance()) return this;
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      public final boolean isInitialized() {
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.google.privacy.dlp.v2.Action.PublishSummaryToCscc parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.google.privacy.dlp.v2.Action.PublishSummaryToCscc) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFieldsProto3(unknownFields);
      }

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


      // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.Action.PublishSummaryToCscc)
    }

    // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Action.PublishSummaryToCscc)
    private static final com.google.privacy.dlp.v2.Action.PublishSummaryToCscc DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.Action.PublishSummaryToCscc();
    }

    public static com.google.privacy.dlp.v2.Action.PublishSummaryToCscc getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<PublishSummaryToCscc>
        PARSER = new com.google.protobuf.AbstractParser<PublishSummaryToCscc>() {
      public PublishSummaryToCscc parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new PublishSummaryToCscc(input, extensionRegistry);
      }
    };

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

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

    public com.google.privacy.dlp.v2.Action.PublishSummaryToCscc getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private int actionCase_ = 0;
  private java.lang.Object action_;
  public enum ActionCase
      implements com.google.protobuf.Internal.EnumLite {
    SAVE_FINDINGS(1),
    PUB_SUB(2),
    PUBLISH_SUMMARY_TO_CSCC(3),
    ACTION_NOT_SET(0);
    private final int value;
    private ActionCase(int value) {
      this.value = value;
    }
    /**
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static ActionCase valueOf(int value) {
      return forNumber(value);
    }

    public static ActionCase forNumber(int value) {
      switch (value) {
        case 1: return SAVE_FINDINGS;
        case 2: return PUB_SUB;
        case 3: return PUBLISH_SUMMARY_TO_CSCC;
        case 0: return ACTION_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public ActionCase
  getActionCase() {
    return ActionCase.forNumber(
        actionCase_);
  }

  public static final int SAVE_FINDINGS_FIELD_NUMBER = 1;
  /**
   * <pre>
   * Save resulting findings in a provided location.
   * </pre>
   *
   * <code>.google.privacy.dlp.v2.Action.SaveFindings save_findings = 1;</code>
   */
  public boolean hasSaveFindings() {
    return actionCase_ == 1;
  }
  /**
   * <pre>
   * Save resulting findings in a provided location.
   * </pre>
   *
   * <code>.google.privacy.dlp.v2.Action.SaveFindings save_findings = 1;</code>
   */
  public com.google.privacy.dlp.v2.Action.SaveFindings getSaveFindings() {
    if (actionCase_ == 1) {
       return (com.google.privacy.dlp.v2.Action.SaveFindings) action_;
    }
    return com.google.privacy.dlp.v2.Action.SaveFindings.getDefaultInstance();
  }
  /**
   * <pre>
   * Save resulting findings in a provided location.
   * </pre>
   *
   * <code>.google.privacy.dlp.v2.Action.SaveFindings save_findings = 1;</code>
   */
  public com.google.privacy.dlp.v2.Action.SaveFindingsOrBuilder getSaveFindingsOrBuilder() {
    if (actionCase_ == 1) {
       return (com.google.privacy.dlp.v2.Action.SaveFindings) action_;
    }
    return com.google.privacy.dlp.v2.Action.SaveFindings.getDefaultInstance();
  }

  public static final int PUB_SUB_FIELD_NUMBER = 2;
  /**
   * <pre>
   * Publish a notification to a pubsub topic.
   * </pre>
   *
   * <code>.google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;</code>
   */
  public boolean hasPubSub() {
    return actionCase_ == 2;
  }
  /**
   * <pre>
   * Publish a notification to a pubsub topic.
   * </pre>
   *
   * <code>.google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;</code>
   */
  public com.google.privacy.dlp.v2.Action.PublishToPubSub getPubSub() {
    if (actionCase_ == 2) {
       return (com.google.privacy.dlp.v2.Action.PublishToPubSub) action_;
    }
    return com.google.privacy.dlp.v2.Action.PublishToPubSub.getDefaultInstance();
  }
  /**
   * <pre>
   * Publish a notification to a pubsub topic.
   * </pre>
   *
   * <code>.google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;</code>
   */
  public com.google.privacy.dlp.v2.Action.PublishToPubSubOrBuilder getPubSubOrBuilder() {
    if (actionCase_ == 2) {
       return (com.google.privacy.dlp.v2.Action.PublishToPubSub) action_;
    }
    return com.google.privacy.dlp.v2.Action.PublishToPubSub.getDefaultInstance();
  }

  public static final int PUBLISH_SUMMARY_TO_CSCC_FIELD_NUMBER = 3;
  /**
   * <pre>
   * Publish summary to Cloud Security Command Center (Alpha).
   * </pre>
   *
   * <code>.google.privacy.dlp.v2.Action.PublishSummaryToCscc publish_summary_to_cscc = 3;</code>
   */
  public boolean hasPublishSummaryToCscc() {
    return actionCase_ == 3;
  }
  /**
   * <pre>
   * Publish summary to Cloud Security Command Center (Alpha).
   * </pre>
   *
   * <code>.google.privacy.dlp.v2.Action.PublishSummaryToCscc publish_summary_to_cscc = 3;</code>
   */
  public com.google.privacy.dlp.v2.Action.PublishSummaryToCscc getPublishSummaryToCscc() {
    if (actionCase_ == 3) {
       return (com.google.privacy.dlp.v2.Action.PublishSummaryToCscc) action_;
    }
    return com.google.privacy.dlp.v2.Action.PublishSummaryToCscc.getDefaultInstance();
  }
  /**
   * <pre>
   * Publish summary to Cloud Security Command Center (Alpha).
   * </pre>
   *
   * <code>.google.privacy.dlp.v2.Action.PublishSummaryToCscc publish_summary_to_cscc = 3;</code>
   */
  public com.google.privacy.dlp.v2.Action.PublishSummaryToCsccOrBuilder getPublishSummaryToCsccOrBuilder() {
    if (actionCase_ == 3) {
       return (com.google.privacy.dlp.v2.Action.PublishSummaryToCscc) action_;
    }
    return com.google.privacy.dlp.v2.Action.PublishSummaryToCscc.getDefaultInstance();
  }

  private byte memoizedIsInitialized = -1;
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (actionCase_ == 1) {
      output.writeMessage(1, (com.google.privacy.dlp.v2.Action.SaveFindings) action_);
    }
    if (actionCase_ == 2) {
      output.writeMessage(2, (com.google.privacy.dlp.v2.Action.PublishToPubSub) action_);
    }
    if (actionCase_ == 3) {
      output.writeMessage(3, (com.google.privacy.dlp.v2.Action.PublishSummaryToCscc) action_);
    }
    unknownFields.writeTo(output);
  }

  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (actionCase_ == 1) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, (com.google.privacy.dlp.v2.Action.SaveFindings) action_);
    }
    if (actionCase_ == 2) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, (com.google.privacy.dlp.v2.Action.PublishToPubSub) action_);
    }
    if (actionCase_ == 3) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, (com.google.privacy.dlp.v2.Action.PublishSummaryToCscc) action_);
    }
    size += unknownFields.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.privacy.dlp.v2.Action)) {
      return super.equals(obj);
    }
    com.google.privacy.dlp.v2.Action other = (com.google.privacy.dlp.v2.Action) obj;

    boolean result = true;
    result = result && getActionCase().equals(
        other.getActionCase());
    if (!result) return false;
    switch (actionCase_) {
      case 1:
        result = result && getSaveFindings()
            .equals(other.getSaveFindings());
        break;
      case 2:
        result = result && getPubSub()
            .equals(other.getPubSub());
        break;
      case 3:
        result = result && getPublishSummaryToCscc()
            .equals(other.getPublishSummaryToCscc());
        break;
      case 0:
      default:
    }
    result = result && unknownFields.equals(other.unknownFields);
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    switch (actionCase_) {
      case 1:
        hash = (37 * hash) + SAVE_FINDINGS_FIELD_NUMBER;
        hash = (53 * hash) + getSaveFindings().hashCode();
        break;
      case 2:
        hash = (37 * hash) + PUB_SUB_FIELD_NUMBER;
        hash = (53 * hash) + getPubSub().hashCode();
        break;
      case 3:
        hash = (37 * hash) + PUBLISH_SUMMARY_TO_CSCC_FIELD_NUMBER;
        hash = (53 * hash) + getPublishSummaryToCscc().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.privacy.dlp.v2.Action parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.privacy.dlp.v2.Action parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.google.privacy.dlp.v2.Action parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.privacy.dlp.v2.Action 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.privacy.dlp.v2.Action parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.privacy.dlp.v2.Action parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.google.privacy.dlp.v2.Action parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.google.privacy.dlp.v2.Action 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.privacy.dlp.v2.Action parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.google.privacy.dlp.v2.Action 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.privacy.dlp.v2.Action parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.google.privacy.dlp.v2.Action parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(com.google.privacy.dlp.v2.Action prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  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 task to execute on the completion of a job.
   * </pre>
   *
   * Protobuf type {@code google.privacy.dlp.v2.Action}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.Action)
      com.google.privacy.dlp.v2.ActionOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.privacy.dlp.v2.DlpProto.internal_static_google_privacy_dlp_v2_Action_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.privacy.dlp.v2.DlpProto.internal_static_google_privacy_dlp_v2_Action_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.privacy.dlp.v2.Action.class, com.google.privacy.dlp.v2.Action.Builder.class);
    }

    // Construct using com.google.privacy.dlp.v2.Action.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    public Builder clear() {
      super.clear();
      actionCase_ = 0;
      action_ = null;
      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.google.privacy.dlp.v2.DlpProto.internal_static_google_privacy_dlp_v2_Action_descriptor;
    }

    public com.google.privacy.dlp.v2.Action getDefaultInstanceForType() {
      return com.google.privacy.dlp.v2.Action.getDefaultInstance();
    }

    public com.google.privacy.dlp.v2.Action build() {
      com.google.privacy.dlp.v2.Action result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    public com.google.privacy.dlp.v2.Action buildPartial() {
      com.google.privacy.dlp.v2.Action result = new com.google.privacy.dlp.v2.Action(this);
      if (actionCase_ == 1) {
        if (saveFindingsBuilder_ == null) {
          result.action_ = action_;
        } else {
          result.action_ = saveFindingsBuilder_.build();
        }
      }
      if (actionCase_ == 2) {
        if (pubSubBuilder_ == null) {
          result.action_ = action_;
        } else {
          result.action_ = pubSubBuilder_.build();
        }
      }
      if (actionCase_ == 3) {
        if (publishSummaryToCsccBuilder_ == null) {
          result.action_ = action_;
        } else {
          result.action_ = publishSummaryToCsccBuilder_.build();
        }
      }
      result.actionCase_ = actionCase_;
      onBuilt();
      return result;
    }

    public Builder clone() {
      return (Builder) super.clone();
    }
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return (Builder) super.setField(field, value);
    }
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return (Builder) super.clearField(field);
    }
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return (Builder) super.clearOneof(oneof);
    }
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return (Builder) super.setRepeatedField(field, index, value);
    }
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return (Builder) super.addRepeatedField(field, value);
    }
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.google.privacy.dlp.v2.Action) {
        return mergeFrom((com.google.privacy.dlp.v2.Action)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.privacy.dlp.v2.Action other) {
      if (other == com.google.privacy.dlp.v2.Action.getDefaultInstance()) return this;
      switch (other.getActionCase()) {
        case SAVE_FINDINGS: {
          mergeSaveFindings(other.getSaveFindings());
          break;
        }
        case PUB_SUB: {
          mergePubSub(other.getPubSub());
          break;
        }
        case PUBLISH_SUMMARY_TO_CSCC: {
          mergePublishSummaryToCscc(other.getPublishSummaryToCscc());
          break;
        }
        case ACTION_NOT_SET: {
          break;
        }
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    public final boolean isInitialized() {
      return true;
    }

    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      com.google.privacy.dlp.v2.Action parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.google.privacy.dlp.v2.Action) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int actionCase_ = 0;
    private java.lang.Object action_;
    public ActionCase
        getActionCase() {
      return ActionCase.forNumber(
          actionCase_);
    }

    public Builder clearAction() {
      actionCase_ = 0;
      action_ = null;
      onChanged();
      return this;
    }


    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2.Action.SaveFindings, com.google.privacy.dlp.v2.Action.SaveFindings.Builder, com.google.privacy.dlp.v2.Action.SaveFindingsOrBuilder> saveFindingsBuilder_;
    /**
     * <pre>
     * Save resulting findings in a provided location.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.Action.SaveFindings save_findings = 1;</code>
     */
    public boolean hasSaveFindings() {
      return actionCase_ == 1;
    }
    /**
     * <pre>
     * Save resulting findings in a provided location.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.Action.SaveFindings save_findings = 1;</code>
     */
    public com.google.privacy.dlp.v2.Action.SaveFindings getSaveFindings() {
      if (saveFindingsBuilder_ == null) {
        if (actionCase_ == 1) {
          return (com.google.privacy.dlp.v2.Action.SaveFindings) action_;
        }
        return com.google.privacy.dlp.v2.Action.SaveFindings.getDefaultInstance();
      } else {
        if (actionCase_ == 1) {
          return saveFindingsBuilder_.getMessage();
        }
        return com.google.privacy.dlp.v2.Action.SaveFindings.getDefaultInstance();
      }
    }
    /**
     * <pre>
     * Save resulting findings in a provided location.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.Action.SaveFindings save_findings = 1;</code>
     */
    public Builder setSaveFindings(com.google.privacy.dlp.v2.Action.SaveFindings value) {
      if (saveFindingsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        action_ = value;
        onChanged();
      } else {
        saveFindingsBuilder_.setMessage(value);
      }
      actionCase_ = 1;
      return this;
    }
    /**
     * <pre>
     * Save resulting findings in a provided location.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.Action.SaveFindings save_findings = 1;</code>
     */
    public Builder setSaveFindings(
        com.google.privacy.dlp.v2.Action.SaveFindings.Builder builderForValue) {
      if (saveFindingsBuilder_ == null) {
        action_ = builderForValue.build();
        onChanged();
      } else {
        saveFindingsBuilder_.setMessage(builderForValue.build());
      }
      actionCase_ = 1;
      return this;
    }
    /**
     * <pre>
     * Save resulting findings in a provided location.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.Action.SaveFindings save_findings = 1;</code>
     */
    public Builder mergeSaveFindings(com.google.privacy.dlp.v2.Action.SaveFindings value) {
      if (saveFindingsBuilder_ == null) {
        if (actionCase_ == 1 &&
            action_ != com.google.privacy.dlp.v2.Action.SaveFindings.getDefaultInstance()) {
          action_ = com.google.privacy.dlp.v2.Action.SaveFindings.newBuilder((com.google.privacy.dlp.v2.Action.SaveFindings) action_)
              .mergeFrom(value).buildPartial();
        } else {
          action_ = value;
        }
        onChanged();
      } else {
        if (actionCase_ == 1) {
          saveFindingsBuilder_.mergeFrom(value);
        }
        saveFindingsBuilder_.setMessage(value);
      }
      actionCase_ = 1;
      return this;
    }
    /**
     * <pre>
     * Save resulting findings in a provided location.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.Action.SaveFindings save_findings = 1;</code>
     */
    public Builder clearSaveFindings() {
      if (saveFindingsBuilder_ == null) {
        if (actionCase_ == 1) {
          actionCase_ = 0;
          action_ = null;
          onChanged();
        }
      } else {
        if (actionCase_ == 1) {
          actionCase_ = 0;
          action_ = null;
        }
        saveFindingsBuilder_.clear();
      }
      return this;
    }
    /**
     * <pre>
     * Save resulting findings in a provided location.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.Action.SaveFindings save_findings = 1;</code>
     */
    public com.google.privacy.dlp.v2.Action.SaveFindings.Builder getSaveFindingsBuilder() {
      return getSaveFindingsFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * Save resulting findings in a provided location.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.Action.SaveFindings save_findings = 1;</code>
     */
    public com.google.privacy.dlp.v2.Action.SaveFindingsOrBuilder getSaveFindingsOrBuilder() {
      if ((actionCase_ == 1) && (saveFindingsBuilder_ != null)) {
        return saveFindingsBuilder_.getMessageOrBuilder();
      } else {
        if (actionCase_ == 1) {
          return (com.google.privacy.dlp.v2.Action.SaveFindings) action_;
        }
        return com.google.privacy.dlp.v2.Action.SaveFindings.getDefaultInstance();
      }
    }
    /**
     * <pre>
     * Save resulting findings in a provided location.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.Action.SaveFindings save_findings = 1;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2.Action.SaveFindings, com.google.privacy.dlp.v2.Action.SaveFindings.Builder, com.google.privacy.dlp.v2.Action.SaveFindingsOrBuilder> 
        getSaveFindingsFieldBuilder() {
      if (saveFindingsBuilder_ == null) {
        if (!(actionCase_ == 1)) {
          action_ = com.google.privacy.dlp.v2.Action.SaveFindings.getDefaultInstance();
        }
        saveFindingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.privacy.dlp.v2.Action.SaveFindings, com.google.privacy.dlp.v2.Action.SaveFindings.Builder, com.google.privacy.dlp.v2.Action.SaveFindingsOrBuilder>(
                (com.google.privacy.dlp.v2.Action.SaveFindings) action_,
                getParentForChildren(),
                isClean());
        action_ = null;
      }
      actionCase_ = 1;
      onChanged();;
      return saveFindingsBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2.Action.PublishToPubSub, com.google.privacy.dlp.v2.Action.PublishToPubSub.Builder, com.google.privacy.dlp.v2.Action.PublishToPubSubOrBuilder> pubSubBuilder_;
    /**
     * <pre>
     * Publish a notification to a pubsub topic.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;</code>
     */
    public boolean hasPubSub() {
      return actionCase_ == 2;
    }
    /**
     * <pre>
     * Publish a notification to a pubsub topic.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;</code>
     */
    public com.google.privacy.dlp.v2.Action.PublishToPubSub getPubSub() {
      if (pubSubBuilder_ == null) {
        if (actionCase_ == 2) {
          return (com.google.privacy.dlp.v2.Action.PublishToPubSub) action_;
        }
        return com.google.privacy.dlp.v2.Action.PublishToPubSub.getDefaultInstance();
      } else {
        if (actionCase_ == 2) {
          return pubSubBuilder_.getMessage();
        }
        return com.google.privacy.dlp.v2.Action.PublishToPubSub.getDefaultInstance();
      }
    }
    /**
     * <pre>
     * Publish a notification to a pubsub topic.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;</code>
     */
    public Builder setPubSub(com.google.privacy.dlp.v2.Action.PublishToPubSub value) {
      if (pubSubBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        action_ = value;
        onChanged();
      } else {
        pubSubBuilder_.setMessage(value);
      }
      actionCase_ = 2;
      return this;
    }
    /**
     * <pre>
     * Publish a notification to a pubsub topic.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;</code>
     */
    public Builder setPubSub(
        com.google.privacy.dlp.v2.Action.PublishToPubSub.Builder builderForValue) {
      if (pubSubBuilder_ == null) {
        action_ = builderForValue.build();
        onChanged();
      } else {
        pubSubBuilder_.setMessage(builderForValue.build());
      }
      actionCase_ = 2;
      return this;
    }
    /**
     * <pre>
     * Publish a notification to a pubsub topic.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;</code>
     */
    public Builder mergePubSub(com.google.privacy.dlp.v2.Action.PublishToPubSub value) {
      if (pubSubBuilder_ == null) {
        if (actionCase_ == 2 &&
            action_ != com.google.privacy.dlp.v2.Action.PublishToPubSub.getDefaultInstance()) {
          action_ = com.google.privacy.dlp.v2.Action.PublishToPubSub.newBuilder((com.google.privacy.dlp.v2.Action.PublishToPubSub) action_)
              .mergeFrom(value).buildPartial();
        } else {
          action_ = value;
        }
        onChanged();
      } else {
        if (actionCase_ == 2) {
          pubSubBuilder_.mergeFrom(value);
        }
        pubSubBuilder_.setMessage(value);
      }
      actionCase_ = 2;
      return this;
    }
    /**
     * <pre>
     * Publish a notification to a pubsub topic.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;</code>
     */
    public Builder clearPubSub() {
      if (pubSubBuilder_ == null) {
        if (actionCase_ == 2) {
          actionCase_ = 0;
          action_ = null;
          onChanged();
        }
      } else {
        if (actionCase_ == 2) {
          actionCase_ = 0;
          action_ = null;
        }
        pubSubBuilder_.clear();
      }
      return this;
    }
    /**
     * <pre>
     * Publish a notification to a pubsub topic.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;</code>
     */
    public com.google.privacy.dlp.v2.Action.PublishToPubSub.Builder getPubSubBuilder() {
      return getPubSubFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * Publish a notification to a pubsub topic.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;</code>
     */
    public com.google.privacy.dlp.v2.Action.PublishToPubSubOrBuilder getPubSubOrBuilder() {
      if ((actionCase_ == 2) && (pubSubBuilder_ != null)) {
        return pubSubBuilder_.getMessageOrBuilder();
      } else {
        if (actionCase_ == 2) {
          return (com.google.privacy.dlp.v2.Action.PublishToPubSub) action_;
        }
        return com.google.privacy.dlp.v2.Action.PublishToPubSub.getDefaultInstance();
      }
    }
    /**
     * <pre>
     * Publish a notification to a pubsub topic.
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2.Action.PublishToPubSub, com.google.privacy.dlp.v2.Action.PublishToPubSub.Builder, com.google.privacy.dlp.v2.Action.PublishToPubSubOrBuilder> 
        getPubSubFieldBuilder() {
      if (pubSubBuilder_ == null) {
        if (!(actionCase_ == 2)) {
          action_ = com.google.privacy.dlp.v2.Action.PublishToPubSub.getDefaultInstance();
        }
        pubSubBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.privacy.dlp.v2.Action.PublishToPubSub, com.google.privacy.dlp.v2.Action.PublishToPubSub.Builder, com.google.privacy.dlp.v2.Action.PublishToPubSubOrBuilder>(
                (com.google.privacy.dlp.v2.Action.PublishToPubSub) action_,
                getParentForChildren(),
                isClean());
        action_ = null;
      }
      actionCase_ = 2;
      onChanged();;
      return pubSubBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2.Action.PublishSummaryToCscc, com.google.privacy.dlp.v2.Action.PublishSummaryToCscc.Builder, com.google.privacy.dlp.v2.Action.PublishSummaryToCsccOrBuilder> publishSummaryToCsccBuilder_;
    /**
     * <pre>
     * Publish summary to Cloud Security Command Center (Alpha).
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.Action.PublishSummaryToCscc publish_summary_to_cscc = 3;</code>
     */
    public boolean hasPublishSummaryToCscc() {
      return actionCase_ == 3;
    }
    /**
     * <pre>
     * Publish summary to Cloud Security Command Center (Alpha).
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.Action.PublishSummaryToCscc publish_summary_to_cscc = 3;</code>
     */
    public com.google.privacy.dlp.v2.Action.PublishSummaryToCscc getPublishSummaryToCscc() {
      if (publishSummaryToCsccBuilder_ == null) {
        if (actionCase_ == 3) {
          return (com.google.privacy.dlp.v2.Action.PublishSummaryToCscc) action_;
        }
        return com.google.privacy.dlp.v2.Action.PublishSummaryToCscc.getDefaultInstance();
      } else {
        if (actionCase_ == 3) {
          return publishSummaryToCsccBuilder_.getMessage();
        }
        return com.google.privacy.dlp.v2.Action.PublishSummaryToCscc.getDefaultInstance();
      }
    }
    /**
     * <pre>
     * Publish summary to Cloud Security Command Center (Alpha).
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.Action.PublishSummaryToCscc publish_summary_to_cscc = 3;</code>
     */
    public Builder setPublishSummaryToCscc(com.google.privacy.dlp.v2.Action.PublishSummaryToCscc value) {
      if (publishSummaryToCsccBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        action_ = value;
        onChanged();
      } else {
        publishSummaryToCsccBuilder_.setMessage(value);
      }
      actionCase_ = 3;
      return this;
    }
    /**
     * <pre>
     * Publish summary to Cloud Security Command Center (Alpha).
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.Action.PublishSummaryToCscc publish_summary_to_cscc = 3;</code>
     */
    public Builder setPublishSummaryToCscc(
        com.google.privacy.dlp.v2.Action.PublishSummaryToCscc.Builder builderForValue) {
      if (publishSummaryToCsccBuilder_ == null) {
        action_ = builderForValue.build();
        onChanged();
      } else {
        publishSummaryToCsccBuilder_.setMessage(builderForValue.build());
      }
      actionCase_ = 3;
      return this;
    }
    /**
     * <pre>
     * Publish summary to Cloud Security Command Center (Alpha).
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.Action.PublishSummaryToCscc publish_summary_to_cscc = 3;</code>
     */
    public Builder mergePublishSummaryToCscc(com.google.privacy.dlp.v2.Action.PublishSummaryToCscc value) {
      if (publishSummaryToCsccBuilder_ == null) {
        if (actionCase_ == 3 &&
            action_ != com.google.privacy.dlp.v2.Action.PublishSummaryToCscc.getDefaultInstance()) {
          action_ = com.google.privacy.dlp.v2.Action.PublishSummaryToCscc.newBuilder((com.google.privacy.dlp.v2.Action.PublishSummaryToCscc) action_)
              .mergeFrom(value).buildPartial();
        } else {
          action_ = value;
        }
        onChanged();
      } else {
        if (actionCase_ == 3) {
          publishSummaryToCsccBuilder_.mergeFrom(value);
        }
        publishSummaryToCsccBuilder_.setMessage(value);
      }
      actionCase_ = 3;
      return this;
    }
    /**
     * <pre>
     * Publish summary to Cloud Security Command Center (Alpha).
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.Action.PublishSummaryToCscc publish_summary_to_cscc = 3;</code>
     */
    public Builder clearPublishSummaryToCscc() {
      if (publishSummaryToCsccBuilder_ == null) {
        if (actionCase_ == 3) {
          actionCase_ = 0;
          action_ = null;
          onChanged();
        }
      } else {
        if (actionCase_ == 3) {
          actionCase_ = 0;
          action_ = null;
        }
        publishSummaryToCsccBuilder_.clear();
      }
      return this;
    }
    /**
     * <pre>
     * Publish summary to Cloud Security Command Center (Alpha).
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.Action.PublishSummaryToCscc publish_summary_to_cscc = 3;</code>
     */
    public com.google.privacy.dlp.v2.Action.PublishSummaryToCscc.Builder getPublishSummaryToCsccBuilder() {
      return getPublishSummaryToCsccFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * Publish summary to Cloud Security Command Center (Alpha).
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.Action.PublishSummaryToCscc publish_summary_to_cscc = 3;</code>
     */
    public com.google.privacy.dlp.v2.Action.PublishSummaryToCsccOrBuilder getPublishSummaryToCsccOrBuilder() {
      if ((actionCase_ == 3) && (publishSummaryToCsccBuilder_ != null)) {
        return publishSummaryToCsccBuilder_.getMessageOrBuilder();
      } else {
        if (actionCase_ == 3) {
          return (com.google.privacy.dlp.v2.Action.PublishSummaryToCscc) action_;
        }
        return com.google.privacy.dlp.v2.Action.PublishSummaryToCscc.getDefaultInstance();
      }
    }
    /**
     * <pre>
     * Publish summary to Cloud Security Command Center (Alpha).
     * </pre>
     *
     * <code>.google.privacy.dlp.v2.Action.PublishSummaryToCscc publish_summary_to_cscc = 3;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.privacy.dlp.v2.Action.PublishSummaryToCscc, com.google.privacy.dlp.v2.Action.PublishSummaryToCscc.Builder, com.google.privacy.dlp.v2.Action.PublishSummaryToCsccOrBuilder> 
        getPublishSummaryToCsccFieldBuilder() {
      if (publishSummaryToCsccBuilder_ == null) {
        if (!(actionCase_ == 3)) {
          action_ = com.google.privacy.dlp.v2.Action.PublishSummaryToCscc.getDefaultInstance();
        }
        publishSummaryToCsccBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.privacy.dlp.v2.Action.PublishSummaryToCscc, com.google.privacy.dlp.v2.Action.PublishSummaryToCscc.Builder, com.google.privacy.dlp.v2.Action.PublishSummaryToCsccOrBuilder>(
                (com.google.privacy.dlp.v2.Action.PublishSummaryToCscc) action_,
                getParentForChildren(),
                isClean());
        action_ = null;
      }
      actionCase_ = 3;
      onChanged();;
      return publishSummaryToCsccBuilder_;
    }
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFieldsProto3(unknownFields);
    }

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


    // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.Action)
  }

  // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.Action)
  private static final com.google.privacy.dlp.v2.Action DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.Action();
  }

  public static com.google.privacy.dlp.v2.Action getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<Action>
      PARSER = new com.google.protobuf.AbstractParser<Action>() {
    public Action parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new Action(input, extensionRegistry);
    }
  };

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

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

  public com.google.privacy.dlp.v2.Action getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

