All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.gerrit.server.mail.send.AutoValue_EmailResource Maven / Gradle / Ivy

There is a newer version: 3.10.1
Show newest version
package com.google.gerrit.server.mail.send;

import com.google.protobuf.ByteString;
import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_EmailResource extends EmailResource {

  private final String contentId;

  private final String contentType;

  private final ByteString content;

  AutoValue_EmailResource(
      String contentId,
      String contentType,
      ByteString content) {
    if (contentId == null) {
      throw new NullPointerException("Null contentId");
    }
    this.contentId = contentId;
    if (contentType == null) {
      throw new NullPointerException("Null contentType");
    }
    this.contentType = contentType;
    if (content == null) {
      throw new NullPointerException("Null content");
    }
    this.content = content;
  }

  @Override
  public String contentId() {
    return contentId;
  }

  @Override
  public String contentType() {
    return contentType;
  }

  @Override
  public ByteString content() {
    return content;
  }

  @Override
  public String toString() {
    return "EmailResource{"
        + "contentId=" + contentId + ", "
        + "contentType=" + contentType + ", "
        + "content=" + content
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof EmailResource) {
      EmailResource that = (EmailResource) o;
      return this.contentId.equals(that.contentId())
          && this.contentType.equals(that.contentType())
          && this.content.equals(that.content());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= contentId.hashCode();
    h$ *= 1000003;
    h$ ^= contentType.hashCode();
    h$ *= 1000003;
    h$ ^= content.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy