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

cz.proto.CacheFileInputStreamStats Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: operator.proto

package cz.proto;

/**
 * Protobuf type {@code cz.proto.CacheFileInputStreamStats}
 */
public final class CacheFileInputStreamStats extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:cz.proto.CacheFileInputStreamStats)
    CacheFileInputStreamStatsOrBuilder {
private static final long serialVersionUID = 0L;
  // Use CacheFileInputStreamStats.newBuilder() to construct.
  private CacheFileInputStreamStats(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private CacheFileInputStreamStats() {
    shortCircuitStreamType_ = "";
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new CacheFileInputStreamStats();
  }

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

            cacheHit_ = input.readBool();
            break;
          }
          case 18: {
            java.lang.String s = input.readStringRequireUtf8();

            shortCircuitStreamType_ = s;
            break;
          }
          case 24: {

            segmentMode_ = input.readBool();
            break;
          }
          case 32: {

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

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

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

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

            directReadTimeElapsedUs_ = input.readUInt64();
            break;
          }
          case 74: {
            cz.proto.FileInputStreamStats.Builder subBuilder = null;
            if (((bitField0_ & 0x00000001) != 0)) {
              subBuilder = baseStreamStats_.toBuilder();
            }
            baseStreamStats_ = input.readMessage(cz.proto.FileInputStreamStats.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(baseStreamStats_);
              baseStreamStats_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000001;
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            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 cz.proto.OperatorProto.internal_static_cz_proto_CacheFileInputStreamStats_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return cz.proto.OperatorProto.internal_static_cz_proto_CacheFileInputStreamStats_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            cz.proto.CacheFileInputStreamStats.class, cz.proto.CacheFileInputStreamStats.Builder.class);
  }

  private int bitField0_;
  public static final int CACHE_HIT_FIELD_NUMBER = 1;
  private boolean cacheHit_;
  /**
   * bool cache_hit = 1;
   * @return The cacheHit.
   */
  @java.lang.Override
  public boolean getCacheHit() {
    return cacheHit_;
  }

  public static final int SHORT_CIRCUIT_STREAM_TYPE_FIELD_NUMBER = 2;
  private volatile java.lang.Object shortCircuitStreamType_;
  /**
   * string short_circuit_stream_type = 2;
   * @return The shortCircuitStreamType.
   */
  @java.lang.Override
  public java.lang.String getShortCircuitStreamType() {
    java.lang.Object ref = shortCircuitStreamType_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      shortCircuitStreamType_ = s;
      return s;
    }
  }
  /**
   * string short_circuit_stream_type = 2;
   * @return The bytes for shortCircuitStreamType.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getShortCircuitStreamTypeBytes() {
    java.lang.Object ref = shortCircuitStreamType_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      shortCircuitStreamType_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SEGMENT_MODE_FIELD_NUMBER = 3;
  private boolean segmentMode_;
  /**
   * bool segment_mode = 3;
   * @return The segmentMode.
   */
  @java.lang.Override
  public boolean getSegmentMode() {
    return segmentMode_;
  }

  public static final int NON_READ_TIME_ELAPSED_US_FIELD_NUMBER = 4;
  private long nonReadTimeElapsedUs_;
  /**
   * uint64 non_read_time_elapsed_us = 4;
   * @return The nonReadTimeElapsedUs.
   */
  @java.lang.Override
  public long getNonReadTimeElapsedUs() {
    return nonReadTimeElapsedUs_;
  }

  public static final int RPC_READ_BYTES_FIELD_NUMBER = 5;
  private long rpcReadBytes_;
  /**
   * uint64 rpc_read_bytes = 5;
   * @return The rpcReadBytes.
   */
  @java.lang.Override
  public long getRpcReadBytes() {
    return rpcReadBytes_;
  }

  public static final int RPC_READ_TIME_ELAPSED_US_FIELD_NUMBER = 6;
  private long rpcReadTimeElapsedUs_;
  /**
   * uint64 rpc_read_time_elapsed_us = 6;
   * @return The rpcReadTimeElapsedUs.
   */
  @java.lang.Override
  public long getRpcReadTimeElapsedUs() {
    return rpcReadTimeElapsedUs_;
  }

  public static final int DIRECT_READ_BYTES_FIELD_NUMBER = 7;
  private long directReadBytes_;
  /**
   * uint64 direct_read_bytes = 7;
   * @return The directReadBytes.
   */
  @java.lang.Override
  public long getDirectReadBytes() {
    return directReadBytes_;
  }

  public static final int DIRECT_READ_TIME_ELAPSED_US_FIELD_NUMBER = 8;
  private long directReadTimeElapsedUs_;
  /**
   * uint64 direct_read_time_elapsed_us = 8;
   * @return The directReadTimeElapsedUs.
   */
  @java.lang.Override
  public long getDirectReadTimeElapsedUs() {
    return directReadTimeElapsedUs_;
  }

  public static final int BASE_STREAM_STATS_FIELD_NUMBER = 9;
  private cz.proto.FileInputStreamStats baseStreamStats_;
  /**
   * 
   * If cache hit, base_stream_stats is not set.
   * 
* * optional .cz.proto.FileInputStreamStats base_stream_stats = 9; * @return Whether the baseStreamStats field is set. */ @java.lang.Override public boolean hasBaseStreamStats() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * If cache hit, base_stream_stats is not set.
   * 
