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/v3/mutex_stats.proto
package io.envoyproxy.envoy.admin.v3;
/**
*
* 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.v3.MutexStats}
*/
public final class MutexStats extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.admin.v3.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 (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().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.v3.MutexStatsProto.internal_static_envoy_admin_v3_MutexStats_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.admin.v3.MutexStatsProto.internal_static_envoy_admin_v3_MutexStats_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.admin.v3.MutexStats.class, io.envoyproxy.envoy.admin.v3.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;
* @return The numContentions.
*/
@java.lang.Override
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;
* @return The currentWaitCycles.
*/
@java.lang.Override
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.v3.MutexStats}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.admin.v3.MutexStats)
io.envoyproxy.envoy.admin.v3.MutexStatsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.admin.v3.MutexStatsProto.internal_static_envoy_admin_v3_MutexStats_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.admin.v3.MutexStatsProto.internal_static_envoy_admin_v3_MutexStats_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.admin.v3.MutexStats.class, io.envoyproxy.envoy.admin.v3.MutexStats.Builder.class);
}
// Construct using io.envoyproxy.envoy.admin.v3.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.v3.MutexStatsProto.internal_static_envoy_admin_v3_MutexStats_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.MutexStats getDefaultInstanceForType() {
return io.envoyproxy.envoy.admin.v3.MutexStats.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.MutexStats build() {
io.envoyproxy.envoy.admin.v3.MutexStats result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.MutexStats buildPartial() {
io.envoyproxy.envoy.admin.v3.MutexStats result = new io.envoyproxy.envoy.admin.v3.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.v3.MutexStats) {
return mergeFrom((io.envoyproxy.envoy.admin.v3.MutexStats)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.admin.v3.MutexStats other) {
if (other == io.envoyproxy.envoy.admin.v3.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.v3.MutexStats parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.admin.v3.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;
* @return The numContentions.
*/
@java.lang.Override
public long getNumContentions() {
return numContentions_;
}
/**
*
* The number of individual mutex contentions which have occurred since startup.
*
*
* uint64 num_contentions = 1;
* @param value The numContentions to set.
* @return This builder for chaining.
*/
public Builder setNumContentions(long value) {
numContentions_ = value;
onChanged();
return this;
}
/**
*
* The number of individual mutex contentions which have occurred since startup.
*
*
* uint64 num_contentions = 1;
* @return This builder for chaining.
*/
public Builder clearNumContentions() {
numContentions_ = 0L;
onChanged();
return this;
}
private long currentWaitCycles_ ;
/**
*
* The length of the current contention wait cycle.
*
*
* uint64 current_wait_cycles = 2;
* @return The currentWaitCycles.
*/
@java.lang.Override
public long getCurrentWaitCycles() {
return currentWaitCycles_;
}
/**
*
* The length of the current contention wait cycle.
*
*
* uint64 current_wait_cycles = 2;
* @param value The currentWaitCycles to set.
* @return This builder for chaining.
*/
public Builder setCurrentWaitCycles(long value) {
currentWaitCycles_ = value;
onChanged();
return this;
}
/**
*
* The length of the current contention wait cycle.
*
*
* uint64 current_wait_cycles = 2;
* @return This builder for chaining.
*/
public Builder clearCurrentWaitCycles() {
currentWaitCycles_ = 0L;
onChanged();
return this;
}
private long lifetimeWaitCycles_ ;
/**
*
* The lifetime total of all contention wait cycles.
*
*
* uint64 lifetime_wait_cycles = 3;
* @return The lifetimeWaitCycles.
*/
@java.lang.Override
public long getLifetimeWaitCycles() {
return lifetimeWaitCycles_;
}
/**
*
* The lifetime total of all contention wait cycles.
*
*
* uint64 lifetime_wait_cycles = 3;
* @param value The lifetimeWaitCycles to set.
* @return This builder for chaining.
*/
public Builder setLifetimeWaitCycles(long value) {
lifetimeWaitCycles_ = value;
onChanged();
return this;
}
/**
*
* The lifetime total of all contention wait cycles.
*
*
* uint64 lifetime_wait_cycles = 3;
* @return This builder for chaining.
*/
public Builder clearLifetimeWaitCycles() {
lifetimeWaitCycles_ = 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:envoy.admin.v3.MutexStats)
}
// @@protoc_insertion_point(class_scope:envoy.admin.v3.MutexStats)
private static final io.envoyproxy.envoy.admin.v3.MutexStats DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.admin.v3.MutexStats();
}
public static io.envoyproxy.envoy.admin.v3.MutexStats getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MutexStats parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MutexStats(input, extensionRegistry);
}
};
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.envoyproxy.envoy.admin.v3.MutexStats getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}