Class 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 Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Memory.Builder>
      • clear

        public Memory.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Memory.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Memory.Builder>
      • getDefaultInstanceForType

        public Memory getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Memory build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Memory buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Memory.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Memory.Builder>
      • setField

        public Memory.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                       Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Memory.Builder>
      • clearField

        public Memory.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Memory.Builder>
      • clearOneof

        public Memory.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Memory.Builder>
      • setRepeatedField

        public Memory.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               int index,
                                               Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Memory.Builder>
      • addRepeatedField

        public Memory.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Memory.Builder>
      • mergeFrom

        public Memory.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Memory.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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:
        getAllocated in interface MemoryOrBuilder
        Returns:
        The allocated.
      • setAllocated

        public Memory.Builder setAllocated​(long value)
         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

        public Memory.Builder 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:
        getHeapSize in interface MemoryOrBuilder
        Returns:
        The heapSize.
      • setHeapSize

        public Memory.Builder setHeapSize​(long value)
         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

        public Memory.Builder 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:
        getPageheapUnmapped in interface MemoryOrBuilder
        Returns:
        The pageheapUnmapped.
      • setPageheapUnmapped

        public Memory.Builder setPageheapUnmapped​(long value)
         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

        public Memory.Builder 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:
        getPageheapFree in interface MemoryOrBuilder
        Returns:
        The pageheapFree.
      • setPageheapFree

        public Memory.Builder setPageheapFree​(long value)
         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

        public Memory.Builder 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:
        getTotalThreadCache in interface MemoryOrBuilder
        Returns:
        The totalThreadCache.
      • setTotalThreadCache

        public Memory.Builder setTotalThreadCache​(long value)
         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

        public Memory.Builder 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:
        getTotalPhysicalBytes in interface MemoryOrBuilder
        Returns:
        The totalPhysicalBytes.
      • setTotalPhysicalBytes

        public Memory.Builder setTotalPhysicalBytes​(long value)
         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

        public Memory.Builder 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

        public final Memory.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Memory.Builder>
      • mergeUnknownFields

        public final Memory.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Memory.Builder>