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

    if (!getParent().equals(other.getParent())) return false;
    if (hasCorpus() != other.hasCorpus()) return false;
    if (hasCorpus()) {
      if (!getCorpus().equals(other.getCorpus())) return false;
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<pre>
Required. The corpus to be created.
</pre>

<code>.google.cloud.visionai.v1.Corpus corpus = 2 [(.google.api.field_behavior) = REQUIRED];
</code>
java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/CreateCorpusRequest.java