Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  // Generated by the protocol buffer compiler.  DO NOT EDIT!
  // source: qpstest.proto
  
  package io.grpc.testing;

Protobuf type grpc.testing.ServerStats
  
  public  final class ServerStats extends
     com.google.protobuf.GeneratedMessage implements
     // @@protoc_insertion_point(message_implements:grpc.testing.ServerStats)
   // Use ServerStats.newBuilder() to construct.
     super(builder);
   }
   private ServerStats() {
      = 0D;
      = 0D;
      = 0D;
   }
 
   public final com.google.protobuf.UnknownFieldSet
     return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
   }
   private ServerStats(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     this();
     int mutable_bitField0_ = 0;
     try {
       boolean done = false;
       while (!done) {
         int tag = input.readTag();
         switch (tag) {
           case 0:
             done = true;
             break;
           default: {
             if (!input.skipField(tag)) {
               done = true;
             }
             break;
           }
           case 9: {
 
              = input.readDouble();
             break;
           }
           case 17: {
 
              = input.readDouble();
             break;
           }
           case 25: {
 
              = input.readDouble();
             break;
           }
         }
       }
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
           e.getMessage()).setUnfinishedMessage(this);
     } finally {
       makeExtensionsImmutable();
     }
   }
   public static final com.google.protobuf.Descriptors.Descriptor
       getDescriptor() {
   }
 
             io.grpc.testing.ServerStats.classio.grpc.testing.ServerStats.Builder.class);
   }
 
   public static final com.google.protobuf.Parser<ServerStatsPARSER =
     public ServerStats parsePartialFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       return new ServerStats(inputextensionRegistry);
     }
   };
 
     return ;
   }
  public static final int TIME_ELAPSED_FIELD_NUMBER = 1;
  private double timeElapsed_;
  
optional double time_elapsed = 1;
 wall clock time
 
  public double getTimeElapsed() {
    return ;
  }
  public static final int TIME_USER_FIELD_NUMBER = 2;
  private double timeUser_;
  
optional double time_user = 2;
 user time used by the server process and threads
 
  public double getTimeUser() {
    return ;
  }
  public static final int TIME_SYSTEM_FIELD_NUMBER = 3;
  private double timeSystem_;
  
