// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: cfsnet.proto

package com.ara.protobuf;

/**
 * Protobuf type {@code ara.cfsnet.Stat}
 */
public  final class Stat extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:ara.cfsnet.Stat)
    StatOrBuilder {
private static final long serialVersionUID = 0L;
  // Use Stat.newBuilder() to construct.
  private Stat(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private Stat() {
    uid_ = 0;
    gid_ = 0;
    mode_ = 0;
    size_ = 0L;
    atime_ = 0L;
    ctime_ = 0L;
    mtime_ = 0L;
    blocks_ = 0L;
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private Stat(
      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 8: {

            uid_ = input.readUInt32();
            break;
          }
          case 16: {

            gid_ = input.readUInt32();
            break;
          }
          case 24: {

            mode_ = input.readUInt32();
            break;
          }
          case 32: {

            size_ = input.readUInt64();
            break;
          }
          case 40: {

            atime_ = input.readUInt64();
            break;
          }
          case 48: {

            ctime_ = input.readUInt64();
            break;
          }
          case 56: {

            mtime_ = input.readUInt64();
            break;
          }
          case 64: {

            blocks_ = input.readUInt64();
            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.ara.protobuf.CFSNetProtobuf.internal_static_ara_cfsnet_Stat_descriptor;
  }

  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ara.protobuf.CFSNetProtobuf.internal_static_ara_cfsnet_Stat_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ara.protobuf.Stat.class, com.ara.protobuf.Stat.Builder.class);
  }

  public static final int UID_FIELD_NUMBER = 1;
  private int uid_;
  /**
   * <code>uint32 uid = 1;</code>
   */
  public int getUid() {
    return uid_;
  }

  public static final int GID_FIELD_NUMBER = 2;
  private int gid_;
  /**
   * <code>uint32 gid = 2;</code>
   */
  public int getGid() {
    return gid_;
  }

  public static final int MODE_FIELD_NUMBER = 3;
  private int mode_;
  /**
   * <code>uint32 mode = 3;</code>
   */
  public int getMode() {
    return mode_;
  }

  public static final int SIZE_FIELD_NUMBER = 4;
  private long size_;
  /**
   * <code>uint64 size = 4;</code>
   */
  public long getSize() {
    return size_;
  }

  public static final int ATIME_FIELD_NUMBER = 5;
  private long atime_;
  /**
   * <code>uint64 atime = 5;</code>
   */
  public long getAtime() {
    return atime_;
  }

  public static final int CTIME_FIELD_NUMBER = 6;
  private long ctime_;
  /**
   * <code>uint64 ctime = 6;</code>
   */
  public long getCtime() {
    return ctime_;
  }

  public static final int MTIME_FIELD_NUMBER = 7;
  private long mtime_;
  /**
   * <code>uint64 mtime = 7;</code>
   */
  public long getMtime() {
    return mtime_;
  }

  public static final int BLOCKS_FIELD_NUMBER = 8;
  private long blocks_;
  /**
   * <code>uint64 blocks = 8;</code>
   */
  public long getBlocks() {
    return blocks_;
  }

  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 (uid_ != 0) {
      output.writeUInt32(1, uid_);
    }
    if (gid_ != 0) {
      output.writeUInt32(2, gid_);
    }
    if (mode_ != 0) {
      output.writeUInt32(3, mode_);
    }
    if (size_ != 0L) {
      output.writeUInt64(4, size_);
    }
    if (atime_ != 0L) {
      output.writeUInt64(5, atime_);
    }
    if (ctime_ != 0L) {
      output.writeUInt64(6, ctime_);
    }
    if (mtime_ != 0L) {
      output.writeUInt64(7, mtime_);
    }
    if (blocks_ != 0L) {
      output.writeUInt64(8, blocks_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (uid_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(1, uid_);
    }
    if (gid_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(2, gid_);
    }
    if (mode_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(3, mode_);
    }
    if (size_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(4, size_);
    }
    if (atime_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(5, atime_);
    }
    if (ctime_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(6, ctime_);
    }
    if (mtime_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(7, mtime_);
    }
    if (blocks_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(8, blocks_);
    }
    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.ara.protobuf.Stat)) {
      return super.equals(obj);
    }
    com.ara.protobuf.Stat other = (com.ara.protobuf.Stat) obj;

    boolean result = true;
    result = result && (getUid()
        == other.getUid());
    result = result && (getGid()
        == other.getGid());
    result = result && (getMode()
        == other.getMode());
    result = result && (getSize()
        == other.getSize());
    result = result && (getAtime()
        == other.getAtime());
    result = result && (getCtime()
        == other.getCtime());
    result = result && (getMtime()
        == other.getMtime());
    result = result && (getBlocks()
        == other.getBlocks());
    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) + UID_FIELD_NUMBER;
    hash = (53 * hash) + getUid();
    hash = (37 * hash) + GID_FIELD_NUMBER;
    hash = (53 * hash) + getGid();
    hash = (37 * hash) + MODE_FIELD_NUMBER;
    hash = (53 * hash) + getMode();
    hash = (37 * hash) + SIZE_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getSize());
    hash = (37 * hash) + ATIME_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getAtime());
    hash = (37 * hash) + CTIME_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getCtime());
    hash = (37 * hash) + MTIME_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getMtime());
    hash = (37 * hash) + BLOCKS_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getBlocks());
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.ara.protobuf.Stat parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ara.protobuf.Stat parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ara.protobuf.Stat parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ara.protobuf.Stat parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ara.protobuf.Stat parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ara.protobuf.Stat parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ara.protobuf.Stat parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ara.protobuf.Stat 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.ara.protobuf.Stat parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.ara.protobuf.Stat 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.ara.protobuf.Stat parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ara.protobuf.Stat 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.ara.protobuf.Stat 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;
  }
  /**
   * Protobuf type {@code ara.cfsnet.Stat}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:ara.cfsnet.Stat)
      com.ara.protobuf.StatOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ara.protobuf.CFSNetProtobuf.internal_static_ara_cfsnet_Stat_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ara.protobuf.CFSNetProtobuf.internal_static_ara_cfsnet_Stat_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ara.protobuf.Stat.class, com.ara.protobuf.Stat.Builder.class);
    }

    // Construct using com.ara.protobuf.Stat.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();
      uid_ = 0;

      gid_ = 0;

      mode_ = 0;

      size_ = 0L;

      atime_ = 0L;

      ctime_ = 0L;

      mtime_ = 0L;

      blocks_ = 0L;

      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ara.protobuf.CFSNetProtobuf.internal_static_ara_cfsnet_Stat_descriptor;
    }

    public com.ara.protobuf.Stat getDefaultInstanceForType() {
      return com.ara.protobuf.Stat.getDefaultInstance();
    }

    public com.ara.protobuf.Stat build() {
      com.ara.protobuf.Stat result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    public com.ara.protobuf.Stat buildPartial() {
      com.ara.protobuf.Stat result = new com.ara.protobuf.Stat(this);
      result.uid_ = uid_;
      result.gid_ = gid_;
      result.mode_ = mode_;
      result.size_ = size_;
      result.atime_ = atime_;
      result.ctime_ = ctime_;
      result.mtime_ = mtime_;
      result.blocks_ = blocks_;
      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.ara.protobuf.Stat) {
        return mergeFrom((com.ara.protobuf.Stat)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ara.protobuf.Stat other) {
      if (other == com.ara.protobuf.Stat.getDefaultInstance()) return this;
      if (other.getUid() != 0) {
        setUid(other.getUid());
      }
      if (other.getGid() != 0) {
        setGid(other.getGid());
      }
      if (other.getMode() != 0) {
        setMode(other.getMode());
      }
      if (other.getSize() != 0L) {
        setSize(other.getSize());
      }
      if (other.getAtime() != 0L) {
        setAtime(other.getAtime());
      }
      if (other.getCtime() != 0L) {
        setCtime(other.getCtime());
      }
      if (other.getMtime() != 0L) {
        setMtime(other.getMtime());
      }
      if (other.getBlocks() != 0L) {
        setBlocks(other.getBlocks());
      }
      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.ara.protobuf.Stat parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ara.protobuf.Stat) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private int uid_ ;
    /**
     * <code>uint32 uid = 1;</code>
     */
    public int getUid() {
      return uid_;
    }
    /**
     * <code>uint32 uid = 1;</code>
     */
    public Builder setUid(int value) {
      
      uid_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 uid = 1;</code>
     */
    public Builder clearUid() {
      
      uid_ = 0;
      onChanged();
      return this;
    }

    private int gid_ ;
    /**
     * <code>uint32 gid = 2;</code>
     */
    public int getGid() {
      return gid_;
    }
    /**
     * <code>uint32 gid = 2;</code>
     */
    public Builder setGid(int value) {
      
      gid_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 gid = 2;</code>
     */
    public Builder clearGid() {
      
      gid_ = 0;
      onChanged();
      return this;
    }

    private int mode_ ;
    /**
     * <code>uint32 mode = 3;</code>
     */
    public int getMode() {
      return mode_;
    }
    /**
     * <code>uint32 mode = 3;</code>
     */
    public Builder setMode(int value) {
      
      mode_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 mode = 3;</code>
     */
    public Builder clearMode() {
      
      mode_ = 0;
      onChanged();
      return this;
    }

    private long size_ ;
    /**
     * <code>uint64 size = 4;</code>
     */
    public long getSize() {
      return size_;
    }
    /**
     * <code>uint64 size = 4;</code>
     */
    public Builder setSize(long value) {
      
      size_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint64 size = 4;</code>
     */
    public Builder clearSize() {
      
      size_ = 0L;
      onChanged();
      return this;
    }

    private long atime_ ;
    /**
     * <code>uint64 atime = 5;</code>
     */
    public long getAtime() {
      return atime_;
    }
    /**
     * <code>uint64 atime = 5;</code>
     */
    public Builder setAtime(long value) {
      
      atime_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint64 atime = 5;</code>
     */
    public Builder clearAtime() {
      
      atime_ = 0L;
      onChanged();
      return this;
    }

    private long ctime_ ;
    /**
     * <code>uint64 ctime = 6;</code>
     */
    public long getCtime() {
      return ctime_;
    }
    /**
     * <code>uint64 ctime = 6;</code>
     */
    public Builder setCtime(long value) {
      
      ctime_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint64 ctime = 6;</code>
     */
    public Builder clearCtime() {
      
      ctime_ = 0L;
      onChanged();
      return this;
    }

    private long mtime_ ;
    /**
     * <code>uint64 mtime = 7;</code>
     */
    public long getMtime() {
      return mtime_;
    }
    /**
     * <code>uint64 mtime = 7;</code>
     */
    public Builder setMtime(long value) {
      
      mtime_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint64 mtime = 7;</code>
     */
    public Builder clearMtime() {
      
      mtime_ = 0L;
      onChanged();
      return this;
    }

    private long blocks_ ;
    /**
     * <code>uint64 blocks = 8;</code>
     */
    public long getBlocks() {
      return blocks_;
    }
    /**
     * <code>uint64 blocks = 8;</code>
     */
    public Builder setBlocks(long value) {
      
      blocks_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint64 blocks = 8;</code>
     */
    public Builder clearBlocks() {
      
      blocks_ = 0L;
      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:ara.cfsnet.Stat)
  }

  // @@protoc_insertion_point(class_scope:ara.cfsnet.Stat)
  private static final com.ara.protobuf.Stat DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.ara.protobuf.Stat();
  }

  public static com.ara.protobuf.Stat getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  public com.ara.protobuf.Stat getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

