public Builder setType(com.google.cloud.storageinsights.v1.Identity.IdentityType value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000002;
      type_ = value.getNumber();
      onChanged();
      return this;
    }
<pre>
Type of identity to use for the datasetConfig.
</pre>

<code>.google.cloud.storageinsights.v1.Identity.IdentityType type = 2;</code>

@param value The type to set.
@return This builder for chaining.
java-storageinsights/proto-google-cloud-storageinsights-v1/src/main/java/com/google/cloud/storageinsights/v1/Identity.java