optional double time_system = 3;
 server time used by the server process and all threads
 
  public double getTimeSystem() {
    return ;
  }
  private byte memoizedIsInitialized = -1;
  public final boolean isInitialized() {
    byte isInitialized = ;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;
    return true;
  }
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if ( != 0D) {
      output.writeDouble(1, );
    }
    if ( != 0D) {
      output.writeDouble(2, );
    }
    if ( != 0D) {
      output.writeDouble(3, );
    }
  }
  private int memoizedSerializedSize = -1;
  public int getSerializedSize() {
    int size = ;
    if (size != -1) return size;
    size = 0;
    if ( != 0D) {
      size += com.google.protobuf.CodedOutputStream
        .computeDoubleSize(1, );
    }
    if ( != 0D) {
      size += com.google.protobuf.CodedOutputStream
        .computeDoubleSize(2, );
    }
    if ( != 0D) {
      size += com.google.protobuf.CodedOutputStream
        .computeDoubleSize(3, );
    }
     = size;
    return size;
  }
  private static final long serialVersionUID = 0L;
  public static io.grpc.testing.ServerStats parseFrom(
      com.google.protobuf.ByteString data)
    return .parseFrom(data);
  }
  public static io.grpc.testing.ServerStats parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    return .parseFrom(dataextensionRegistry);
  }
  public static io.grpc.testing.ServerStats parseFrom(byte[] data)
    return .parseFrom(data);
  }
  public static io.grpc.testing.ServerStats parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    return .parseFrom(dataextensionRegistry);
  }
  public static io.grpc.testing.ServerStats parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return .parseFrom(input);
  }
  public static io.grpc.testing.ServerStats parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return .parseFrom(inputextensionRegistry);
  }
      throws java.io.IOException {
    return .parseDelimitedFrom(input);
  }
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return .parseDelimitedFrom(inputextensionRegistry);
  }
  public static io.grpc.testing.ServerStats parseFrom(
      throws java.io.IOException {
    return .parseFrom(input);
  }
  public static io.grpc.testing.ServerStats parseFrom(
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return .parseFrom(inputextensionRegistry);
  }
  public static Builder newBuilder() { return new Builder(); }
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder(io.grpc.testing.ServerStats prototype) {
    return newBuilder().mergeFrom(prototype);
  }
  public Builder toBuilder() { return newBuilder(this); }
  protected Builder newBuilderForType(
    Builder builder = new Builder(parent);
    return builder;
  }
  
Protobuf type grpc.testing.ServerStats
  public static final class Builder extends
      // @@protoc_insertion_point(builder_implements:grpc.testing.ServerStats)
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
    }
              io.grpc.testing.ServerStats.classio.grpc.testing.ServerStats.Builder.class);
    }
    // Construct using io.grpc.testing.ServerStats.newBuilder()
    private Builder() {
    }
    private Builder(
      super(parent);
    }
    private void maybeForceBuilderInitialization() {
      }
    }
    public Builder clear() {
      super.clear();
       = 0D;
       = 0D;
       = 0D;
      return this;
    }
        getDescriptorForType() {
    }
      return io.grpc.testing.ServerStats.getDefaultInstance();
    }
    public io.grpc.testing.ServerStats build() {
      io.grpc.testing.ServerStats result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }
    public io.grpc.testing.ServerStats buildPartial() {
      io.grpc.testing.ServerStats result = new io.grpc.testing.ServerStats(this);
      result.timeElapsed_ = ;
      result.timeUser_ = ;
      result.timeSystem_ = ;
      onBuilt();
      return result;
    }
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof io.grpc.testing.ServerStats) {
        return mergeFrom((io.grpc.testing.ServerStats)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }
    public Builder mergeFrom(io.grpc.testing.ServerStats other) {
      if (other == io.grpc.testing.ServerStats.getDefaultInstance()) return this;
      if (other.getTimeElapsed() != 0D) {
        setTimeElapsed(other.getTimeElapsed());
      }
      if (other.getTimeUser() != 0D) {
        setTimeUser(other.getTimeUser());
      }
      if (other.getTimeSystem() != 0D) {
        setTimeSystem(other.getTimeSystem());
      }
      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 {
      io.grpc.testing.ServerStats parsedMessage = null;
      try {
        parsedMessage = .parsePartialFrom(inputextensionRegistry);
        parsedMessage = (io.grpc.testing.ServerStatse.getUnfinishedMessage();
        throw e;
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private double timeElapsed_ ;
    
optional double time_elapsed = 1;
 wall clock time
 
    public double getTimeElapsed() {
      return ;
    }
    
optional double time_elapsed = 1;
 wall clock time
 
    public Builder setTimeElapsed(double value) {
      
       = value;
      onChanged();
      return this;
    }
    
optional double time_elapsed = 1;
 wall clock time
 
    public Builder clearTimeElapsed() {
      
       = 0D;
      onChanged();
      return this;
    }
    private double timeUser_ ;
    
optional double time_user = 2;
 user time used by the server process and threads
 
    public double getTimeUser() {
      return ;
    }
    
optional double time_user = 2;
 user time used by the server process and threads
 
    public Builder setTimeUser(double value) {
      
       = value;
      onChanged();
      return this;
    }
    
optional double time_user = 2;
 user time used by the server process and threads
 
    public Builder clearTimeUser() {
      
       = 0D;
      onChanged();
      return this;
    }
    private double timeSystem_ ;
    
optional double time_system = 3;
 server time used by the server process and all threads
 
    public double getTimeSystem() {
      return ;
    }
    
optional double time_system = 3;
 server time used by the server process and all threads
 
    public Builder setTimeSystem(double value) {
      
       = value;
      onChanged();
      return this;
    }
    
optional double time_system = 3;
 server time used by the server process and all threads
 
    public Builder clearTimeSystem() {
      
       = 0D;
      onChanged();
      return this;
    }
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return this;
    }
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return this;
    }
    // @@protoc_insertion_point(builder_scope:grpc.testing.ServerStats)
  }
  // @@protoc_insertion_point(class_scope:grpc.testing.ServerStats)
  private static final io.grpc.testing.ServerStats defaultInstance;static {
  }
  public static io.grpc.testing.ServerStats getDefaultInstance() {
    return ;
  }
    return ;
  }
New to GrepCode? Check out our FAQ X