* * optional .cz.proto.FileInputStreamStats base_stream_stats = 9; * @return The baseStreamStats. */ @java.lang.Override public cz.proto.FileInputStreamStats getBaseStreamStats() { return baseStreamStats_ == null ? cz.proto.FileInputStreamStats.getDefaultInstance() : baseStreamStats_; } /** *
   * If cache hit, base_stream_stats is not set.
   * 
* * optional .cz.proto.FileInputStreamStats base_stream_stats = 9; */ @java.lang.Override public cz.proto.FileInputStreamStatsOrBuilder getBaseStreamStatsOrBuilder() { return baseStreamStats_ == null ? cz.proto.FileInputStreamStats.getDefaultInstance() : baseStreamStats_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (cacheHit_ != false) { output.writeBool(1, cacheHit_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(shortCircuitStreamType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, shortCircuitStreamType_); } if (segmentMode_ != false) { output.writeBool(3, segmentMode_); } if (nonReadTimeElapsedUs_ != 0L) { output.writeUInt64(4, nonReadTimeElapsedUs_); } if (rpcReadBytes_ != 0L) { output.writeUInt64(5, rpcReadBytes_); } if (rpcReadTimeElapsedUs_ != 0L) { output.writeUInt64(6, rpcReadTimeElapsedUs_); } if (directReadBytes_ != 0L) { output.writeUInt64(7, directReadBytes_); } if (directReadTimeElapsedUs_ != 0L) { output.writeUInt64(8, directReadTimeElapsedUs_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(9, getBaseStreamStats()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (cacheHit_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, cacheHit_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(shortCircuitStreamType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, shortCircuitStreamType_); } if (segmentMode_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, segmentMode_); } if (nonReadTimeElapsedUs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, nonReadTimeElapsedUs_); } if (rpcReadBytes_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, rpcReadBytes_); } if (rpcReadTimeElapsedUs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(6, rpcReadTimeElapsedUs_); } if (directReadBytes_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(7, directReadBytes_); } if (directReadTimeElapsedUs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(8, directReadTimeElapsedUs_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getBaseStreamStats()); } 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 cz.proto.CacheFileInputStreamStats)) { return super.equals(obj); } cz.proto.CacheFileInputStreamStats other = (cz.proto.CacheFileInputStreamStats) obj; if (getCacheHit() != other.getCacheHit()) return false; if (!getShortCircuitStreamType() .equals(other.getShortCircuitStreamType())) return false; if (getSegmentMode() != other.getSegmentMode()) return false; if (getNonReadTimeElapsedUs() != other.getNonReadTimeElapsedUs()) return false; if (getRpcReadBytes() != other.getRpcReadBytes()) return false; if (getRpcReadTimeElapsedUs() != other.getRpcReadTimeElapsedUs()) return false; if (getDirectReadBytes() != other.getDirectReadBytes()) return false; if (getDirectReadTimeElapsedUs() != other.getDirectReadTimeElapsedUs()) return false; if (hasBaseStreamStats() != other.hasBaseStreamStats()) return false; if (hasBaseStreamStats()) { if (!getBaseStreamStats() .equals(other.getBaseStreamStats())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CACHE_HIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getCacheHit()); hash = (37 * hash) + SHORT_CIRCUIT_STREAM_TYPE_FIELD_NUMBER; hash = (53 * hash) + getShortCircuitStreamType().hashCode(); hash = (37 * hash) + SEGMENT_MODE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getSegmentMode()); hash = (37 * hash) + NON_READ_TIME_ELAPSED_US_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNonReadTimeElapsedUs()); hash = (37 * hash) + RPC_READ_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRpcReadBytes()); hash = (37 * hash) + RPC_READ_TIME_ELAPSED_US_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRpcReadTimeElapsedUs()); hash = (37 * hash) + DIRECT_READ_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDirectReadBytes()); hash = (37 * hash) + DIRECT_READ_TIME_ELAPSED_US_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDirectReadTimeElapsedUs()); if (hasBaseStreamStats()) { hash = (37 * hash) + BASE_STREAM_STATS_FIELD_NUMBER; hash = (53 * hash) + getBaseStreamStats().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cz.proto.CacheFileInputStreamStats parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cz.proto.CacheFileInputStreamStats parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cz.proto.CacheFileInputStreamStats parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cz.proto.CacheFileInputStreamStats parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cz.proto.CacheFileInputStreamStats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cz.proto.CacheFileInputStreamStats parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cz.proto.CacheFileInputStreamStats parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cz.proto.CacheFileInputStreamStats 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 cz.proto.CacheFileInputStreamStats parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cz.proto.CacheFileInputStreamStats 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 cz.proto.CacheFileInputStreamStats parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cz.proto.CacheFileInputStreamStats parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cz.proto.CacheFileInputStreamStats prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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 cz.proto.CacheFileInputStreamStats} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cz.proto.CacheFileInputStreamStats) cz.proto.CacheFileInputStreamStatsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cz.proto.OperatorProto.internal_static_cz_proto_CacheFileInputStreamStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cz.proto.OperatorProto.internal_static_cz_proto_CacheFileInputStreamStats_fieldAccessorTable .ensureFieldAccessorsInitialized( cz.proto.CacheFileInputStreamStats.class, cz.proto.CacheFileInputStreamStats.Builder.class); } // Construct using cz.proto.CacheFileInputStreamStats.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getBaseStreamStatsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); cacheHit_ = false; shortCircuitStreamType_ = ""; segmentMode_ = false; nonReadTimeElapsedUs_ = 0L; rpcReadBytes_ = 0L; rpcReadTimeElapsedUs_ = 0L; directReadBytes_ = 0L; directReadTimeElapsedUs_ = 0L; if (baseStreamStatsBuilder_ == null) { baseStreamStats_ = null; } else { baseStreamStatsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cz.proto.OperatorProto.internal_static_cz_proto_CacheFileInputStreamStats_descriptor; } @java.lang.Override public cz.proto.CacheFileInputStreamStats getDefaultInstanceForType() { return cz.proto.CacheFileInputStreamStats.getDefaultInstance(); } @java.lang.Override public cz.proto.CacheFileInputStreamStats build() { cz.proto.CacheFileInputStreamStats result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cz.proto.CacheFileInputStreamStats buildPartial() { cz.proto.CacheFileInputStreamStats result = new cz.proto.CacheFileInputStreamStats(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.cacheHit_ = cacheHit_; result.shortCircuitStreamType_ = shortCircuitStreamType_; result.segmentMode_ = segmentMode_; result.nonReadTimeElapsedUs_ = nonReadTimeElapsedUs_; result.rpcReadBytes_ = rpcReadBytes_; result.rpcReadTimeElapsedUs_ = rpcReadTimeElapsedUs_; result.directReadBytes_ = directReadBytes_; result.directReadTimeElapsedUs_ = directReadTimeElapsedUs_; if (((from_bitField0_ & 0x00000001) != 0)) { if (baseStreamStatsBuilder_ == null) { result.baseStreamStats_ = baseStreamStats_; } else { result.baseStreamStats_ = baseStreamStatsBuilder_.build(); } to_bitField0_ |= 0x00000001; } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cz.proto.CacheFileInputStreamStats) { return mergeFrom((cz.proto.CacheFileInputStreamStats)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cz.proto.CacheFileInputStreamStats other) { if (other == cz.proto.CacheFileInputStreamStats.getDefaultInstance()) return this; if (other.getCacheHit() != false) { setCacheHit(other.getCacheHit()); } if (!other.getShortCircuitStreamType().isEmpty()) { shortCircuitStreamType_ = other.shortCircuitStreamType_; onChanged(); } if (other.getSegmentMode() != false) { setSegmentMode(other.getSegmentMode()); } if (other.getNonReadTimeElapsedUs() != 0L) { setNonReadTimeElapsedUs(other.getNonReadTimeElapsedUs()); } if (other.getRpcReadBytes() != 0L) { setRpcReadBytes(other.getRpcReadBytes()); } if (other.getRpcReadTimeElapsedUs() != 0L) { setRpcReadTimeElapsedUs(other.getRpcReadTimeElapsedUs()); } if (other.getDirectReadBytes() != 0L) { setDirectReadBytes(other.getDirectReadBytes()); } if (other.getDirectReadTimeElapsedUs() != 0L) { setDirectReadTimeElapsedUs(other.getDirectReadTimeElapsedUs()); } if (other.hasBaseStreamStats()) { mergeBaseStreamStats(other.getBaseStreamStats()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cz.proto.CacheFileInputStreamStats parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cz.proto.CacheFileInputStreamStats) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private boolean cacheHit_ ; /** * bool cache_hit = 1; * @return The cacheHit. */ @java.lang.Override public boolean getCacheHit() { return cacheHit_; } /** * bool cache_hit = 1; * @param value The cacheHit to set. * @return This builder for chaining. */ public Builder setCacheHit(boolean value) { cacheHit_ = value; onChanged(); return this; } /** * bool cache_hit = 1; * @return This builder for chaining. */ public Builder clearCacheHit() { cacheHit_ = false; onChanged(); return this; } private java.lang.Object shortCircuitStreamType_ = ""; /** * string short_circuit_stream_type = 2; * @return The shortCircuitStreamType. */ public java.lang.String getShortCircuitStreamType() { java.lang.Object ref = shortCircuitStreamType_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); shortCircuitStreamType_ = s; return s; } else { return (java.lang.String) ref; } } /** * string short_circuit_stream_type = 2; * @return The bytes for shortCircuitStreamType. */ public com.google.protobuf.ByteString getShortCircuitStreamTypeBytes() { java.lang.Object ref = shortCircuitStreamType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); shortCircuitStreamType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string short_circuit_stream_type = 2; * @param value The shortCircuitStreamType to set. * @return This builder for chaining. */ public Builder setShortCircuitStreamType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } shortCircuitStreamType_ = value; onChanged(); return this; } /** * string short_circuit_stream_type = 2; * @return This builder for chaining. */ public Builder clearShortCircuitStreamType() { shortCircuitStreamType_ = getDefaultInstance().getShortCircuitStreamType(); onChanged(); return this; } /** * string short_circuit_stream_type = 2; * @param value The bytes for shortCircuitStreamType to set. * @return This builder for chaining. */ public Builder setShortCircuitStreamTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); shortCircuitStreamType_ = value; onChanged(); return this; } private boolean segmentMode_ ; /** * bool segment_mode = 3; * @return The segmentMode. */ @java.lang.Override public boolean getSegmentMode() { return segmentMode_; } /** * bool segment_mode = 3; * @param value The segmentMode to set. * @return This builder for chaining. */ public Builder setSegmentMode(boolean value) { segmentMode_ = value; onChanged(); return this; } /** * bool segment_mode = 3; * @return This builder for chaining. */ public Builder clearSegmentMode() { segmentMode_ = false; onChanged(); return this; } private long nonReadTimeElapsedUs_ ; /** * uint64 non_read_time_elapsed_us = 4; * @return The nonReadTimeElapsedUs. */ @java.lang.Override public long getNonReadTimeElapsedUs() { return nonReadTimeElapsedUs_; } /** * uint64 non_read_time_elapsed_us = 4; * @param value The nonReadTimeElapsedUs to set. * @return This builder for chaining. */ public Builder setNonReadTimeElapsedUs(long value) { nonReadTimeElapsedUs_ = value; onChanged(); return this; } /** * uint64 non_read_time_elapsed_us = 4; * @return This builder for chaining. */ public Builder clearNonReadTimeElapsedUs() { nonReadTimeElapsedUs_ = 0L; onChanged(); return this; } private long rpcReadBytes_ ; /** * uint64 rpc_read_bytes = 5; * @return The rpcReadBytes. */ @java.lang.Override public long getRpcReadBytes() { return rpcReadBytes_; } /** * uint64 rpc_read_bytes = 5; * @param value The rpcReadBytes to set. * @return This builder for chaining. */ public Builder setRpcReadBytes(long value) { rpcReadBytes_ = value; onChanged(); return this; } /** * uint64 rpc_read_bytes = 5; * @return This builder for chaining. */ public Builder clearRpcReadBytes() { rpcReadBytes_ = 0L; onChanged(); return this; } private long rpcReadTimeElapsedUs_ ; /** * uint64 rpc_read_time_elapsed_us = 6; * @return The rpcReadTimeElapsedUs. */ @java.lang.Override public long getRpcReadTimeElapsedUs() { return rpcReadTimeElapsedUs_; } /** * uint64 rpc_read_time_elapsed_us = 6; * @param value The rpcReadTimeElapsedUs to set. * @return This builder for chaining. */ public Builder setRpcReadTimeElapsedUs(long value) { rpcReadTimeElapsedUs_ = value; onChanged(); return this; } /** * uint64 rpc_read_time_elapsed_us = 6; * @return This builder for chaining. */ public Builder clearRpcReadTimeElapsedUs() { rpcReadTimeElapsedUs_ = 0L; onChanged(); return this; } private long directReadBytes_ ; /** * uint64 direct_read_bytes = 7; * @return The directReadBytes. */ @java.lang.Override public long getDirectReadBytes() { return directReadBytes_; } /** * uint64 direct_read_bytes = 7; * @param value The directReadBytes to set. * @return This builder for chaining. */ public Builder setDirectReadBytes(long value) { directReadBytes_ = value; onChanged(); return this; } /** * uint64 direct_read_bytes = 7; * @return This builder for chaining. */ public Builder clearDirectReadBytes() { directReadBytes_ = 0L; onChanged(); return this; } private long directReadTimeElapsedUs_ ; /** * uint64 direct_read_time_elapsed_us = 8; * @return The directReadTimeElapsedUs. */ @java.lang.Override public long getDirectReadTimeElapsedUs() { return directReadTimeElapsedUs_; } /** * uint64 direct_read_time_elapsed_us = 8; * @param value The directReadTimeElapsedUs to set. * @return This builder for chaining. */ public Builder setDirectReadTimeElapsedUs(long value) { directReadTimeElapsedUs_ = value; onChanged(); return this; } /** * uint64 direct_read_time_elapsed_us = 8; * @return This builder for chaining. */ public Builder clearDirectReadTimeElapsedUs() { directReadTimeElapsedUs_ = 0L; onChanged(); return this; } private cz.proto.FileInputStreamStats baseStreamStats_; private com.google.protobuf.SingleFieldBuilderV3< cz.proto.FileInputStreamStats, cz.proto.FileInputStreamStats.Builder, cz.proto.FileInputStreamStatsOrBuilder> baseStreamStatsBuilder_; /** *
     * If cache hit, base_stream_stats is not set.
     * 
