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/v3alpha/mutex_stats.proto
package io.envoyproxy.envoy.admin.v3alpha;
/**
*
* Proto representation of the statistics collected upon absl::Mutex contention, if Envoy is run
* under :option:`--enable-mutex-tracing`. For more information, see the `absl::Mutex`
* [docs](https://abseil.io/about/design/mutex#extra-features).
* *NB*: The wait cycles below are measured by `absl::base_internal::CycleClock`, and may not
* correspond to core clock frequency. For more information, see the `CycleClock`
* [docs](https://github.com/abseil/abseil-cpp/blob/master/absl/base/internal/cycleclock.h).
*
*
* Protobuf type {@code envoy.admin.v3alpha.MutexStats}
*/
public final class MutexStats extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.admin.v3alpha.MutexStats)
MutexStatsOrBuilder {
private static final long serialVersionUID = 0L;
// Use MutexStats.newBuilder() to construct.
private MutexStats(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MutexStats() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MutexStats();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MutexStats(
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: {
numContentions_ = input.readUInt64();
break;
}
case 16: {
currentWaitCycles_ = input.readUInt64();
break;
}
case 24: {
lifetimeWaitCycles_ = 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.v3alpha.MutexStatsProto.internal_static_envoy_admin_v3alpha_MutexStats_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.admin.v3alpha.MutexStatsProto.internal_static_envoy_admin_v3alpha_MutexStats_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.admin.v3alpha.MutexStats.class, io.envoyproxy.envoy.admin.v3alpha.MutexStats.Builder.class);
}
public static final int NUM_CONTENTIONS_FIELD_NUMBER = 1;
private long numContentions_;
/**
*
* The number of individual mutex contentions which have occurred since startup.
*
*
* uint64 num_contentions = 1;
*/
public long getNumContentions() {
return numContentions_;
}
public static final int CURRENT_WAIT_CYCLES_FIELD_NUMBER = 2;
private long currentWaitCycles_;
/**
*
* The length of the current contention wait cycle.
*
*
* uint64 current_wait_cycles = 2;
*/
public long getCurrentWaitCycles() {
return currentWaitCycles_;
}
public static final int LIFETIME_WAIT_CYCLES_FIELD_NUMBER = 3;
private long lifetimeWaitCycles_;
/**
*
* The lifetime total of all contention wait cycles.
*
* Proto representation of the statistics collected upon absl::Mutex contention, if Envoy is run
* under :option:`--enable-mutex-tracing`. For more information, see the `absl::Mutex`
* [docs](https://abseil.io/about/design/mutex#extra-features).
* *NB*: The wait cycles below are measured by `absl::base_internal::CycleClock`, and may not
* correspond to core clock frequency. For more information, see the `CycleClock`
* [docs](https://github.com/abseil/abseil-cpp/blob/master/absl/base/internal/cycleclock.h).
*
*
* Protobuf type {@code envoy.admin.v3alpha.MutexStats}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.admin.v3alpha.MutexStats)
io.envoyproxy.envoy.admin.v3alpha.MutexStatsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.admin.v3alpha.MutexStatsProto.internal_static_envoy_admin_v3alpha_MutexStats_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.admin.v3alpha.MutexStatsProto.internal_static_envoy_admin_v3alpha_MutexStats_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.admin.v3alpha.MutexStats.class, io.envoyproxy.envoy.admin.v3alpha.MutexStats.Builder.class);
}
// Construct using io.envoyproxy.envoy.admin.v3alpha.MutexStats.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();
numContentions_ = 0L;
currentWaitCycles_ = 0L;
lifetimeWaitCycles_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.admin.v3alpha.MutexStatsProto.internal_static_envoy_admin_v3alpha_MutexStats_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v3alpha.MutexStats getDefaultInstanceForType() {
return io.envoyproxy.envoy.admin.v3alpha.MutexStats.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v3alpha.MutexStats build() {
io.envoyproxy.envoy.admin.v3alpha.MutexStats result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v3alpha.MutexStats buildPartial() {
io.envoyproxy.envoy.admin.v3alpha.MutexStats result = new io.envoyproxy.envoy.admin.v3alpha.MutexStats(this);
result.numContentions_ = numContentions_;
result.currentWaitCycles_ = currentWaitCycles_;
result.lifetimeWaitCycles_ = lifetimeWaitCycles_;
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.v3alpha.MutexStats) {
return mergeFrom((io.envoyproxy.envoy.admin.v3alpha.MutexStats)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.admin.v3alpha.MutexStats other) {
if (other == io.envoyproxy.envoy.admin.v3alpha.MutexStats.getDefaultInstance()) return this;
if (other.getNumContentions() != 0L) {
setNumContentions(other.getNumContentions());
}
if (other.getCurrentWaitCycles() != 0L) {
setCurrentWaitCycles(other.getCurrentWaitCycles());
}
if (other.getLifetimeWaitCycles() != 0L) {
setLifetimeWaitCycles(other.getLifetimeWaitCycles());
}
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.v3alpha.MutexStats parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.admin.v3alpha.MutexStats) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long numContentions_ ;
/**
*
* The number of individual mutex contentions which have occurred since startup.
*
*
* uint64 num_contentions = 1;
*/
public long getNumContentions() {
return numContentions_;
}
/**
*
* The number of individual mutex contentions which have occurred since startup.
*