Package io.envoyproxy.envoy.admin.v3
Class Memory.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Memory.Builder>
io.envoyproxy.envoy.admin.v3.Memory.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,MemoryOrBuilder,Cloneable
- Enclosing class:
- Memory
public static final class Memory.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Memory.Builder>
implements MemoryOrBuilder
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). [#next-free-field: 7]Protobuf type
envoy.admin.v3.Memory-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The number of bytes allocated by the heap for Envoy.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The number of bytes reserved by the heap but not necessarily allocated.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The number of bytes in free, mapped pages in the page heap.The number of bytes in free, unmapped pages in the page heap.The number of bytes of the physical memory usage by the allocator.The amount of memory used by the TCMalloc thread caches (for small objects).clone()longThe number of bytes allocated by the heap for Envoy.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlongThe number of bytes reserved by the heap but not necessarily allocated.longThe number of bytes in free, mapped pages in the page heap.longThe number of bytes in free, unmapped pages in the page heap.longThe number of bytes of the physical memory usage by the allocator.longThe amount of memory used by the TCMalloc thread caches (for small objects).protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final Memory.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setAllocated(long value) The number of bytes allocated by the heap for Envoy.setHeapSize(long value) The number of bytes reserved by the heap but not necessarily allocated.setPageheapFree(long value) The number of bytes in free, mapped pages in the page heap.setPageheapUnmapped(long value) The number of bytes in free, unmapped pages in the page heap.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setTotalPhysicalBytes(long value) The number of bytes of the physical memory usage by the allocator.setTotalThreadCache(long value) The amount of memory used by the TCMalloc thread caches (for small objects).final Memory.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Memory.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Memory.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Memory.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Memory.Builder>
-
setField
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Memory.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Memory.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Memory.Builder>
-
setRepeatedField
public Memory.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Memory.Builder>
-
addRepeatedField
public Memory.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Memory.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Memory.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Memory.Builder>
-
mergeFrom
public Memory.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Memory.Builder>- Throws:
IOException
-
getAllocated
public long getAllocated()The number of bytes allocated by the heap for Envoy. This is an alias for ``generic.current_allocated_bytes``.
uint64 allocated = 1;- Specified by:
getAllocatedin interfaceMemoryOrBuilder- Returns:
- The allocated.
-
setAllocated
The number of bytes allocated by the heap for Envoy. This is an alias for ``generic.current_allocated_bytes``.
uint64 allocated = 1;- Parameters:
value- The allocated to set.- Returns:
- This builder for chaining.
-
clearAllocated
The number of bytes allocated by the heap for Envoy. This is an alias for ``generic.current_allocated_bytes``.
uint64 allocated = 1;- Returns:
- This builder for chaining.
-
getHeapSize
public long getHeapSize()The number of bytes reserved by the heap but not necessarily allocated. This is an alias for ``generic.heap_size``.
uint64 heap_size = 2;- Specified by:
getHeapSizein interfaceMemoryOrBuilder- Returns:
- The heapSize.
-
setHeapSize
The number of bytes reserved by the heap but not necessarily allocated. This is an alias for ``generic.heap_size``.
uint64 heap_size = 2;- Parameters:
value- The heapSize to set.- Returns:
- This builder for chaining.
-
clearHeapSize
The number of bytes reserved by the heap but not necessarily allocated. This is an alias for ``generic.heap_size``.
uint64 heap_size = 2;- Returns:
- This builder for chaining.
-
getPageheapUnmapped
public long getPageheapUnmapped()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;- Specified by:
getPageheapUnmappedin interfaceMemoryOrBuilder- Returns:
- The pageheapUnmapped.
-
setPageheapUnmapped
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;- Parameters:
value- The pageheapUnmapped to set.- Returns:
- This builder for chaining.
-
clearPageheapUnmapped
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;- Returns:
- This builder for chaining.
-
getPageheapFree
public long getPageheapFree()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;- Specified by:
getPageheapFreein interfaceMemoryOrBuilder- Returns:
- The pageheapFree.
-
setPageheapFree
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;- Parameters:
value- The pageheapFree to set.- Returns:
- This builder for chaining.
-
clearPageheapFree
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;- Returns:
- This builder for chaining.
-
getTotalThreadCache
public long getTotalThreadCache()The amount of memory used by the TCMalloc thread caches (for small objects). This is an alias for ``tcmalloc.current_total_thread_cache_bytes``.
uint64 total_thread_cache = 5;- Specified by:
getTotalThreadCachein interfaceMemoryOrBuilder- Returns:
- The totalThreadCache.
-
setTotalThreadCache
The amount of memory used by the TCMalloc thread caches (for small objects). This is an alias for ``tcmalloc.current_total_thread_cache_bytes``.
uint64 total_thread_cache = 5;- Parameters:
value- The totalThreadCache to set.- Returns:
- This builder for chaining.
-
clearTotalThreadCache
The amount of memory used by the TCMalloc thread caches (for small objects). This is an alias for ``tcmalloc.current_total_thread_cache_bytes``.
uint64 total_thread_cache = 5;- Returns:
- This builder for chaining.
-
getTotalPhysicalBytes
public long getTotalPhysicalBytes()The number of bytes of the physical memory usage by the allocator. This is an alias for ``generic.total_physical_bytes``.
uint64 total_physical_bytes = 6;- Specified by:
getTotalPhysicalBytesin interfaceMemoryOrBuilder- Returns:
- The totalPhysicalBytes.
-
setTotalPhysicalBytes
The number of bytes of the physical memory usage by the allocator. This is an alias for ``generic.total_physical_bytes``.
uint64 total_physical_bytes = 6;- Parameters:
value- The totalPhysicalBytes to set.- Returns:
- This builder for chaining.
-
clearTotalPhysicalBytes
The number of bytes of the physical memory usage by the allocator. This is an alias for ``generic.total_physical_bytes``.
uint64 total_physical_bytes = 6;- Returns:
- This builder for chaining.
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Memory.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Memory.Builder>
-