* * optional .cz.proto.FileInputStreamStats base_stream_stats = 9; * @return Whether the baseStreamStats field is set. */ public boolean hasBaseStreamStats() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * If cache hit, base_stream_stats is not set.
     * 
* * optional .cz.proto.FileInputStreamStats base_stream_stats = 9; * @return The baseStreamStats. */ public cz.proto.FileInputStreamStats getBaseStreamStats() { if (baseStreamStatsBuilder_ == null) { return baseStreamStats_ == null ? cz.proto.FileInputStreamStats.getDefaultInstance() : baseStreamStats_; } else { return baseStreamStatsBuilder_.getMessage(); } } /** *
     * If cache hit, base_stream_stats is not set.
     * 
* * optional .cz.proto.FileInputStreamStats base_stream_stats = 9; */ public Builder setBaseStreamStats(cz.proto.FileInputStreamStats value) { if (baseStreamStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } baseStreamStats_ = value; onChanged(); } else { baseStreamStatsBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** *
     * If cache hit, base_stream_stats is not set.
     * 
* * optional .cz.proto.FileInputStreamStats base_stream_stats = 9; */ public Builder setBaseStreamStats( cz.proto.FileInputStreamStats.Builder builderForValue) { if (baseStreamStatsBuilder_ == null) { baseStreamStats_ = builderForValue.build(); onChanged(); } else { baseStreamStatsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** *
     * If cache hit, base_stream_stats is not set.
     * 
* * optional .cz.proto.FileInputStreamStats base_stream_stats = 9; */ public Builder mergeBaseStreamStats(cz.proto.FileInputStreamStats value) { if (baseStreamStatsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && baseStreamStats_ != null && baseStreamStats_ != cz.proto.FileInputStreamStats.getDefaultInstance()) { baseStreamStats_ = cz.proto.FileInputStreamStats.newBuilder(baseStreamStats_).mergeFrom(value).buildPartial(); } else { baseStreamStats_ = value; } onChanged(); } else { baseStreamStatsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** *
     * If cache hit, base_stream_stats is not set.
     * 
* * optional .cz.proto.FileInputStreamStats base_stream_stats = 9; */ public Builder clearBaseStreamStats() { if (baseStreamStatsBuilder_ == null) { baseStreamStats_ = null; onChanged(); } else { baseStreamStatsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** *
     * If cache hit, base_stream_stats is not set.
     * 
* * optional .cz.proto.FileInputStreamStats base_stream_stats = 9; */ public cz.proto.FileInputStreamStats.Builder getBaseStreamStatsBuilder() { bitField0_ |= 0x00000001; onChanged(); return getBaseStreamStatsFieldBuilder().getBuilder(); } /** *
     * If cache hit, base_stream_stats is not set.
     * 
* * optional .cz.proto.FileInputStreamStats base_stream_stats = 9; */ public cz.proto.FileInputStreamStatsOrBuilder getBaseStreamStatsOrBuilder() { if (baseStreamStatsBuilder_ != null) { return baseStreamStatsBuilder_.getMessageOrBuilder(); } else { return baseStreamStats_ == null ? cz.proto.FileInputStreamStats.getDefaultInstance() : baseStreamStats_; } } /** *
     * If cache hit, base_stream_stats is not set.
     * 
* * optional .cz.proto.FileInputStreamStats base_stream_stats = 9; */ private com.google.protobuf.SingleFieldBuilderV3< cz.proto.FileInputStreamStats, cz.proto.FileInputStreamStats.Builder, cz.proto.FileInputStreamStatsOrBuilder> getBaseStreamStatsFieldBuilder() { if (baseStreamStatsBuilder_ == null) { baseStreamStatsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cz.proto.FileInputStreamStats, cz.proto.FileInputStreamStats.Builder, cz.proto.FileInputStreamStatsOrBuilder>( getBaseStreamStats(), getParentForChildren(), isClean()); baseStreamStats_ = null; } return baseStreamStatsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cz.proto.CacheFileInputStreamStats) } // @@protoc_insertion_point(class_scope:cz.proto.CacheFileInputStreamStats) private static final cz.proto.CacheFileInputStreamStats DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cz.proto.CacheFileInputStreamStats(); } public static cz.proto.CacheFileInputStreamStats getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CacheFileInputStreamStats parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CacheFileInputStreamStats(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cz.proto.CacheFileInputStreamStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy