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

io.proximax.xpx.model.PathTransactionEncryptedMessage Maven / Gradle / Ivy

There is a newer version: 0.1.0-beta.10
Show newest version
/*
 * Copyright 2018 ProximaX Limited
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/*
 * Proximax P2P Storage REST API
 * Proximax P2P Storage REST API
 *
 * OpenAPI spec version: v0.0.1
 * Contact: [email protected]
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */


package io.proximax.xpx.model;

import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModelProperty;

import java.util.Objects;



/**
 * BinaryTransactionEncryptedMessage.
 */
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-03-26T23:27:01.504-04:00")
public class PathTransactionEncryptedMessage {
  
  /** The digest. */
  @SerializedName("digest")
  private String digest = null;

  /** The hash. */
  @SerializedName("hash")
  private String hash = null;

  /** The keywords. */
  @SerializedName("keywords")
  private String keywords = null;

  /** The meta data. */
  @SerializedName("metaData")
  private String metaData = null;

  /** The name. */
  @SerializedName("name")
  private String name = null;

  /** The size. */
  @SerializedName("size")
  private Integer size = null;

  /** The timestamp. */
  @SerializedName("timestamp")
  private Long timestamp = null;

  /** The type. */
  @SerializedName("type")
  private String type = null;

  /**
   * Digest.
   *
   * @param digest the digest
   * @return the path transaction encrypted message
   */
  public PathTransactionEncryptedMessage digest(String digest) {
    this.digest = digest;
    return this;
  }

   /**
    * Get digest.
    *
    * @return digest
    */
  @ApiModelProperty(value = "")
  public String getDigest() {
    return digest;
  }

  /**
   * Sets the digest.
   *
   * @param digest the new digest
   */
  public void setDigest(String digest) {
    this.digest = digest;
  }

  /**
   * Hash.
   *
   * @param hash the hash
   * @return the path transaction encrypted message
   */
  public PathTransactionEncryptedMessage hash(String hash) {
    this.hash = hash;
    return this;
  }

   /**
    * Get hash.
    *
    * @return hash
    */
  @ApiModelProperty(value = "")
  public String getHash() {
    return hash;
  }

  /**
   * Sets the hash.
   *
   * @param hash the new hash
   */
  public void setHash(String hash) {
    this.hash = hash;
  }

  /**
   * Keywords.
   *
   * @param keywords the keywords
   * @return the path transaction encrypted message
   */
  public PathTransactionEncryptedMessage keywords(String keywords) {
    this.keywords = keywords;
    return this;
  }

   /**
    * Get keywords.
    *
    * @return keywords
    */
  @ApiModelProperty(value = "")
  public String getKeywords() {
    return keywords;
  }

  /**
   * Sets the keywords.
   *
   * @param keywords the new keywords
   */
  public void setKeywords(String keywords) {
    this.keywords = keywords;
  }

  /**
   * Meta data.
   *
   * @param metaData the meta data
   * @return the path transaction encrypted message
   */
  public PathTransactionEncryptedMessage metaData(String metaData) {
    this.metaData = metaData;
    return this;
  }

   /**
    * Get metaData.
    *
    * @return metaData
    */
  @ApiModelProperty(value = "")
  public String getMetaData() {
    return metaData;
  }

  /**
   * Sets the meta data.
   *
   * @param metaData the new meta data
   */
  public void setMetaData(String metaData) {
    this.metaData = metaData;
  }

  /**
   * Name.
   *
   * @param name the name
   * @return the path transaction encrypted message
   */
  public PathTransactionEncryptedMessage name(String name) {
    this.name = name;
    return this;
  }

   /**
    * Get name.
    *
    * @return name
    */
  @ApiModelProperty(value = "")
  public String getName() {
    return name;
  }

  /**
   * Sets the name.
   *
   * @param name the new name
   */
  public void setName(String name) {
    this.name = name;
  }

  /**
   * Size.
   *
   * @param size the size
   * @return the path transaction encrypted message
   */
  public PathTransactionEncryptedMessage size(Integer size) {
    this.size = size;
    return this;
  }

   /**
    * Get size.
    *
    * @return size
    */
  @ApiModelProperty(value = "")
  public Integer getSize() {
    return size;
  }

  /**
   * Sets the size.
   *
   * @param size the new size
   */
  public void setSize(Integer size) {
    this.size = size;
  }

  /**
   * Timestamp.
   *
   * @param timestamp the timestamp
   * @return the path transaction encrypted message
   */
  public PathTransactionEncryptedMessage timestamp(Long timestamp) {
    this.timestamp = timestamp;
    return this;
  }

   /**
    * Get timestamp.
    *
    * @return timestamp
    */
  @ApiModelProperty(value = "")
  public Long getTimestamp() {
    return timestamp;
  }

  /**
   * Sets the timestamp.
   *
   * @param timestamp the new timestamp
   */
  public void setTimestamp(Long timestamp) {
    this.timestamp = timestamp;
  }

  /**
   * Type.
   *
   * @param type the type
   * @return the path transaction encrypted message
   */
  public PathTransactionEncryptedMessage type(String type) {
    this.type = type;
    return this;
  }

   /**
    * Get type.
    *
    * @return type
    */
  @ApiModelProperty(value = "")
  public String getType() {
    return type;
  }

  /**
   * Sets the type.
   *
   * @param type the new type
   */
  public void setType(String type) {
    this.type = type;
  }


  /* (non-Javadoc)
   * @see java.lang.Object#equals(java.lang.Object)
   */
  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    PathTransactionEncryptedMessage binaryTransactionEncryptedMessage = (PathTransactionEncryptedMessage) o;
    return Objects.equals(this.digest, binaryTransactionEncryptedMessage.digest) &&
        Objects.equals(this.hash, binaryTransactionEncryptedMessage.hash) &&
        Objects.equals(this.keywords, binaryTransactionEncryptedMessage.keywords) &&
        Objects.equals(this.metaData, binaryTransactionEncryptedMessage.metaData) &&
        Objects.equals(this.name, binaryTransactionEncryptedMessage.name) &&
        Objects.equals(this.size, binaryTransactionEncryptedMessage.size) &&
        Objects.equals(this.timestamp, binaryTransactionEncryptedMessage.timestamp) &&
        Objects.equals(this.type, binaryTransactionEncryptedMessage.type);
  }

  /* (non-Javadoc)
   * @see java.lang.Object#hashCode()
   */
  @Override
  public int hashCode() {
    return Objects.hash(digest, hash, keywords, metaData, name, size, timestamp, type);
  }


  /* (non-Javadoc)
   * @see java.lang.Object#toString()
   */
  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class BinaryTransactionEncryptedMessage {\n");
    
    sb.append("    digest: ").append(toIndentedString(digest)).append("\n");
    sb.append("    hash: ").append(toIndentedString(hash)).append("\n");
    sb.append("    keywords: ").append(toIndentedString(keywords)).append("\n");
    sb.append("    metaData: ").append(toIndentedString(metaData)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    size: ").append(toIndentedString(size)).append("\n");
    sb.append("    timestamp: ").append(toIndentedString(timestamp)).append("\n");
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   *
   * @param o the o
   * @return the string
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
  
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy