Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/admin/v2alpha/memory.proto
package io.envoyproxy.envoy.admin.v2alpha;
/**
*
* Proto representation of the internal memory consumption of an Envoy instance. These represent
* values extracted from an internal TCMalloc instance. For more information, see the section of the
* docs entitled ["Generic Tcmalloc Status"](https://gperftools.github.io/gperftools/tcmalloc.html).
*
*
* Protobuf type {@code envoy.admin.v2alpha.Memory}
*/
public final class Memory extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.admin.v2alpha.Memory)
MemoryOrBuilder {
private static final long serialVersionUID = 0L;
// Use Memory.newBuilder() to construct.
private Memory(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Memory() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Memory();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Memory(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
allocated_ = input.readUInt64();
break;
}
case 16: {
heapSize_ = input.readUInt64();
break;
}
case 24: {
pageheapUnmapped_ = input.readUInt64();
break;
}
case 32: {
pageheapFree_ = input.readUInt64();
break;
}
case 40: {
totalThreadCache_ = input.readUInt64();
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 io.envoyproxy.envoy.admin.v2alpha.MemoryProto.internal_static_envoy_admin_v2alpha_Memory_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.admin.v2alpha.MemoryProto.internal_static_envoy_admin_v2alpha_Memory_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.admin.v2alpha.Memory.class, io.envoyproxy.envoy.admin.v2alpha.Memory.Builder.class);
}
public static final int ALLOCATED_FIELD_NUMBER = 1;
private long allocated_;
/**
*
* The number of bytes allocated by the heap for Envoy. This is an alias for
* `generic.current_allocated_bytes`.
*
*
* uint64 allocated = 1;
*/
public long getAllocated() {
return allocated_;
}
public static final int HEAP_SIZE_FIELD_NUMBER = 2;
private long heapSize_;
/**
*
* The number of bytes reserved by the heap but not necessarily allocated. This is an alias for
* `generic.heap_size`.
*
*
* uint64 heap_size = 2;
*/
public long getHeapSize() {
return heapSize_;
}
public static final int PAGEHEAP_UNMAPPED_FIELD_NUMBER = 3;
private long pageheapUnmapped_;
/**
*
* The number of bytes in free, unmapped pages in the page heap. These bytes always count towards
* virtual memory usage, and depending on the OS, typically do not count towards physical memory
* usage. This is an alias for `tcmalloc.pageheap_unmapped_bytes`.
*
*
* uint64 pageheap_unmapped = 3;
*/
public long getPageheapUnmapped() {
return pageheapUnmapped_;
}
public static final int PAGEHEAP_FREE_FIELD_NUMBER = 4;
private long pageheapFree_;
/**
*
* The number of bytes in free, mapped pages in the page heap. These bytes always count towards
* virtual memory usage, and unless the underlying memory is swapped out by the OS, they also
* count towards physical memory usage. This is an alias for `tcmalloc.pageheap_free_bytes`.
*
*
* uint64 pageheap_free = 4;
*/
public long getPageheapFree() {
return pageheapFree_;
}
public static final int TOTAL_THREAD_CACHE_FIELD_NUMBER = 5;
private long totalThreadCache_;
/**
*
* The amount of memory used by the TCMalloc thread caches (for small objects). This is an alias
* for `tcmalloc.current_total_thread_cache_bytes`.
*
* Proto representation of the internal memory consumption of an Envoy instance. These represent
* values extracted from an internal TCMalloc instance. For more information, see the section of the
* docs entitled ["Generic Tcmalloc Status"](https://gperftools.github.io/gperftools/tcmalloc.html).
*
*
* Protobuf type {@code envoy.admin.v2alpha.Memory}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.admin.v2alpha.Memory)
io.envoyproxy.envoy.admin.v2alpha.MemoryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.admin.v2alpha.MemoryProto.internal_static_envoy_admin_v2alpha_Memory_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.admin.v2alpha.MemoryProto.internal_static_envoy_admin_v2alpha_Memory_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.admin.v2alpha.Memory.class, io.envoyproxy.envoy.admin.v2alpha.Memory.Builder.class);
}
// Construct using io.envoyproxy.envoy.admin.v2alpha.Memory.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
allocated_ = 0L;
heapSize_ = 0L;
pageheapUnmapped_ = 0L;
pageheapFree_ = 0L;
totalThreadCache_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.admin.v2alpha.MemoryProto.internal_static_envoy_admin_v2alpha_Memory_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v2alpha.Memory getDefaultInstanceForType() {
return io.envoyproxy.envoy.admin.v2alpha.Memory.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v2alpha.Memory build() {
io.envoyproxy.envoy.admin.v2alpha.Memory result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v2alpha.Memory buildPartial() {
io.envoyproxy.envoy.admin.v2alpha.Memory result = new io.envoyproxy.envoy.admin.v2alpha.Memory(this);
result.allocated_ = allocated_;
result.heapSize_ = heapSize_;
result.pageheapUnmapped_ = pageheapUnmapped_;
result.pageheapFree_ = pageheapFree_;
result.totalThreadCache_ = totalThreadCache_;
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 io.envoyproxy.envoy.admin.v2alpha.Memory) {
return mergeFrom((io.envoyproxy.envoy.admin.v2alpha.Memory)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.admin.v2alpha.Memory other) {
if (other == io.envoyproxy.envoy.admin.v2alpha.Memory.getDefaultInstance()) return this;
if (other.getAllocated() != 0L) {
setAllocated(other.getAllocated());
}
if (other.getHeapSize() != 0L) {
setHeapSize(other.getHeapSize());
}
if (other.getPageheapUnmapped() != 0L) {
setPageheapUnmapped(other.getPageheapUnmapped());
}
if (other.getPageheapFree() != 0L) {
setPageheapFree(other.getPageheapFree());
}
if (other.getTotalThreadCache() != 0L) {
setTotalThreadCache(other.getTotalThreadCache());
}
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 {
io.envoyproxy.envoy.admin.v2alpha.Memory parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.admin.v2alpha.Memory) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long allocated_ ;
/**
*
* The number of bytes allocated by the heap for Envoy. This is an alias for
* `generic.current_allocated_bytes`.
*
*
* uint64 allocated = 1;
*/
public long getAllocated() {
return allocated_;
}
/**
*
* The number of bytes allocated by the heap for Envoy. This is an alias for
* `generic.current_allocated_bytes`.
*
* The number of bytes in free, unmapped pages in the page heap. These bytes always count towards
* virtual memory usage, and depending on the OS, typically do not count towards physical memory
* usage. This is an alias for `tcmalloc.pageheap_unmapped_bytes`.
*
*
* uint64 pageheap_unmapped = 3;
*/
public long getPageheapUnmapped() {
return pageheapUnmapped_;
}
/**
*
* The number of bytes in free, unmapped pages in the page heap. These bytes always count towards
* virtual memory usage, and depending on the OS, typically do not count towards physical memory
* usage. This is an alias for `tcmalloc.pageheap_unmapped_bytes`.
*
* The number of bytes in free, unmapped pages in the page heap. These bytes always count towards
* virtual memory usage, and depending on the OS, typically do not count towards physical memory
* usage. This is an alias for `tcmalloc.pageheap_unmapped_bytes`.
*
* The number of bytes in free, mapped pages in the page heap. These bytes always count towards
* virtual memory usage, and unless the underlying memory is swapped out by the OS, they also
* count towards physical memory usage. This is an alias for `tcmalloc.pageheap_free_bytes`.
*
*
* uint64 pageheap_free = 4;
*/
public long getPageheapFree() {
return pageheapFree_;
}
/**
*
* The number of bytes in free, mapped pages in the page heap. These bytes always count towards
* virtual memory usage, and unless the underlying memory is swapped out by the OS, they also
* count towards physical memory usage. This is an alias for `tcmalloc.pageheap_free_bytes`.
*
* The number of bytes in free, mapped pages in the page heap. These bytes always count towards
* virtual memory usage, and unless the underlying memory is swapped out by the OS, they also
* count towards physical memory usage. This is an alias for `tcmalloc.pageheap_free_bytes`.
*