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

java.io.deephaven.proto.backplane.script.grpc.GetHeapInfoResponse Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: deephaven/proto/console.proto

// Protobuf Java Version: 3.25.3
package io.deephaven.proto.backplane.script.grpc;

/**
 * Protobuf type {@code io.deephaven.proto.backplane.script.grpc.GetHeapInfoResponse}
 */
public final class GetHeapInfoResponse extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:io.deephaven.proto.backplane.script.grpc.GetHeapInfoResponse)
    GetHeapInfoResponseOrBuilder {
private static final long serialVersionUID = 0L;
  // Use GetHeapInfoResponse.newBuilder() to construct.
  private GetHeapInfoResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private GetHeapInfoResponse() {
  }

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

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.deephaven.proto.backplane.script.grpc.Console.internal_static_io_deephaven_proto_backplane_script_grpc_GetHeapInfoResponse_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.deephaven.proto.backplane.script.grpc.Console.internal_static_io_deephaven_proto_backplane_script_grpc_GetHeapInfoResponse_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.deephaven.proto.backplane.script.grpc.GetHeapInfoResponse.class, io.deephaven.proto.backplane.script.grpc.GetHeapInfoResponse.Builder.class);
  }

  public static final int MAX_MEMORY_FIELD_NUMBER = 1;
  private long maxMemory_ = 0L;
  /**
   * 
   * Returns the maximum amount of memory that the Java virtual machine will attempt to use.
   * If there is no inherent limit then the value Long.MAX_VALUE will be returned.
   * the maximum amount of memory that the virtual machine will attempt to use, measured in bytes
   * 
* * int64 max_memory = 1 [jstype = JS_STRING]; * @return The maxMemory. */ @java.lang.Override public long getMaxMemory() { return maxMemory_; } public static final int TOTAL_MEMORY_FIELD_NUMBER = 2; private long totalMemory_ = 0L; /** *
   * Returns the total amount of memory in the Java virtual machine. The value returned by this method may vary over time, depending on the host environment.
   * Note that the amount of memory required to hold an object of any given type may be implementation-dependent.
   * the total amount of memory currently available for current and future objects, measured in bytes.
   * 
* * int64 total_memory = 2 [jstype = JS_STRING]; * @return The totalMemory. */ @java.lang.Override public long getTotalMemory() { return totalMemory_; } public static final int FREE_MEMORY_FIELD_NUMBER = 3; private long freeMemory_ = 0L; /** *
   * Returns the amount of free memory in the Java Virtual Machine. Calling the gc method may result in increasing the value returned by freeMemory.
   * an approximation to the total amount of memory currently available for future allocated objects, measured in bytes.
   * 
* * int64 free_memory = 3 [jstype = JS_STRING]; * @return The freeMemory. */ @java.lang.Override public long getFreeMemory() { return freeMemory_; } 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 (maxMemory_ != 0L) { output.writeInt64(1, maxMemory_); } if (totalMemory_ != 0L) { output.writeInt64(2, totalMemory_); } if (freeMemory_ != 0L) { output.writeInt64(3, freeMemory_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (maxMemory_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, maxMemory_); } if (totalMemory_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, totalMemory_); } if (freeMemory_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, freeMemory_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.deephaven.proto.backplane.script.grpc.GetHeapInfoResponse)) { return super.equals(obj); } io.deephaven.proto.backplane.script.grpc.GetHeapInfoResponse other = (io.deephaven.proto.backplane.script.grpc.GetHeapInfoResponse) obj; if (getMaxMemory() != other.getMaxMemory()) return false; if (getTotalMemory() != other.getTotalMemory()) return false; if (getFreeMemory() != other.getFreeMemory()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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) + MAX_MEMORY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxMemory()); hash = (37 * hash) + TOTAL_MEMORY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotalMemory()); hash = (37 * hash) + FREE_MEMORY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getFreeMemory()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.deephaven.proto.backplane.script.grpc.GetHeapInfoResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.deephaven.proto.backplane.script.grpc.GetHeapInfoResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.deephaven.proto.backplane.script.grpc.GetHeapInfoResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.deephaven.proto.backplane.script.grpc.GetHeapInfoResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.deephaven.proto.backplane.script.grpc.GetHeapInfoResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.deephaven.proto.backplane.script.grpc.GetHeapInfoResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.deephaven.proto.backplane.script.grpc.GetHeapInfoResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.deephaven.proto.backplane.script.grpc.GetHeapInfoResponse 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 io.deephaven.proto.backplane.script.grpc.GetHeapInfoResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.deephaven.proto.backplane.script.grpc.GetHeapInfoResponse 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 io.deephaven.proto.backplane.script.grpc.GetHeapInfoResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.deephaven.proto.backplane.script.grpc.GetHeapInfoResponse 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(io.deephaven.proto.backplane.script.grpc.GetHeapInfoResponse 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 io.deephaven.proto.backplane.script.grpc.GetHeapInfoResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:io.deephaven.proto.backplane.script.grpc.GetHeapInfoResponse) io.deephaven.proto.backplane.script.grpc.GetHeapInfoResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.deephaven.proto.backplane.script.grpc.Console.internal_static_io_deephaven_proto_backplane_script_grpc_GetHeapInfoResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.deephaven.proto.backplane.script.grpc.Console.internal_static_io_deephaven_proto_backplane_script_grpc_GetHeapInfoResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.deephaven.proto.backplane.script.grpc.GetHeapInfoResponse.class, io.deephaven.proto.backplane.script.grpc.GetHeapInfoResponse.Builder.class); } // Construct using io.deephaven.proto.backplane.script.grpc.GetHeapInfoResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; maxMemory_ = 0L; totalMemory_ = 0L; freeMemory_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.deephaven.proto.backplane.script.grpc.Console.internal_static_io_deephaven_proto_backplane_script_grpc_GetHeapInfoResponse_descriptor; } @java.lang.Override public io.deephaven.proto.backplane.script.grpc.GetHeapInfoResponse getDefaultInstanceForType() { return io.deephaven.proto.backplane.script.grpc.GetHeapInfoResponse.getDefaultInstance(); } @java.lang.Override public io.deephaven.proto.backplane.script.grpc.GetHeapInfoResponse build() { io.deephaven.proto.backplane.script.grpc.GetHeapInfoResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.deephaven.proto.backplane.script.grpc.GetHeapInfoResponse buildPartial() { io.deephaven.proto.backplane.script.grpc.GetHeapInfoResponse result = new io.deephaven.proto.backplane.script.grpc.GetHeapInfoResponse(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.deephaven.proto.backplane.script.grpc.GetHeapInfoResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.maxMemory_ = maxMemory_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.totalMemory_ = totalMemory_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.freeMemory_ = freeMemory_; } } @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 io.deephaven.proto.backplane.script.grpc.GetHeapInfoResponse) { return mergeFrom((io.deephaven.proto.backplane.script.grpc.GetHeapInfoResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.deephaven.proto.backplane.script.grpc.GetHeapInfoResponse other) { if (other == io.deephaven.proto.backplane.script.grpc.GetHeapInfoResponse.getDefaultInstance()) return this; if (other.getMaxMemory() != 0L) { setMaxMemory(other.getMaxMemory()); } if (other.getTotalMemory() != 0L) { setTotalMemory(other.getTotalMemory()); } if (other.getFreeMemory() != 0L) { setFreeMemory(other.getFreeMemory()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { maxMemory_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { totalMemory_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { freeMemory_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long maxMemory_ ; /** *
     * Returns the maximum amount of memory that the Java virtual machine will attempt to use.
     * If there is no inherent limit then the value Long.MAX_VALUE will be returned.
     * the maximum amount of memory that the virtual machine will attempt to use, measured in bytes
     * 
* * int64 max_memory = 1 [jstype = JS_STRING]; * @return The maxMemory. */ @java.lang.Override public long getMaxMemory() { return maxMemory_; } /** *
     * Returns the maximum amount of memory that the Java virtual machine will attempt to use.
     * If there is no inherent limit then the value Long.MAX_VALUE will be returned.
     * the maximum amount of memory that the virtual machine will attempt to use, measured in bytes
     * 
* * int64 max_memory = 1 [jstype = JS_STRING]; * @param value The maxMemory to set. * @return This builder for chaining. */ public Builder setMaxMemory(long value) { maxMemory_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Returns the maximum amount of memory that the Java virtual machine will attempt to use.
     * If there is no inherent limit then the value Long.MAX_VALUE will be returned.
     * the maximum amount of memory that the virtual machine will attempt to use, measured in bytes
     * 
* * int64 max_memory = 1 [jstype = JS_STRING]; * @return This builder for chaining. */ public Builder clearMaxMemory() { bitField0_ = (bitField0_ & ~0x00000001); maxMemory_ = 0L; onChanged(); return this; } private long totalMemory_ ; /** *
     * Returns the total amount of memory in the Java virtual machine. The value returned by this method may vary over time, depending on the host environment.
     * Note that the amount of memory required to hold an object of any given type may be implementation-dependent.
     * the total amount of memory currently available for current and future objects, measured in bytes.
     * 
* * int64 total_memory = 2 [jstype = JS_STRING]; * @return The totalMemory. */ @java.lang.Override public long getTotalMemory() { return totalMemory_; } /** *
     * Returns the total amount of memory in the Java virtual machine. The value returned by this method may vary over time, depending on the host environment.
     * Note that the amount of memory required to hold an object of any given type may be implementation-dependent.
     * the total amount of memory currently available for current and future objects, measured in bytes.
     * 
* * int64 total_memory = 2 [jstype = JS_STRING]; * @param value The totalMemory to set. * @return This builder for chaining. */ public Builder setTotalMemory(long value) { totalMemory_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Returns the total amount of memory in the Java virtual machine. The value returned by this method may vary over time, depending on the host environment.
     * Note that the amount of memory required to hold an object of any given type may be implementation-dependent.
     * the total amount of memory currently available for current and future objects, measured in bytes.
     * 
* * int64 total_memory = 2 [jstype = JS_STRING]; * @return This builder for chaining. */ public Builder clearTotalMemory() { bitField0_ = (bitField0_ & ~0x00000002); totalMemory_ = 0L; onChanged(); return this; } private long freeMemory_ ; /** *
     * Returns the amount of free memory in the Java Virtual Machine. Calling the gc method may result in increasing the value returned by freeMemory.
     * an approximation to the total amount of memory currently available for future allocated objects, measured in bytes.
     * 
* * int64 free_memory = 3 [jstype = JS_STRING]; * @return The freeMemory. */ @java.lang.Override public long getFreeMemory() { return freeMemory_; } /** *
     * Returns the amount of free memory in the Java Virtual Machine. Calling the gc method may result in increasing the value returned by freeMemory.
     * an approximation to the total amount of memory currently available for future allocated objects, measured in bytes.
     * 
* * int64 free_memory = 3 [jstype = JS_STRING]; * @param value The freeMemory to set. * @return This builder for chaining. */ public Builder setFreeMemory(long value) { freeMemory_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Returns the amount of free memory in the Java Virtual Machine. Calling the gc method may result in increasing the value returned by freeMemory.
     * an approximation to the total amount of memory currently available for future allocated objects, measured in bytes.
     * 
* * int64 free_memory = 3 [jstype = JS_STRING]; * @return This builder for chaining. */ public Builder clearFreeMemory() { bitField0_ = (bitField0_ & ~0x00000004); freeMemory_ = 0L; onChanged(); return this; } @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:io.deephaven.proto.backplane.script.grpc.GetHeapInfoResponse) } // @@protoc_insertion_point(class_scope:io.deephaven.proto.backplane.script.grpc.GetHeapInfoResponse) private static final io.deephaven.proto.backplane.script.grpc.GetHeapInfoResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.deephaven.proto.backplane.script.grpc.GetHeapInfoResponse(); } public static io.deephaven.proto.backplane.script.grpc.GetHeapInfoResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GetHeapInfoResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.deephaven.proto.backplane.script.grpc.GetHeapInfoResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy