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.
* In addition to details.raw_query, we include a "signature" of the query,
* which can be normalized: for example, you may want to discard aliases, drop
* unused operations and fragments, sort fields, etc. The most important thing
* here is that the signature match the signature in StatsReports. In
* StatsReports signatures show up as the key in the per_query map (with the
* operation name prepended). The signature should be a valid GraphQL query.
* All traces must have a signature; if this Trace is in a FullTracesReport
* that signature is in the key of traces_per_query rather than in this field.
* Engineproxy provides the signature in legacy_signature_needs_resigning
* instead.
*
* In addition to details.raw_query, we include a "signature" of the query,
* which can be normalized: for example, you may want to discard aliases, drop
* unused operations and fragments, sort fields, etc. The most important thing
* here is that the signature match the signature in StatsReports. In
* StatsReports signatures show up as the key in the per_query map (with the
* operation name prepended). The signature should be a valid GraphQL query.
* All traces must have a signature; if this Trace is in a FullTracesReport
* that signature is in the key of traces_per_query rather than in this field.
* Engineproxy provides the signature in legacy_signature_needs_resigning
* instead.
*
*
* string signature = 19;
* @return The bytes for signature.
*/
com.google.protobuf.ByteString
getSignatureBytes();
/**
* .mdg.engine.proto.Trace.Details details = 6;
* @return Whether the details field is set.
*/
boolean hasDetails();
/**
* .mdg.engine.proto.Trace.Details details = 6;
* @return The details.
*/
mdg.engine.proto.Reports.Trace.Details getDetails();
/**
* .mdg.engine.proto.Trace.Details details = 6;
*/
mdg.engine.proto.Reports.Trace.DetailsOrBuilder getDetailsOrBuilder();
/**
*
* Note: engineproxy always sets client_name, client_version, and client_address to "none".
* apollo-engine-reporting allows for them to be set by the user.
*
* Note: engineproxy always sets client_name, client_version, and client_address to "none".
* apollo-engine-reporting allows for them to be set by the user.
*
*
* string client_name = 7;
* @return The bytes for clientName.
*/
com.google.protobuf.ByteString
getClientNameBytes();
/**
* string client_version = 8;
* @return The clientVersion.
*/
java.lang.String getClientVersion();
/**
* string client_version = 8;
* @return The bytes for clientVersion.
*/
com.google.protobuf.ByteString
getClientVersionBytes();
/**
* string client_address = 9;
* @return The clientAddress.
*/
java.lang.String getClientAddress();
/**
* string client_address = 9;
* @return The bytes for clientAddress.
*/
com.google.protobuf.ByteString
getClientAddressBytes();
/**
* string client_reference_id = 23;
* @return The clientReferenceId.
*/
java.lang.String getClientReferenceId();
/**
* string client_reference_id = 23;
* @return The bytes for clientReferenceId.
*/
com.google.protobuf.ByteString
getClientReferenceIdBytes();
/**
* .mdg.engine.proto.Trace.HTTP http = 10;
* @return Whether the http field is set.
*/
boolean hasHttp();
/**
* .mdg.engine.proto.Trace.HTTP http = 10;
* @return The http.
*/
mdg.engine.proto.Reports.Trace.HTTP getHttp();
/**
* .mdg.engine.proto.Trace.HTTP http = 10;
*/
mdg.engine.proto.Reports.Trace.HTTPOrBuilder getHttpOrBuilder();
/**
* .mdg.engine.proto.Trace.CachePolicy cache_policy = 18;
* @return Whether the cachePolicy field is set.
*/
boolean hasCachePolicy();
/**
* .mdg.engine.proto.Trace.CachePolicy cache_policy = 18;
* @return The cachePolicy.
*/
mdg.engine.proto.Reports.Trace.CachePolicy getCachePolicy();
/**
* .mdg.engine.proto.Trace.CachePolicy cache_policy = 18;
*/
mdg.engine.proto.Reports.Trace.CachePolicyOrBuilder getCachePolicyOrBuilder();
/**
*
* If this Trace was created by a gateway, this is the query plan, including
* sub-Traces for federated services. Note that the 'root' tree on the
* top-level Trace won't contain any resolvers (though it could contain errors
* that occurred in the gateway itself).
*
*
* .mdg.engine.proto.Trace.QueryPlanNode query_plan = 26;
* @return Whether the queryPlan field is set.
*/
boolean hasQueryPlan();
/**
*
* If this Trace was created by a gateway, this is the query plan, including
* sub-Traces for federated services. Note that the 'root' tree on the
* top-level Trace won't contain any resolvers (though it could contain errors
* that occurred in the gateway itself).
*
* If this Trace was created by a gateway, this is the query plan, including
* sub-Traces for federated services. Note that the 'root' tree on the
* top-level Trace won't contain any resolvers (though it could contain errors
* that occurred in the gateway itself).
*
* Did this query contain both a full query string and a persisted query hash?
* (This typically means that a previous request was rejected as an unknown
* persisted query.)
*
* Older agents (eg the Go engineproxy) relied to some degree on the Engine
* backend to run their own semi-compatible implementation of a specific
* variant of query signatures. The backend does not do this for new agents (which
* set the above 'signature' field). It used to still "re-sign" signatures
* from engineproxy, but we've now simplified the backend to no longer do this.
* Deprecated and ignored in FullTracesReports.
*
* Older agents (eg the Go engineproxy) relied to some degree on the Engine
* backend to run their own semi-compatible implementation of a specific
* variant of query signatures. The backend does not do this for new agents (which
* set the above 'signature' field). It used to still "re-sign" signatures
* from engineproxy, but we've now simplified the backend to no longer do this.
* Deprecated and ignored in FullTracesReports.
*
*
* string legacy_signature_needs_resigning = 5;
* @return The bytes for legacySignatureNeedsResigning.
*/
com.google.protobuf.ByteString
getLegacySignatureNeedsResigningBytes();
}
/**
* Protobuf type {@code mdg.engine.proto.Trace}
*/
public static final class Trace extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:mdg.engine.proto.Trace)
TraceOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 1,
/* suffix= */ "",
Trace.class.getName());
}
// Use Trace.newBuilder() to construct.
private Trace(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private Trace() {
signature_ = "";
clientName_ = "";
clientVersion_ = "";
clientAddress_ = "";
clientReferenceId_ = "";
legacySignatureNeedsResigning_ = "";
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_fieldAccessorTable
.ensureFieldAccessorsInitialized(
mdg.engine.proto.Reports.Trace.class, mdg.engine.proto.Reports.Trace.Builder.class);
}
public interface CachePolicyOrBuilder extends
// @@protoc_insertion_point(interface_extends:mdg.engine.proto.Trace.CachePolicy)
com.google.protobuf.MessageOrBuilder {
/**
* .mdg.engine.proto.Trace.CachePolicy.Scope scope = 1;
* @return The enum numeric value on the wire for scope.
*/
int getScopeValue();
/**
* .mdg.engine.proto.Trace.CachePolicy.Scope scope = 1;
* @return The scope.
*/
mdg.engine.proto.Reports.Trace.CachePolicy.Scope getScope();
/**
*
* use 0 for absent, -1 for 0
*
*
* int64 max_age_ns = 2;
* @return The maxAgeNs.
*/
long getMaxAgeNs();
}
/**
* Protobuf type {@code mdg.engine.proto.Trace.CachePolicy}
*/
public static final class CachePolicy extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:mdg.engine.proto.Trace.CachePolicy)
CachePolicyOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 1,
/* suffix= */ "",
CachePolicy.class.getName());
}
// Use CachePolicy.newBuilder() to construct.
private CachePolicy(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private CachePolicy() {
scope_ = 0;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_CachePolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_CachePolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
mdg.engine.proto.Reports.Trace.CachePolicy.class, mdg.engine.proto.Reports.Trace.CachePolicy.Builder.class);
}
/**
* Protobuf enum {@code mdg.engine.proto.Trace.CachePolicy.Scope}
*/
public enum Scope
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UNKNOWN = 0;
*/
UNKNOWN(0),
/**
* PUBLIC = 1;
*/
PUBLIC(1),
/**
* PRIVATE = 2;
*/
PRIVATE(2),
UNRECOGNIZED(-1),
;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 1,
/* suffix= */ "",
Scope.class.getName());
}
/**
* UNKNOWN = 0;
*/
public static final int UNKNOWN_VALUE = 0;
/**
* PUBLIC = 1;
*/
public static final int PUBLIC_VALUE = 1;
/**
* PRIVATE = 2;
*/
public static final int PRIVATE_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Scope valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Scope forNumber(int value) {
switch (value) {
case 0: return UNKNOWN;
case 1: return PUBLIC;
case 2: return PRIVATE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Scope> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Scope findValueByNumber(int number) {
return Scope.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return mdg.engine.proto.Reports.Trace.CachePolicy.getDescriptor().getEnumTypes().get(0);
}
private static final Scope[] VALUES = values();
public static Scope valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Scope(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:mdg.engine.proto.Trace.CachePolicy.Scope)
}
public static final int SCOPE_FIELD_NUMBER = 1;
private int scope_ = 0;
/**
* .mdg.engine.proto.Trace.CachePolicy.Scope scope = 1;
* @return The enum numeric value on the wire for scope.
*/
@java.lang.Override public int getScopeValue() {
return scope_;
}
/**
* .mdg.engine.proto.Trace.CachePolicy.Scope scope = 1;
* @return The scope.
*/
@java.lang.Override public mdg.engine.proto.Reports.Trace.CachePolicy.Scope getScope() {
mdg.engine.proto.Reports.Trace.CachePolicy.Scope result = mdg.engine.proto.Reports.Trace.CachePolicy.Scope.forNumber(scope_);
return result == null ? mdg.engine.proto.Reports.Trace.CachePolicy.Scope.UNRECOGNIZED : result;
}
public static final int MAX_AGE_NS_FIELD_NUMBER = 2;
private long maxAgeNs_ = 0L;
/**
*
* use 0 for absent, -1 for 0
*
*
* int64 max_age_ns = 2;
* @return The maxAgeNs.
*/
@java.lang.Override
public long getMaxAgeNs() {
return maxAgeNs_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (scope_ != mdg.engine.proto.Reports.Trace.CachePolicy.Scope.UNKNOWN.getNumber()) {
output.writeEnum(1, scope_);
}
if (maxAgeNs_ != 0L) {
output.writeInt64(2, maxAgeNs_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (scope_ != mdg.engine.proto.Reports.Trace.CachePolicy.Scope.UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, scope_);
}
if (maxAgeNs_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, maxAgeNs_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof mdg.engine.proto.Reports.Trace.CachePolicy)) {
return super.equals(obj);
}
mdg.engine.proto.Reports.Trace.CachePolicy other = (mdg.engine.proto.Reports.Trace.CachePolicy) obj;
if (scope_ != other.scope_) return false;
if (getMaxAgeNs()
!= other.getMaxAgeNs()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SCOPE_FIELD_NUMBER;
hash = (53 * hash) + scope_;
hash = (37 * hash) + MAX_AGE_NS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMaxAgeNs());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static mdg.engine.proto.Reports.Trace.CachePolicy parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.Trace.CachePolicy parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.CachePolicy parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.Trace.CachePolicy parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.CachePolicy parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.Trace.CachePolicy parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.CachePolicy parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.Trace.CachePolicy parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.CachePolicy parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.Trace.CachePolicy parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.CachePolicy parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.Trace.CachePolicy parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(mdg.engine.proto.Reports.Trace.CachePolicy prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code mdg.engine.proto.Trace.CachePolicy}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:mdg.engine.proto.Trace.CachePolicy)
mdg.engine.proto.Reports.Trace.CachePolicyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_CachePolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_CachePolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
mdg.engine.proto.Reports.Trace.CachePolicy.class, mdg.engine.proto.Reports.Trace.CachePolicy.Builder.class);
}
// Construct using mdg.engine.proto.Reports.Trace.CachePolicy.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
scope_ = 0;
maxAgeNs_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_CachePolicy_descriptor;
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.CachePolicy getDefaultInstanceForType() {
return mdg.engine.proto.Reports.Trace.CachePolicy.getDefaultInstance();
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.CachePolicy build() {
mdg.engine.proto.Reports.Trace.CachePolicy result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.CachePolicy buildPartial() {
mdg.engine.proto.Reports.Trace.CachePolicy result = new mdg.engine.proto.Reports.Trace.CachePolicy(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(mdg.engine.proto.Reports.Trace.CachePolicy result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.scope_ = scope_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.maxAgeNs_ = maxAgeNs_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof mdg.engine.proto.Reports.Trace.CachePolicy) {
return mergeFrom((mdg.engine.proto.Reports.Trace.CachePolicy)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(mdg.engine.proto.Reports.Trace.CachePolicy other) {
if (other == mdg.engine.proto.Reports.Trace.CachePolicy.getDefaultInstance()) return this;
if (other.scope_ != 0) {
setScopeValue(other.getScopeValue());
}
if (other.getMaxAgeNs() != 0L) {
setMaxAgeNs(other.getMaxAgeNs());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
scope_ = input.readEnum();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
maxAgeNs_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int scope_ = 0;
/**
* .mdg.engine.proto.Trace.CachePolicy.Scope scope = 1;
* @return The enum numeric value on the wire for scope.
*/
@java.lang.Override public int getScopeValue() {
return scope_;
}
/**
* .mdg.engine.proto.Trace.CachePolicy.Scope scope = 1;
* @param value The enum numeric value on the wire for scope to set.
* @return This builder for chaining.
*/
public Builder setScopeValue(int value) {
scope_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .mdg.engine.proto.Trace.CachePolicy.Scope scope = 1;
* @return The scope.
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.CachePolicy.Scope getScope() {
mdg.engine.proto.Reports.Trace.CachePolicy.Scope result = mdg.engine.proto.Reports.Trace.CachePolicy.Scope.forNumber(scope_);
return result == null ? mdg.engine.proto.Reports.Trace.CachePolicy.Scope.UNRECOGNIZED : result;
}
/**
* .mdg.engine.proto.Trace.CachePolicy.Scope scope = 1;
* @param value The scope to set.
* @return This builder for chaining.
*/
public Builder setScope(mdg.engine.proto.Reports.Trace.CachePolicy.Scope value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
scope_ = value.getNumber();
onChanged();
return this;
}
/**
* .mdg.engine.proto.Trace.CachePolicy.Scope scope = 1;
* @return This builder for chaining.
*/
public Builder clearScope() {
bitField0_ = (bitField0_ & ~0x00000001);
scope_ = 0;
onChanged();
return this;
}
private long maxAgeNs_ ;
/**
*
* use 0 for absent, -1 for 0
*
*
* int64 max_age_ns = 2;
* @return The maxAgeNs.
*/
@java.lang.Override
public long getMaxAgeNs() {
return maxAgeNs_;
}
/**
*
* use 0 for absent, -1 for 0
*
*
* int64 max_age_ns = 2;
* @param value The maxAgeNs to set.
* @return This builder for chaining.
*/
public Builder setMaxAgeNs(long value) {
maxAgeNs_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The variables associated with this query (unless the reporting agent is
* configured to keep them all private). Values are JSON: ie, strings are
* enclosed in double quotes, etc. The value of a private variable is
* the empty string.
*
* The variables associated with this query (unless the reporting agent is
* configured to keep them all private). Values are JSON: ie, strings are
* enclosed in double quotes, etc. The value of a private variable is
* the empty string.
*
* The variables associated with this query (unless the reporting agent is
* configured to keep them all private). Values are JSON: ie, strings are
* enclosed in double quotes, etc. The value of a private variable is
* the empty string.
*
* The variables associated with this query (unless the reporting agent is
* configured to keep them all private). Values are JSON: ie, strings are
* enclosed in double quotes, etc. The value of a private variable is
* the empty string.
*
* The variables associated with this query (unless the reporting agent is
* configured to keep them all private). Values are JSON: ie, strings are
* enclosed in double quotes, etc. The value of a private variable is
* the empty string.
*
* Optional: this is the original full query before the signature algorithm
* is applied. Engineproxy always sent this in all traces, which meant that
* literal-masking done by the signature algorithm didn't fully hide
* sensitive data from Engine servers. apollo-engine-reporting does not
* include this by default. (The Engine frontend does not currently show
* this field.)
*
* Optional: this is the original full query before the signature algorithm
* is applied. Engineproxy always sent this in all traces, which meant that
* literal-masking done by the signature algorithm didn't fully hide
* sensitive data from Engine servers. apollo-engine-reporting does not
* include this by default. (The Engine frontend does not currently show
* this field.)
*
*
* string raw_query = 2;
* @return The bytes for rawQuery.
*/
com.google.protobuf.ByteString
getRawQueryBytes();
/**
*
* Don't include this in traces inside a FullTracesReport; the operation
* name for these traces comes from the key of the traces_per_query map.
*
* Don't include this in traces inside a FullTracesReport; the operation
* name for these traces comes from the key of the traces_per_query map.
*
*
* string operation_name = 3;
* @return The bytes for operationName.
*/
com.google.protobuf.ByteString
getOperationNameBytes();
}
/**
* Protobuf type {@code mdg.engine.proto.Trace.Details}
*/
public static final class Details extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:mdg.engine.proto.Trace.Details)
DetailsOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 1,
/* suffix= */ "",
Details.class.getName());
}
// Use Details.newBuilder() to construct.
private Details(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private Details() {
rawQuery_ = "";
operationName_ = "";
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_Details_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 4:
return internalGetVariablesJson();
case 1:
return internalGetVariables();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_Details_fieldAccessorTable
.ensureFieldAccessorsInitialized(
mdg.engine.proto.Reports.Trace.Details.class, mdg.engine.proto.Reports.Trace.Details.Builder.class);
}
public static final int VARIABLES_JSON_FIELD_NUMBER = 4;
private static final class VariablesJsonDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_Details_VariablesJsonEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> variablesJson_;
private com.google.protobuf.MapField
internalGetVariablesJson() {
if (variablesJson_ == null) {
return com.google.protobuf.MapField.emptyMapField(
VariablesJsonDefaultEntryHolder.defaultEntry);
}
return variablesJson_;
}
public int getVariablesJsonCount() {
return internalGetVariablesJson().getMap().size();
}
/**
*
* The variables associated with this query (unless the reporting agent is
* configured to keep them all private). Values are JSON: ie, strings are
* enclosed in double quotes, etc. The value of a private variable is
* the empty string.
*
*
* map<string, string> variables_json = 4;
*/
@java.lang.Override
public boolean containsVariablesJson(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetVariablesJson().getMap().containsKey(key);
}
/**
* Use {@link #getVariablesJsonMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getVariablesJson() {
return getVariablesJsonMap();
}
/**
*
* The variables associated with this query (unless the reporting agent is
* configured to keep them all private). Values are JSON: ie, strings are
* enclosed in double quotes, etc. The value of a private variable is
* the empty string.
*
* The variables associated with this query (unless the reporting agent is
* configured to keep them all private). Values are JSON: ie, strings are
* enclosed in double quotes, etc. The value of a private variable is
* the empty string.
*
* The variables associated with this query (unless the reporting agent is
* configured to keep them all private). Values are JSON: ie, strings are
* enclosed in double quotes, etc. The value of a private variable is
* the empty string.
*
*
* map<string, string> variables_json = 4;
*/
@java.lang.Override
public java.lang.String getVariablesJsonOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetVariablesJson().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int VARIABLES_FIELD_NUMBER = 1;
private static final class VariablesDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, com.google.protobuf.ByteString> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_Details_VariablesEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.BYTES,
com.google.protobuf.ByteString.EMPTY);
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String, com.google.protobuf.ByteString> variables_;
private com.google.protobuf.MapField
internalGetVariables() {
if (variables_ == null) {
return com.google.protobuf.MapField.emptyMapField(
VariablesDefaultEntryHolder.defaultEntry);
}
return variables_;
}
public int getVariablesCount() {
return internalGetVariables().getMap().size();
}
/**
*
* Deprecated. Engineproxy did not encode variable values as JSON, so you
* couldn't tell numbers from numeric strings. Send variables_json instead.
*
*
* map<string, bytes> variables = 1;
*/
@java.lang.Override
public boolean containsVariables(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetVariables().getMap().containsKey(key);
}
/**
* Use {@link #getVariablesMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getVariables() {
return getVariablesMap();
}
/**
*
* Deprecated. Engineproxy did not encode variable values as JSON, so you
* couldn't tell numbers from numeric strings. Send variables_json instead.
*
* Deprecated. Engineproxy did not encode variable values as JSON, so you
* couldn't tell numbers from numeric strings. Send variables_json instead.
*
*
* map<string, bytes> variables = 1;
*/
@java.lang.Override
public com.google.protobuf.ByteString getVariablesOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetVariables().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int RAW_QUERY_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object rawQuery_ = "";
/**
*
* Optional: this is the original full query before the signature algorithm
* is applied. Engineproxy always sent this in all traces, which meant that
* literal-masking done by the signature algorithm didn't fully hide
* sensitive data from Engine servers. apollo-engine-reporting does not
* include this by default. (The Engine frontend does not currently show
* this field.)
*
* Optional: this is the original full query before the signature algorithm
* is applied. Engineproxy always sent this in all traces, which meant that
* literal-masking done by the signature algorithm didn't fully hide
* sensitive data from Engine servers. apollo-engine-reporting does not
* include this by default. (The Engine frontend does not currently show
* this field.)
*
*
* string raw_query = 2;
* @return The bytes for rawQuery.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRawQueryBytes() {
java.lang.Object ref = rawQuery_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
rawQuery_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OPERATION_NAME_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object operationName_ = "";
/**
*
* Don't include this in traces inside a FullTracesReport; the operation
* name for these traces comes from the key of the traces_per_query map.
*
* Don't include this in traces inside a FullTracesReport; the operation
* name for these traces comes from the key of the traces_per_query map.
*
*
* string operation_name = 3;
* @return The bytes for operationName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOperationNameBytes() {
java.lang.Object ref = operationName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
operationName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
com.google.protobuf.GeneratedMessage
.serializeStringMapTo(
output,
internalGetVariables(),
VariablesDefaultEntryHolder.defaultEntry,
1);
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rawQuery_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 2, rawQuery_);
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(operationName_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 3, operationName_);
}
com.google.protobuf.GeneratedMessage
.serializeStringMapTo(
output,
internalGetVariablesJson(),
VariablesJsonDefaultEntryHolder.defaultEntry,
4);
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (java.util.Map.Entry entry
: internalGetVariables().getMap().entrySet()) {
com.google.protobuf.MapEntry
variables__ = VariablesDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, variables__);
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rawQuery_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(2, rawQuery_);
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(operationName_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(3, operationName_);
}
for (java.util.Map.Entry entry
: internalGetVariablesJson().getMap().entrySet()) {
com.google.protobuf.MapEntry
variablesJson__ = VariablesJsonDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, variablesJson__);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof mdg.engine.proto.Reports.Trace.Details)) {
return super.equals(obj);
}
mdg.engine.proto.Reports.Trace.Details other = (mdg.engine.proto.Reports.Trace.Details) obj;
if (!internalGetVariablesJson().equals(
other.internalGetVariablesJson())) return false;
if (!internalGetVariables().equals(
other.internalGetVariables())) return false;
if (!getRawQuery()
.equals(other.getRawQuery())) return false;
if (!getOperationName()
.equals(other.getOperationName())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (!internalGetVariablesJson().getMap().isEmpty()) {
hash = (37 * hash) + VARIABLES_JSON_FIELD_NUMBER;
hash = (53 * hash) + internalGetVariablesJson().hashCode();
}
if (!internalGetVariables().getMap().isEmpty()) {
hash = (37 * hash) + VARIABLES_FIELD_NUMBER;
hash = (53 * hash) + internalGetVariables().hashCode();
}
hash = (37 * hash) + RAW_QUERY_FIELD_NUMBER;
hash = (53 * hash) + getRawQuery().hashCode();
hash = (37 * hash) + OPERATION_NAME_FIELD_NUMBER;
hash = (53 * hash) + getOperationName().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static mdg.engine.proto.Reports.Trace.Details parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.Trace.Details parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.Details parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.Trace.Details parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.Details parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.Trace.Details parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.Details parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.Trace.Details parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.Details parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.Trace.Details parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.Details parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.Trace.Details parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(mdg.engine.proto.Reports.Trace.Details prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code mdg.engine.proto.Trace.Details}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:mdg.engine.proto.Trace.Details)
mdg.engine.proto.Reports.Trace.DetailsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_Details_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 4:
return internalGetVariablesJson();
case 1:
return internalGetVariables();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
int number) {
switch (number) {
case 4:
return internalGetMutableVariablesJson();
case 1:
return internalGetMutableVariables();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_Details_fieldAccessorTable
.ensureFieldAccessorsInitialized(
mdg.engine.proto.Reports.Trace.Details.class, mdg.engine.proto.Reports.Trace.Details.Builder.class);
}
// Construct using mdg.engine.proto.Reports.Trace.Details.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
internalGetMutableVariablesJson().clear();
internalGetMutableVariables().clear();
rawQuery_ = "";
operationName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_Details_descriptor;
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.Details getDefaultInstanceForType() {
return mdg.engine.proto.Reports.Trace.Details.getDefaultInstance();
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.Details build() {
mdg.engine.proto.Reports.Trace.Details result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.Details buildPartial() {
mdg.engine.proto.Reports.Trace.Details result = new mdg.engine.proto.Reports.Trace.Details(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(mdg.engine.proto.Reports.Trace.Details result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.variablesJson_ = internalGetVariablesJson();
result.variablesJson_.makeImmutable();
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.variables_ = internalGetVariables();
result.variables_.makeImmutable();
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.rawQuery_ = rawQuery_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.operationName_ = operationName_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof mdg.engine.proto.Reports.Trace.Details) {
return mergeFrom((mdg.engine.proto.Reports.Trace.Details)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(mdg.engine.proto.Reports.Trace.Details other) {
if (other == mdg.engine.proto.Reports.Trace.Details.getDefaultInstance()) return this;
internalGetMutableVariablesJson().mergeFrom(
other.internalGetVariablesJson());
bitField0_ |= 0x00000001;
internalGetMutableVariables().mergeFrom(
other.internalGetVariables());
bitField0_ |= 0x00000002;
if (!other.getRawQuery().isEmpty()) {
rawQuery_ = other.rawQuery_;
bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getOperationName().isEmpty()) {
operationName_ = other.operationName_;
bitField0_ |= 0x00000008;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.MapEntry
variables__ = input.readMessage(
VariablesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableVariables().getMutableMap().put(
variables__.getKey(), variables__.getValue());
bitField0_ |= 0x00000002;
break;
} // case 10
case 18: {
rawQuery_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 18
case 26: {
operationName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 26
case 34: {
com.google.protobuf.MapEntry
variablesJson__ = input.readMessage(
VariablesJsonDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableVariablesJson().getMutableMap().put(
variablesJson__.getKey(), variablesJson__.getValue());
bitField0_ |= 0x00000001;
break;
} // case 34
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> variablesJson_;
private com.google.protobuf.MapField
internalGetVariablesJson() {
if (variablesJson_ == null) {
return com.google.protobuf.MapField.emptyMapField(
VariablesJsonDefaultEntryHolder.defaultEntry);
}
return variablesJson_;
}
private com.google.protobuf.MapField
internalGetMutableVariablesJson() {
if (variablesJson_ == null) {
variablesJson_ = com.google.protobuf.MapField.newMapField(
VariablesJsonDefaultEntryHolder.defaultEntry);
}
if (!variablesJson_.isMutable()) {
variablesJson_ = variablesJson_.copy();
}
bitField0_ |= 0x00000001;
onChanged();
return variablesJson_;
}
public int getVariablesJsonCount() {
return internalGetVariablesJson().getMap().size();
}
/**
*
* The variables associated with this query (unless the reporting agent is
* configured to keep them all private). Values are JSON: ie, strings are
* enclosed in double quotes, etc. The value of a private variable is
* the empty string.
*
*
* map<string, string> variables_json = 4;
*/
@java.lang.Override
public boolean containsVariablesJson(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetVariablesJson().getMap().containsKey(key);
}
/**
* Use {@link #getVariablesJsonMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getVariablesJson() {
return getVariablesJsonMap();
}
/**
*
* The variables associated with this query (unless the reporting agent is
* configured to keep them all private). Values are JSON: ie, strings are
* enclosed in double quotes, etc. The value of a private variable is
* the empty string.
*
* The variables associated with this query (unless the reporting agent is
* configured to keep them all private). Values are JSON: ie, strings are
* enclosed in double quotes, etc. The value of a private variable is
* the empty string.
*
* The variables associated with this query (unless the reporting agent is
* configured to keep them all private). Values are JSON: ie, strings are
* enclosed in double quotes, etc. The value of a private variable is
* the empty string.
*
*
* map<string, string> variables_json = 4;
*/
@java.lang.Override
public java.lang.String getVariablesJsonOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetVariablesJson().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearVariablesJson() {
bitField0_ = (bitField0_ & ~0x00000001);
internalGetMutableVariablesJson().getMutableMap()
.clear();
return this;
}
/**
*
* The variables associated with this query (unless the reporting agent is
* configured to keep them all private). Values are JSON: ie, strings are
* enclosed in double quotes, etc. The value of a private variable is
* the empty string.
*
*
* map<string, string> variables_json = 4;
*/
public Builder removeVariablesJson(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableVariablesJson().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableVariablesJson() {
bitField0_ |= 0x00000001;
return internalGetMutableVariablesJson().getMutableMap();
}
/**
*
* The variables associated with this query (unless the reporting agent is
* configured to keep them all private). Values are JSON: ie, strings are
* enclosed in double quotes, etc. The value of a private variable is
* the empty string.
*
*
* map<string, string> variables_json = 4;
*/
public Builder putVariablesJson(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) { throw new NullPointerException("map value"); }
internalGetMutableVariablesJson().getMutableMap()
.put(key, value);
bitField0_ |= 0x00000001;
return this;
}
/**
*
* The variables associated with this query (unless the reporting agent is
* configured to keep them all private). Values are JSON: ie, strings are
* enclosed in double quotes, etc. The value of a private variable is
* the empty string.
*
* Optional: this is the original full query before the signature algorithm
* is applied. Engineproxy always sent this in all traces, which meant that
* literal-masking done by the signature algorithm didn't fully hide
* sensitive data from Engine servers. apollo-engine-reporting does not
* include this by default. (The Engine frontend does not currently show
* this field.)
*
* Optional: this is the original full query before the signature algorithm
* is applied. Engineproxy always sent this in all traces, which meant that
* literal-masking done by the signature algorithm didn't fully hide
* sensitive data from Engine servers. apollo-engine-reporting does not
* include this by default. (The Engine frontend does not currently show
* this field.)
*
*
* string raw_query = 2;
* @return The bytes for rawQuery.
*/
public com.google.protobuf.ByteString
getRawQueryBytes() {
java.lang.Object ref = rawQuery_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
rawQuery_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Optional: this is the original full query before the signature algorithm
* is applied. Engineproxy always sent this in all traces, which meant that
* literal-masking done by the signature algorithm didn't fully hide
* sensitive data from Engine servers. apollo-engine-reporting does not
* include this by default. (The Engine frontend does not currently show
* this field.)
*
*
* string raw_query = 2;
* @param value The rawQuery to set.
* @return This builder for chaining.
*/
public Builder setRawQuery(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
rawQuery_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Optional: this is the original full query before the signature algorithm
* is applied. Engineproxy always sent this in all traces, which meant that
* literal-masking done by the signature algorithm didn't fully hide
* sensitive data from Engine servers. apollo-engine-reporting does not
* include this by default. (The Engine frontend does not currently show
* this field.)
*
* Optional: this is the original full query before the signature algorithm
* is applied. Engineproxy always sent this in all traces, which meant that
* literal-masking done by the signature algorithm didn't fully hide
* sensitive data from Engine servers. apollo-engine-reporting does not
* include this by default. (The Engine frontend does not currently show
* this field.)
*
*
* string raw_query = 2;
* @param value The bytes for rawQuery to set.
* @return This builder for chaining.
*/
public Builder setRawQueryBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
rawQuery_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object operationName_ = "";
/**
*
* Don't include this in traces inside a FullTracesReport; the operation
* name for these traces comes from the key of the traces_per_query map.
*
* We store information on each resolver execution as a Node on a tree.
* The structure of the tree corresponds to the structure of the GraphQL
* response; it does not indicate the order in which resolvers were
* invoked. Note that nodes representing indexes (and the root node)
* don't contain all Node fields (eg types and times).
*
*
* Protobuf type {@code mdg.engine.proto.Trace.Node}
*/
public static final class Node extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:mdg.engine.proto.Trace.Node)
NodeOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 1,
/* suffix= */ "",
Node.class.getName());
}
// Use Node.newBuilder() to construct.
private Node(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private Node() {
originalFieldName_ = "";
type_ = "";
parentType_ = "";
error_ = java.util.Collections.emptyList();
child_ = java.util.Collections.emptyList();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_Node_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_Node_fieldAccessorTable
.ensureFieldAccessorsInitialized(
mdg.engine.proto.Reports.Trace.Node.class, mdg.engine.proto.Reports.Trace.Node.Builder.class);
}
private int bitField0_;
private int idCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object id_;
public enum IdCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
RESPONSE_NAME(1),
INDEX(2),
ID_NOT_SET(0);
private final int value;
private IdCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static IdCase valueOf(int value) {
return forNumber(value);
}
public static IdCase forNumber(int value) {
switch (value) {
case 1: return RESPONSE_NAME;
case 2: return INDEX;
case 0: return ID_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public IdCase
getIdCase() {
return IdCase.forNumber(
idCase_);
}
public static final int RESPONSE_NAME_FIELD_NUMBER = 1;
/**
* string response_name = 1;
* @return Whether the responseName field is set.
*/
public boolean hasResponseName() {
return idCase_ == 1;
}
/**
* string response_name = 1;
* @return The responseName.
*/
public java.lang.String getResponseName() {
java.lang.Object ref = "";
if (idCase_ == 1) {
ref = id_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (idCase_ == 1) {
id_ = s;
}
return s;
}
}
/**
* string response_name = 1;
* @return The bytes for responseName.
*/
public com.google.protobuf.ByteString
getResponseNameBytes() {
java.lang.Object ref = "";
if (idCase_ == 1) {
ref = id_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (idCase_ == 1) {
id_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INDEX_FIELD_NUMBER = 2;
/**
* uint32 index = 2;
* @return Whether the index field is set.
*/
@java.lang.Override
public boolean hasIndex() {
return idCase_ == 2;
}
/**
* uint32 index = 2;
* @return The index.
*/
@java.lang.Override
public int getIndex() {
if (idCase_ == 2) {
return (java.lang.Integer) id_;
}
return 0;
}
public static final int ORIGINAL_FIELD_NAME_FIELD_NUMBER = 14;
@SuppressWarnings("serial")
private volatile java.lang.Object originalFieldName_ = "";
/**
* string original_field_name = 14;
* @return The originalFieldName.
*/
@java.lang.Override
public java.lang.String getOriginalFieldName() {
java.lang.Object ref = originalFieldName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
originalFieldName_ = s;
return s;
}
}
/**
* string original_field_name = 14;
* @return The bytes for originalFieldName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOriginalFieldNameBytes() {
java.lang.Object ref = originalFieldName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
originalFieldName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TYPE_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object type_ = "";
/**
*
* The field's return type; e.g. "String!" for User.email:String!
*
*
* string type = 3;
* @return The type.
*/
@java.lang.Override
public java.lang.String getType() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
type_ = s;
return s;
}
}
/**
*
* The field's return type; e.g. "String!" for User.email:String!
*
*
* string type = 3;
* @return The bytes for type.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PARENT_TYPE_FIELD_NUMBER = 13;
@SuppressWarnings("serial")
private volatile java.lang.Object parentType_ = "";
/**
*
* The field's parent type; e.g. "User" for User.email:String!
*
* The field's parent type; e.g. "User" for User.email:String!
*
*
* string parent_type = 13;
* @return The bytes for parentType.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getParentTypeBytes() {
java.lang.Object ref = parentType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
parentType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CACHE_POLICY_FIELD_NUMBER = 5;
private mdg.engine.proto.Reports.Trace.CachePolicy cachePolicy_;
/**
* .mdg.engine.proto.Trace.CachePolicy cache_policy = 5;
* @return Whether the cachePolicy field is set.
*/
@java.lang.Override
public boolean hasCachePolicy() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .mdg.engine.proto.Trace.CachePolicy cache_policy = 5;
* @return The cachePolicy.
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.CachePolicy getCachePolicy() {
return cachePolicy_ == null ? mdg.engine.proto.Reports.Trace.CachePolicy.getDefaultInstance() : cachePolicy_;
}
/**
* .mdg.engine.proto.Trace.CachePolicy cache_policy = 5;
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.CachePolicyOrBuilder getCachePolicyOrBuilder() {
return cachePolicy_ == null ? mdg.engine.proto.Reports.Trace.CachePolicy.getDefaultInstance() : cachePolicy_;
}
public static final int START_TIME_FIELD_NUMBER = 8;
private long startTime_ = 0L;
/**
*
* relative to the trace's start_time, in ns
*
*
* uint64 start_time = 8;
* @return The startTime.
*/
@java.lang.Override
public long getStartTime() {
return startTime_;
}
public static final int END_TIME_FIELD_NUMBER = 9;
private long endTime_ = 0L;
/**
*
* relative to the trace's start_time, in ns
*
*
* uint64 end_time = 9;
* @return The endTime.
*/
@java.lang.Override
public long getEndTime() {
return endTime_;
}
public static final int ERROR_FIELD_NUMBER = 11;
@SuppressWarnings("serial")
private java.util.List error_;
/**
* repeated .mdg.engine.proto.Trace.Error error = 11;
*/
@java.lang.Override
public java.util.List getErrorList() {
return error_;
}
/**
* repeated .mdg.engine.proto.Trace.Error error = 11;
*/
@java.lang.Override
public java.util.List extends mdg.engine.proto.Reports.Trace.ErrorOrBuilder>
getErrorOrBuilderList() {
return error_;
}
/**
* repeated .mdg.engine.proto.Trace.Error error = 11;
*/
@java.lang.Override
public int getErrorCount() {
return error_.size();
}
/**
* repeated .mdg.engine.proto.Trace.Error error = 11;
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.Error getError(int index) {
return error_.get(index);
}
/**
* repeated .mdg.engine.proto.Trace.Error error = 11;
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.ErrorOrBuilder getErrorOrBuilder(
int index) {
return error_.get(index);
}
public static final int CHILD_FIELD_NUMBER = 12;
@SuppressWarnings("serial")
private java.util.List child_;
/**
* repeated .mdg.engine.proto.Trace.Node child = 12;
*/
@java.lang.Override
public java.util.List getChildList() {
return child_;
}
/**
* repeated .mdg.engine.proto.Trace.Node child = 12;
*/
@java.lang.Override
public java.util.List extends mdg.engine.proto.Reports.Trace.NodeOrBuilder>
getChildOrBuilderList() {
return child_;
}
/**
* repeated .mdg.engine.proto.Trace.Node child = 12;
*/
@java.lang.Override
public int getChildCount() {
return child_.size();
}
/**
* repeated .mdg.engine.proto.Trace.Node child = 12;
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.Node getChild(int index) {
return child_.get(index);
}
/**
* repeated .mdg.engine.proto.Trace.Node child = 12;
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.NodeOrBuilder getChildOrBuilder(
int index) {
return child_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (idCase_ == 1) {
com.google.protobuf.GeneratedMessage.writeString(output, 1, id_);
}
if (idCase_ == 2) {
output.writeUInt32(
2, (int)((java.lang.Integer) id_));
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(type_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 3, type_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(5, getCachePolicy());
}
if (startTime_ != 0L) {
output.writeUInt64(8, startTime_);
}
if (endTime_ != 0L) {
output.writeUInt64(9, endTime_);
}
for (int i = 0; i < error_.size(); i++) {
output.writeMessage(11, error_.get(i));
}
for (int i = 0; i < child_.size(); i++) {
output.writeMessage(12, child_.get(i));
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parentType_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 13, parentType_);
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(originalFieldName_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 14, originalFieldName_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (idCase_ == 1) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_);
}
if (idCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(
2, (int)((java.lang.Integer) id_));
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(type_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(3, type_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getCachePolicy());
}
if (startTime_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(8, startTime_);
}
if (endTime_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(9, endTime_);
}
for (int i = 0; i < error_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, error_.get(i));
}
for (int i = 0; i < child_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, child_.get(i));
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parentType_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(13, parentType_);
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(originalFieldName_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(14, originalFieldName_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof mdg.engine.proto.Reports.Trace.Node)) {
return super.equals(obj);
}
mdg.engine.proto.Reports.Trace.Node other = (mdg.engine.proto.Reports.Trace.Node) obj;
if (!getOriginalFieldName()
.equals(other.getOriginalFieldName())) return false;
if (!getType()
.equals(other.getType())) return false;
if (!getParentType()
.equals(other.getParentType())) return false;
if (hasCachePolicy() != other.hasCachePolicy()) return false;
if (hasCachePolicy()) {
if (!getCachePolicy()
.equals(other.getCachePolicy())) return false;
}
if (getStartTime()
!= other.getStartTime()) return false;
if (getEndTime()
!= other.getEndTime()) return false;
if (!getErrorList()
.equals(other.getErrorList())) return false;
if (!getChildList()
.equals(other.getChildList())) return false;
if (!getIdCase().equals(other.getIdCase())) return false;
switch (idCase_) {
case 1:
if (!getResponseName()
.equals(other.getResponseName())) return false;
break;
case 2:
if (getIndex()
!= other.getIndex()) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ORIGINAL_FIELD_NAME_FIELD_NUMBER;
hash = (53 * hash) + getOriginalFieldName().hashCode();
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType().hashCode();
hash = (37 * hash) + PARENT_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getParentType().hashCode();
if (hasCachePolicy()) {
hash = (37 * hash) + CACHE_POLICY_FIELD_NUMBER;
hash = (53 * hash) + getCachePolicy().hashCode();
}
hash = (37 * hash) + START_TIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStartTime());
hash = (37 * hash) + END_TIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEndTime());
if (getErrorCount() > 0) {
hash = (37 * hash) + ERROR_FIELD_NUMBER;
hash = (53 * hash) + getErrorList().hashCode();
}
if (getChildCount() > 0) {
hash = (37 * hash) + CHILD_FIELD_NUMBER;
hash = (53 * hash) + getChildList().hashCode();
}
switch (idCase_) {
case 1:
hash = (37 * hash) + RESPONSE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getResponseName().hashCode();
break;
case 2:
hash = (37 * hash) + INDEX_FIELD_NUMBER;
hash = (53 * hash) + getIndex();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static mdg.engine.proto.Reports.Trace.Node parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.Trace.Node parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.Node parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.Trace.Node parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.Node parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.Trace.Node parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.Node parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.Trace.Node parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.Node parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.Trace.Node parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.Node parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.Trace.Node parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(mdg.engine.proto.Reports.Trace.Node prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* We store information on each resolver execution as a Node on a tree.
* The structure of the tree corresponds to the structure of the GraphQL
* response; it does not indicate the order in which resolvers were
* invoked. Note that nodes representing indexes (and the root node)
* don't contain all Node fields (eg types and times).
*
*
* Protobuf type {@code mdg.engine.proto.Trace.Node}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:mdg.engine.proto.Trace.Node)
mdg.engine.proto.Reports.Trace.NodeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_Node_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_Node_fieldAccessorTable
.ensureFieldAccessorsInitialized(
mdg.engine.proto.Reports.Trace.Node.class, mdg.engine.proto.Reports.Trace.Node.Builder.class);
}
// Construct using mdg.engine.proto.Reports.Trace.Node.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage
.alwaysUseFieldBuilders) {
getCachePolicyFieldBuilder();
getErrorFieldBuilder();
getChildFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
originalFieldName_ = "";
type_ = "";
parentType_ = "";
cachePolicy_ = null;
if (cachePolicyBuilder_ != null) {
cachePolicyBuilder_.dispose();
cachePolicyBuilder_ = null;
}
startTime_ = 0L;
endTime_ = 0L;
if (errorBuilder_ == null) {
error_ = java.util.Collections.emptyList();
} else {
error_ = null;
errorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000100);
if (childBuilder_ == null) {
child_ = java.util.Collections.emptyList();
} else {
child_ = null;
childBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000200);
idCase_ = 0;
id_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_Node_descriptor;
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.Node getDefaultInstanceForType() {
return mdg.engine.proto.Reports.Trace.Node.getDefaultInstance();
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.Node build() {
mdg.engine.proto.Reports.Trace.Node result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.Node buildPartial() {
mdg.engine.proto.Reports.Trace.Node result = new mdg.engine.proto.Reports.Trace.Node(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartialRepeatedFields(mdg.engine.proto.Reports.Trace.Node result) {
if (errorBuilder_ == null) {
if (((bitField0_ & 0x00000100) != 0)) {
error_ = java.util.Collections.unmodifiableList(error_);
bitField0_ = (bitField0_ & ~0x00000100);
}
result.error_ = error_;
} else {
result.error_ = errorBuilder_.build();
}
if (childBuilder_ == null) {
if (((bitField0_ & 0x00000200) != 0)) {
child_ = java.util.Collections.unmodifiableList(child_);
bitField0_ = (bitField0_ & ~0x00000200);
}
result.child_ = child_;
} else {
result.child_ = childBuilder_.build();
}
}
private void buildPartial0(mdg.engine.proto.Reports.Trace.Node result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.originalFieldName_ = originalFieldName_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.type_ = type_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.parentType_ = parentType_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000020) != 0)) {
result.cachePolicy_ = cachePolicyBuilder_ == null
? cachePolicy_
: cachePolicyBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.startTime_ = startTime_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.endTime_ = endTime_;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(mdg.engine.proto.Reports.Trace.Node result) {
result.idCase_ = idCase_;
result.id_ = this.id_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof mdg.engine.proto.Reports.Trace.Node) {
return mergeFrom((mdg.engine.proto.Reports.Trace.Node)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(mdg.engine.proto.Reports.Trace.Node other) {
if (other == mdg.engine.proto.Reports.Trace.Node.getDefaultInstance()) return this;
if (!other.getOriginalFieldName().isEmpty()) {
originalFieldName_ = other.originalFieldName_;
bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getType().isEmpty()) {
type_ = other.type_;
bitField0_ |= 0x00000008;
onChanged();
}
if (!other.getParentType().isEmpty()) {
parentType_ = other.parentType_;
bitField0_ |= 0x00000010;
onChanged();
}
if (other.hasCachePolicy()) {
mergeCachePolicy(other.getCachePolicy());
}
if (other.getStartTime() != 0L) {
setStartTime(other.getStartTime());
}
if (other.getEndTime() != 0L) {
setEndTime(other.getEndTime());
}
if (errorBuilder_ == null) {
if (!other.error_.isEmpty()) {
if (error_.isEmpty()) {
error_ = other.error_;
bitField0_ = (bitField0_ & ~0x00000100);
} else {
ensureErrorIsMutable();
error_.addAll(other.error_);
}
onChanged();
}
} else {
if (!other.error_.isEmpty()) {
if (errorBuilder_.isEmpty()) {
errorBuilder_.dispose();
errorBuilder_ = null;
error_ = other.error_;
bitField0_ = (bitField0_ & ~0x00000100);
errorBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getErrorFieldBuilder() : null;
} else {
errorBuilder_.addAllMessages(other.error_);
}
}
}
if (childBuilder_ == null) {
if (!other.child_.isEmpty()) {
if (child_.isEmpty()) {
child_ = other.child_;
bitField0_ = (bitField0_ & ~0x00000200);
} else {
ensureChildIsMutable();
child_.addAll(other.child_);
}
onChanged();
}
} else {
if (!other.child_.isEmpty()) {
if (childBuilder_.isEmpty()) {
childBuilder_.dispose();
childBuilder_ = null;
child_ = other.child_;
bitField0_ = (bitField0_ & ~0x00000200);
childBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getChildFieldBuilder() : null;
} else {
childBuilder_.addAllMessages(other.child_);
}
}
}
switch (other.getIdCase()) {
case RESPONSE_NAME: {
idCase_ = 1;
id_ = other.id_;
onChanged();
break;
}
case INDEX: {
setIndex(other.getIndex());
break;
}
case ID_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
idCase_ = 1;
id_ = s;
break;
} // case 10
case 16: {
id_ = input.readUInt32();
idCase_ = 2;
break;
} // case 16
case 26: {
type_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 26
case 42: {
input.readMessage(
getCachePolicyFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 42
case 64: {
startTime_ = input.readUInt64();
bitField0_ |= 0x00000040;
break;
} // case 64
case 72: {
endTime_ = input.readUInt64();
bitField0_ |= 0x00000080;
break;
} // case 72
case 90: {
mdg.engine.proto.Reports.Trace.Error m =
input.readMessage(
mdg.engine.proto.Reports.Trace.Error.parser(),
extensionRegistry);
if (errorBuilder_ == null) {
ensureErrorIsMutable();
error_.add(m);
} else {
errorBuilder_.addMessage(m);
}
break;
} // case 90
case 98: {
mdg.engine.proto.Reports.Trace.Node m =
input.readMessage(
mdg.engine.proto.Reports.Trace.Node.parser(),
extensionRegistry);
if (childBuilder_ == null) {
ensureChildIsMutable();
child_.add(m);
} else {
childBuilder_.addMessage(m);
}
break;
} // case 98
case 106: {
parentType_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 106
case 114: {
originalFieldName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 114
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int idCase_ = 0;
private java.lang.Object id_;
public IdCase
getIdCase() {
return IdCase.forNumber(
idCase_);
}
public Builder clearId() {
idCase_ = 0;
id_ = null;
onChanged();
return this;
}
private int bitField0_;
/**
* string response_name = 1;
* @return Whether the responseName field is set.
*/
@java.lang.Override
public boolean hasResponseName() {
return idCase_ == 1;
}
/**
* string response_name = 1;
* @return The responseName.
*/
@java.lang.Override
public java.lang.String getResponseName() {
java.lang.Object ref = "";
if (idCase_ == 1) {
ref = id_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (idCase_ == 1) {
id_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string response_name = 1;
* @return The bytes for responseName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getResponseNameBytes() {
java.lang.Object ref = "";
if (idCase_ == 1) {
ref = id_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (idCase_ == 1) {
id_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string response_name = 1;
* @param value The responseName to set.
* @return This builder for chaining.
*/
public Builder setResponseName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
idCase_ = 1;
id_ = value;
onChanged();
return this;
}
/**
* string response_name = 1;
* @return This builder for chaining.
*/
public Builder clearResponseName() {
if (idCase_ == 1) {
idCase_ = 0;
id_ = null;
onChanged();
}
return this;
}
/**
* string response_name = 1;
* @param value The bytes for responseName to set.
* @return This builder for chaining.
*/
public Builder setResponseNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
idCase_ = 1;
id_ = value;
onChanged();
return this;
}
/**
* uint32 index = 2;
* @return Whether the index field is set.
*/
public boolean hasIndex() {
return idCase_ == 2;
}
/**
* uint32 index = 2;
* @return The index.
*/
public int getIndex() {
if (idCase_ == 2) {
return (java.lang.Integer) id_;
}
return 0;
}
/**
* uint32 index = 2;
* @param value The index to set.
* @return This builder for chaining.
*/
public Builder setIndex(int value) {
idCase_ = 2;
id_ = value;
onChanged();
return this;
}
/**
* uint32 index = 2;
* @return This builder for chaining.
*/
public Builder clearIndex() {
if (idCase_ == 2) {
idCase_ = 0;
id_ = null;
onChanged();
}
return this;
}
private java.lang.Object originalFieldName_ = "";
/**
* string original_field_name = 14;
* @return The originalFieldName.
*/
public java.lang.String getOriginalFieldName() {
java.lang.Object ref = originalFieldName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
originalFieldName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string original_field_name = 14;
* @return The bytes for originalFieldName.
*/
public com.google.protobuf.ByteString
getOriginalFieldNameBytes() {
java.lang.Object ref = originalFieldName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
originalFieldName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string original_field_name = 14;
* @param value The originalFieldName to set.
* @return This builder for chaining.
*/
public Builder setOriginalFieldName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
originalFieldName_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* string original_field_name = 14;
* @return This builder for chaining.
*/
public Builder clearOriginalFieldName() {
originalFieldName_ = getDefaultInstance().getOriginalFieldName();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* string original_field_name = 14;
* @param value The bytes for originalFieldName to set.
* @return This builder for chaining.
*/
public Builder setOriginalFieldNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
originalFieldName_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object type_ = "";
/**
*
* The field's return type; e.g. "String!" for User.email:String!
*
*
* string type = 3;
* @return The type.
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
type_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The field's return type; e.g. "String!" for User.email:String!
*
*
* string type = 3;
* @return The bytes for type.
*/
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The field's return type; e.g. "String!" for User.email:String!
*
*
* string type = 3;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
type_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* The field's return type; e.g. "String!" for User.email:String!
*
*
* string type = 3;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = getDefaultInstance().getType();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
* The field's return type; e.g. "String!" for User.email:String!
*
*
* string type = 3;
* @param value The bytes for type to set.
* @return This builder for chaining.
*/
public Builder setTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
type_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private java.lang.Object parentType_ = "";
/**
*
* The field's parent type; e.g. "User" for User.email:String!
*
* represents a node in the query plan, under which there is a trace tree for that service fetch.
* In particular, each fetch node represents a call to an implementing service, and calls to implementing
* services may not be unique. See https://github.com/apollographql/apollo-server/blob/master/packages/apollo-gateway/src/QueryPlan.ts
* for more information and details.
*
* XXX When we want to include more details about the sub-operation that was
* executed against this service, we should include that here in each fetch node.
* This might include an operation signature, requires directive, reference resolutions, etc.
*
* XXX When we want to include more details about the sub-operation that was
* executed against this service, we should include that here in each fetch node.
* This might include an operation signature, requires directive, reference resolutions, etc.
*
*
* string serviceName = 1;
* @return The bytes for serviceName.
*/
com.google.protobuf.ByteString
getServiceNameBytes();
/**
* bool traceParsingFailed = 2;
* @return The traceParsingFailed.
*/
boolean getTraceParsingFailed();
/**
*
* This Trace only contains start_time, end_time, duration_ns, and root;
* all timings were calculated **on the federated service**, and clock skew
* will be handled by the ingress server.
*
*
* .mdg.engine.proto.Trace trace = 3;
* @return Whether the trace field is set.
*/
boolean hasTrace();
/**
*
* This Trace only contains start_time, end_time, duration_ns, and root;
* all timings were calculated **on the federated service**, and clock skew
* will be handled by the ingress server.
*
* This Trace only contains start_time, end_time, duration_ns, and root;
* all timings were calculated **on the federated service**, and clock skew
* will be handled by the ingress server.
*
* This represents a node to send an operation to an implementing service
*
*
* Protobuf type {@code mdg.engine.proto.Trace.QueryPlanNode.FetchNode}
*/
public static final class FetchNode extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:mdg.engine.proto.Trace.QueryPlanNode.FetchNode)
FetchNodeOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 1,
/* suffix= */ "",
FetchNode.class.getName());
}
// Use FetchNode.newBuilder() to construct.
private FetchNode(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private FetchNode() {
serviceName_ = "";
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_QueryPlanNode_FetchNode_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_QueryPlanNode_FetchNode_fieldAccessorTable
.ensureFieldAccessorsInitialized(
mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode.class, mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode.Builder.class);
}
private int bitField0_;
public static final int SERVICENAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object serviceName_ = "";
/**
*
* XXX When we want to include more details about the sub-operation that was
* executed against this service, we should include that here in each fetch node.
* This might include an operation signature, requires directive, reference resolutions, etc.
*
* XXX When we want to include more details about the sub-operation that was
* executed against this service, we should include that here in each fetch node.
* This might include an operation signature, requires directive, reference resolutions, etc.
*
*
* string serviceName = 1;
* @return The bytes for serviceName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getServiceNameBytes() {
java.lang.Object ref = serviceName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TRACEPARSINGFAILED_FIELD_NUMBER = 2;
private boolean traceParsingFailed_ = false;
/**
* bool traceParsingFailed = 2;
* @return The traceParsingFailed.
*/
@java.lang.Override
public boolean getTraceParsingFailed() {
return traceParsingFailed_;
}
public static final int TRACE_FIELD_NUMBER = 3;
private mdg.engine.proto.Reports.Trace trace_;
/**
*
* This Trace only contains start_time, end_time, duration_ns, and root;
* all timings were calculated **on the federated service**, and clock skew
* will be handled by the ingress server.
*
*
* .mdg.engine.proto.Trace trace = 3;
* @return Whether the trace field is set.
*/
@java.lang.Override
public boolean hasTrace() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* This Trace only contains start_time, end_time, duration_ns, and root;
* all timings were calculated **on the federated service**, and clock skew
* will be handled by the ingress server.
*
* This Trace only contains start_time, end_time, duration_ns, and root;
* all timings were calculated **on the federated service**, and clock skew
* will be handled by the ingress server.
*
*
* .mdg.engine.proto.Trace trace = 3;
*/
@java.lang.Override
public mdg.engine.proto.Reports.TraceOrBuilder getTraceOrBuilder() {
return trace_ == null ? mdg.engine.proto.Reports.Trace.getDefaultInstance() : trace_;
}
public static final int SENT_TIME_OFFSET_FIELD_NUMBER = 4;
private long sentTimeOffset_ = 0L;
/**
*
* relative to the outer trace's start_time, in ns, measured in the gateway.
*
*
* uint64 sent_time_offset = 4;
* @return The sentTimeOffset.
*/
@java.lang.Override
public long getSentTimeOffset() {
return sentTimeOffset_;
}
public static final int SENT_TIME_FIELD_NUMBER = 5;
private com.google.protobuf.Timestamp sentTime_;
/**
*
* Wallclock times measured in the gateway for when this operation was
* sent and received.
*
*
* .google.protobuf.Timestamp sent_time = 5;
* @return Whether the sentTime field is set.
*/
@java.lang.Override
public boolean hasSentTime() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Wallclock times measured in the gateway for when this operation was
* sent and received.
*
* Wallclock times measured in the gateway for when this operation was
* sent and received.
*
*
* .google.protobuf.Timestamp sent_time = 5;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getSentTimeOrBuilder() {
return sentTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : sentTime_;
}
public static final int RECEIVED_TIME_FIELD_NUMBER = 6;
private com.google.protobuf.Timestamp receivedTime_;
/**
* .google.protobuf.Timestamp received_time = 6;
* @return Whether the receivedTime field is set.
*/
@java.lang.Override
public boolean hasReceivedTime() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* .google.protobuf.Timestamp received_time = 6;
* @return The receivedTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getReceivedTime() {
return receivedTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : receivedTime_;
}
/**
* .google.protobuf.Timestamp received_time = 6;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getReceivedTimeOrBuilder() {
return receivedTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : receivedTime_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceName_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 1, serviceName_);
}
if (traceParsingFailed_ != false) {
output.writeBool(2, traceParsingFailed_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(3, getTrace());
}
if (sentTimeOffset_ != 0L) {
output.writeUInt64(4, sentTimeOffset_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(5, getSentTime());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(6, getReceivedTime());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceName_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(1, serviceName_);
}
if (traceParsingFailed_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, traceParsingFailed_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getTrace());
}
if (sentTimeOffset_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(4, sentTimeOffset_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getSentTime());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getReceivedTime());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode)) {
return super.equals(obj);
}
mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode other = (mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode) obj;
if (!getServiceName()
.equals(other.getServiceName())) return false;
if (getTraceParsingFailed()
!= other.getTraceParsingFailed()) return false;
if (hasTrace() != other.hasTrace()) return false;
if (hasTrace()) {
if (!getTrace()
.equals(other.getTrace())) return false;
}
if (getSentTimeOffset()
!= other.getSentTimeOffset()) return false;
if (hasSentTime() != other.hasSentTime()) return false;
if (hasSentTime()) {
if (!getSentTime()
.equals(other.getSentTime())) return false;
}
if (hasReceivedTime() != other.hasReceivedTime()) return false;
if (hasReceivedTime()) {
if (!getReceivedTime()
.equals(other.getReceivedTime())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SERVICENAME_FIELD_NUMBER;
hash = (53 * hash) + getServiceName().hashCode();
hash = (37 * hash) + TRACEPARSINGFAILED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getTraceParsingFailed());
if (hasTrace()) {
hash = (37 * hash) + TRACE_FIELD_NUMBER;
hash = (53 * hash) + getTrace().hashCode();
}
hash = (37 * hash) + SENT_TIME_OFFSET_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSentTimeOffset());
if (hasSentTime()) {
hash = (37 * hash) + SENT_TIME_FIELD_NUMBER;
hash = (53 * hash) + getSentTime().hashCode();
}
if (hasReceivedTime()) {
hash = (37 * hash) + RECEIVED_TIME_FIELD_NUMBER;
hash = (53 * hash) + getReceivedTime().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* This represents a node to send an operation to an implementing service
*
*
* Protobuf type {@code mdg.engine.proto.Trace.QueryPlanNode.FetchNode}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:mdg.engine.proto.Trace.QueryPlanNode.FetchNode)
mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNodeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_QueryPlanNode_FetchNode_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_QueryPlanNode_FetchNode_fieldAccessorTable
.ensureFieldAccessorsInitialized(
mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode.class, mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode.Builder.class);
}
// Construct using mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage
.alwaysUseFieldBuilders) {
getTraceFieldBuilder();
getSentTimeFieldBuilder();
getReceivedTimeFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
serviceName_ = "";
traceParsingFailed_ = false;
trace_ = null;
if (traceBuilder_ != null) {
traceBuilder_.dispose();
traceBuilder_ = null;
}
sentTimeOffset_ = 0L;
sentTime_ = null;
if (sentTimeBuilder_ != null) {
sentTimeBuilder_.dispose();
sentTimeBuilder_ = null;
}
receivedTime_ = null;
if (receivedTimeBuilder_ != null) {
receivedTimeBuilder_.dispose();
receivedTimeBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_QueryPlanNode_FetchNode_descriptor;
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode getDefaultInstanceForType() {
return mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode.getDefaultInstance();
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode build() {
mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode buildPartial() {
mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode result = new mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.serviceName_ = serviceName_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.traceParsingFailed_ = traceParsingFailed_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.trace_ = traceBuilder_ == null
? trace_
: traceBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.sentTimeOffset_ = sentTimeOffset_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.sentTime_ = sentTimeBuilder_ == null
? sentTime_
: sentTimeBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.receivedTime_ = receivedTimeBuilder_ == null
? receivedTime_
: receivedTimeBuilder_.build();
to_bitField0_ |= 0x00000004;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode) {
return mergeFrom((mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode other) {
if (other == mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode.getDefaultInstance()) return this;
if (!other.getServiceName().isEmpty()) {
serviceName_ = other.serviceName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.getTraceParsingFailed() != false) {
setTraceParsingFailed(other.getTraceParsingFailed());
}
if (other.hasTrace()) {
mergeTrace(other.getTrace());
}
if (other.getSentTimeOffset() != 0L) {
setSentTimeOffset(other.getSentTimeOffset());
}
if (other.hasSentTime()) {
mergeSentTime(other.getSentTime());
}
if (other.hasReceivedTime()) {
mergeReceivedTime(other.getReceivedTime());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
serviceName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
traceParsingFailed_ = input.readBool();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
input.readMessage(
getTraceFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 32: {
sentTimeOffset_ = input.readUInt64();
bitField0_ |= 0x00000008;
break;
} // case 32
case 42: {
input.readMessage(
getSentTimeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
input.readMessage(
getReceivedTimeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object serviceName_ = "";
/**
*
* XXX When we want to include more details about the sub-operation that was
* executed against this service, we should include that here in each fetch node.
* This might include an operation signature, requires directive, reference resolutions, etc.
*
* XXX When we want to include more details about the sub-operation that was
* executed against this service, we should include that here in each fetch node.
* This might include an operation signature, requires directive, reference resolutions, etc.
*
*
* string serviceName = 1;
* @return The bytes for serviceName.
*/
public com.google.protobuf.ByteString
getServiceNameBytes() {
java.lang.Object ref = serviceName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* XXX When we want to include more details about the sub-operation that was
* executed against this service, we should include that here in each fetch node.
* This might include an operation signature, requires directive, reference resolutions, etc.
*
*
* string serviceName = 1;
* @param value The serviceName to set.
* @return This builder for chaining.
*/
public Builder setServiceName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
serviceName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* XXX When we want to include more details about the sub-operation that was
* executed against this service, we should include that here in each fetch node.
* This might include an operation signature, requires directive, reference resolutions, etc.
*
* XXX When we want to include more details about the sub-operation that was
* executed against this service, we should include that here in each fetch node.
* This might include an operation signature, requires directive, reference resolutions, etc.
*
*
* string serviceName = 1;
* @param value The bytes for serviceName to set.
* @return This builder for chaining.
*/
public Builder setServiceNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
serviceName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private boolean traceParsingFailed_ ;
/**
* bool traceParsingFailed = 2;
* @return The traceParsingFailed.
*/
@java.lang.Override
public boolean getTraceParsingFailed() {
return traceParsingFailed_;
}
/**
* bool traceParsingFailed = 2;
* @param value The traceParsingFailed to set.
* @return This builder for chaining.
*/
public Builder setTraceParsingFailed(boolean value) {
traceParsingFailed_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* bool traceParsingFailed = 2;
* @return This builder for chaining.
*/
public Builder clearTraceParsingFailed() {
bitField0_ = (bitField0_ & ~0x00000002);
traceParsingFailed_ = false;
onChanged();
return this;
}
private mdg.engine.proto.Reports.Trace trace_;
private com.google.protobuf.SingleFieldBuilder<
mdg.engine.proto.Reports.Trace, mdg.engine.proto.Reports.Trace.Builder, mdg.engine.proto.Reports.TraceOrBuilder> traceBuilder_;
/**
*
* This Trace only contains start_time, end_time, duration_ns, and root;
* all timings were calculated **on the federated service**, and clock skew
* will be handled by the ingress server.
*
*
* .mdg.engine.proto.Trace trace = 3;
* @return Whether the trace field is set.
*/
public boolean hasTrace() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* This Trace only contains start_time, end_time, duration_ns, and root;
* all timings were calculated **on the federated service**, and clock skew
* will be handled by the ingress server.
*
* This Trace only contains start_time, end_time, duration_ns, and root;
* all timings were calculated **on the federated service**, and clock skew
* will be handled by the ingress server.
*
* This Trace only contains start_time, end_time, duration_ns, and root;
* all timings were calculated **on the federated service**, and clock skew
* will be handled by the ingress server.
*
* This Trace only contains start_time, end_time, duration_ns, and root;
* all timings were calculated **on the federated service**, and clock skew
* will be handled by the ingress server.
*
* This Trace only contains start_time, end_time, duration_ns, and root;
* all timings were calculated **on the federated service**, and clock skew
* will be handled by the ingress server.
*
* This Trace only contains start_time, end_time, duration_ns, and root;
* all timings were calculated **on the federated service**, and clock skew
* will be handled by the ingress server.
*
* This Trace only contains start_time, end_time, duration_ns, and root;
* all timings were calculated **on the federated service**, and clock skew
* will be handled by the ingress server.
*
* This Trace only contains start_time, end_time, duration_ns, and root;
* all timings were calculated **on the federated service**, and clock skew
* will be handled by the ingress server.
*
* This node represents a way to reach into the response path and attach related entities.
* XXX Flatten is really not the right name and this node may be renamed in the query planner.
*
*
* Protobuf type {@code mdg.engine.proto.Trace.QueryPlanNode.FlattenNode}
*/
public static final class FlattenNode extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:mdg.engine.proto.Trace.QueryPlanNode.FlattenNode)
FlattenNodeOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 1,
/* suffix= */ "",
FlattenNode.class.getName());
}
// Use FlattenNode.newBuilder() to construct.
private FlattenNode(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private FlattenNode() {
responsePath_ = java.util.Collections.emptyList();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_QueryPlanNode_FlattenNode_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_QueryPlanNode_FlattenNode_fieldAccessorTable
.ensureFieldAccessorsInitialized(
mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode.class, mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode.Builder.class);
}
private int bitField0_;
public static final int RESPONSE_PATH_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List responsePath_;
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode.ResponsePathElement response_path = 1;
*/
@java.lang.Override
public java.util.List getResponsePathList() {
return responsePath_;
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode.ResponsePathElement response_path = 1;
*/
@java.lang.Override
public java.util.List extends mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElementOrBuilder>
getResponsePathOrBuilderList() {
return responsePath_;
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode.ResponsePathElement response_path = 1;
*/
@java.lang.Override
public int getResponsePathCount() {
return responsePath_.size();
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode.ResponsePathElement response_path = 1;
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement getResponsePath(int index) {
return responsePath_.get(index);
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode.ResponsePathElement response_path = 1;
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElementOrBuilder getResponsePathOrBuilder(
int index) {
return responsePath_.get(index);
}
public static final int NODE_FIELD_NUMBER = 2;
private mdg.engine.proto.Reports.Trace.QueryPlanNode node_;
/**
* .mdg.engine.proto.Trace.QueryPlanNode node = 2;
* @return Whether the node field is set.
*/
@java.lang.Override
public boolean hasNode() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .mdg.engine.proto.Trace.QueryPlanNode node = 2;
* @return The node.
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNode getNode() {
return node_ == null ? mdg.engine.proto.Reports.Trace.QueryPlanNode.getDefaultInstance() : node_;
}
/**
* .mdg.engine.proto.Trace.QueryPlanNode node = 2;
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNodeOrBuilder getNodeOrBuilder() {
return node_ == null ? mdg.engine.proto.Reports.Trace.QueryPlanNode.getDefaultInstance() : node_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < responsePath_.size(); i++) {
output.writeMessage(1, responsePath_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getNode());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < responsePath_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, responsePath_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getNode());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode)) {
return super.equals(obj);
}
mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode other = (mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode) obj;
if (!getResponsePathList()
.equals(other.getResponsePathList())) return false;
if (hasNode() != other.hasNode()) return false;
if (hasNode()) {
if (!getNode()
.equals(other.getNode())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getResponsePathCount() > 0) {
hash = (37 * hash) + RESPONSE_PATH_FIELD_NUMBER;
hash = (53 * hash) + getResponsePathList().hashCode();
}
if (hasNode()) {
hash = (37 * hash) + NODE_FIELD_NUMBER;
hash = (53 * hash) + getNode().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* This node represents a way to reach into the response path and attach related entities.
* XXX Flatten is really not the right name and this node may be renamed in the query planner.
*
*
* Protobuf type {@code mdg.engine.proto.Trace.QueryPlanNode.FlattenNode}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:mdg.engine.proto.Trace.QueryPlanNode.FlattenNode)
mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNodeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_QueryPlanNode_FlattenNode_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_QueryPlanNode_FlattenNode_fieldAccessorTable
.ensureFieldAccessorsInitialized(
mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode.class, mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode.Builder.class);
}
// Construct using mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage
.alwaysUseFieldBuilders) {
getResponsePathFieldBuilder();
getNodeFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (responsePathBuilder_ == null) {
responsePath_ = java.util.Collections.emptyList();
} else {
responsePath_ = null;
responsePathBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
node_ = null;
if (nodeBuilder_ != null) {
nodeBuilder_.dispose();
nodeBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_QueryPlanNode_FlattenNode_descriptor;
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode getDefaultInstanceForType() {
return mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode.getDefaultInstance();
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode build() {
mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode buildPartial() {
mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode result = new mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode result) {
if (responsePathBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
responsePath_ = java.util.Collections.unmodifiableList(responsePath_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.responsePath_ = responsePath_;
} else {
result.responsePath_ = responsePathBuilder_.build();
}
}
private void buildPartial0(mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.node_ = nodeBuilder_ == null
? node_
: nodeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode) {
return mergeFrom((mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode other) {
if (other == mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode.getDefaultInstance()) return this;
if (responsePathBuilder_ == null) {
if (!other.responsePath_.isEmpty()) {
if (responsePath_.isEmpty()) {
responsePath_ = other.responsePath_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureResponsePathIsMutable();
responsePath_.addAll(other.responsePath_);
}
onChanged();
}
} else {
if (!other.responsePath_.isEmpty()) {
if (responsePathBuilder_.isEmpty()) {
responsePathBuilder_.dispose();
responsePathBuilder_ = null;
responsePath_ = other.responsePath_;
bitField0_ = (bitField0_ & ~0x00000001);
responsePathBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getResponsePathFieldBuilder() : null;
} else {
responsePathBuilder_.addAllMessages(other.responsePath_);
}
}
}
if (other.hasNode()) {
mergeNode(other.getNode());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement m =
input.readMessage(
mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement.parser(),
extensionRegistry);
if (responsePathBuilder_ == null) {
ensureResponsePathIsMutable();
responsePath_.add(m);
} else {
responsePathBuilder_.addMessage(m);
}
break;
} // case 10
case 18: {
input.readMessage(
getNodeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List responsePath_ =
java.util.Collections.emptyList();
private void ensureResponsePathIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
responsePath_ = new java.util.ArrayList(responsePath_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement, mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement.Builder, mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElementOrBuilder> responsePathBuilder_;
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode.ResponsePathElement response_path = 1;
*/
public java.util.List getResponsePathList() {
if (responsePathBuilder_ == null) {
return java.util.Collections.unmodifiableList(responsePath_);
} else {
return responsePathBuilder_.getMessageList();
}
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode.ResponsePathElement response_path = 1;
*/
public int getResponsePathCount() {
if (responsePathBuilder_ == null) {
return responsePath_.size();
} else {
return responsePathBuilder_.getCount();
}
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode.ResponsePathElement response_path = 1;
*/
public mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement getResponsePath(int index) {
if (responsePathBuilder_ == null) {
return responsePath_.get(index);
} else {
return responsePathBuilder_.getMessage(index);
}
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode.ResponsePathElement response_path = 1;
*/
public Builder setResponsePath(
int index, mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement value) {
if (responsePathBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResponsePathIsMutable();
responsePath_.set(index, value);
onChanged();
} else {
responsePathBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode.ResponsePathElement response_path = 1;
*/
public Builder setResponsePath(
int index, mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement.Builder builderForValue) {
if (responsePathBuilder_ == null) {
ensureResponsePathIsMutable();
responsePath_.set(index, builderForValue.build());
onChanged();
} else {
responsePathBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode.ResponsePathElement response_path = 1;
*/
public Builder addResponsePath(mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement value) {
if (responsePathBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResponsePathIsMutable();
responsePath_.add(value);
onChanged();
} else {
responsePathBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode.ResponsePathElement response_path = 1;
*/
public Builder addResponsePath(
int index, mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement value) {
if (responsePathBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResponsePathIsMutable();
responsePath_.add(index, value);
onChanged();
} else {
responsePathBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode.ResponsePathElement response_path = 1;
*/
public Builder addResponsePath(
mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement.Builder builderForValue) {
if (responsePathBuilder_ == null) {
ensureResponsePathIsMutable();
responsePath_.add(builderForValue.build());
onChanged();
} else {
responsePathBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode.ResponsePathElement response_path = 1;
*/
public Builder addResponsePath(
int index, mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement.Builder builderForValue) {
if (responsePathBuilder_ == null) {
ensureResponsePathIsMutable();
responsePath_.add(index, builderForValue.build());
onChanged();
} else {
responsePathBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode.ResponsePathElement response_path = 1;
*/
public Builder addAllResponsePath(
java.lang.Iterable extends mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement> values) {
if (responsePathBuilder_ == null) {
ensureResponsePathIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, responsePath_);
onChanged();
} else {
responsePathBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode.ResponsePathElement response_path = 1;
*/
public Builder clearResponsePath() {
if (responsePathBuilder_ == null) {
responsePath_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
responsePathBuilder_.clear();
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode.ResponsePathElement response_path = 1;
*/
public Builder removeResponsePath(int index) {
if (responsePathBuilder_ == null) {
ensureResponsePathIsMutable();
responsePath_.remove(index);
onChanged();
} else {
responsePathBuilder_.remove(index);
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode.ResponsePathElement response_path = 1;
*/
public mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement.Builder getResponsePathBuilder(
int index) {
return getResponsePathFieldBuilder().getBuilder(index);
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode.ResponsePathElement response_path = 1;
*/
public mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElementOrBuilder getResponsePathOrBuilder(
int index) {
if (responsePathBuilder_ == null) {
return responsePath_.get(index); } else {
return responsePathBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode.ResponsePathElement response_path = 1;
*/
public java.util.List extends mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElementOrBuilder>
getResponsePathOrBuilderList() {
if (responsePathBuilder_ != null) {
return responsePathBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(responsePath_);
}
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode.ResponsePathElement response_path = 1;
*/
public mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement.Builder addResponsePathBuilder() {
return getResponsePathFieldBuilder().addBuilder(
mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement.getDefaultInstance());
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode.ResponsePathElement response_path = 1;
*/
public mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement.Builder addResponsePathBuilder(
int index) {
return getResponsePathFieldBuilder().addBuilder(
index, mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement.getDefaultInstance());
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode.ResponsePathElement response_path = 1;
*/
public java.util.List
getResponsePathBuilderList() {
return getResponsePathFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement, mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement.Builder, mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElementOrBuilder>
getResponsePathFieldBuilder() {
if (responsePathBuilder_ == null) {
responsePathBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement, mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement.Builder, mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElementOrBuilder>(
responsePath_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
responsePath_ = null;
}
return responsePathBuilder_;
}
private mdg.engine.proto.Reports.Trace.QueryPlanNode node_;
private com.google.protobuf.SingleFieldBuilder<
mdg.engine.proto.Reports.Trace.QueryPlanNode, mdg.engine.proto.Reports.Trace.QueryPlanNode.Builder, mdg.engine.proto.Reports.Trace.QueryPlanNodeOrBuilder> nodeBuilder_;
/**
* .mdg.engine.proto.Trace.QueryPlanNode node = 2;
* @return Whether the node field is set.
*/
public boolean hasNode() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .mdg.engine.proto.Trace.QueryPlanNode node = 2;
* @return The node.
*/
public mdg.engine.proto.Reports.Trace.QueryPlanNode getNode() {
if (nodeBuilder_ == null) {
return node_ == null ? mdg.engine.proto.Reports.Trace.QueryPlanNode.getDefaultInstance() : node_;
} else {
return nodeBuilder_.getMessage();
}
}
/**
* .mdg.engine.proto.Trace.QueryPlanNode node = 2;
*/
public Builder setNode(mdg.engine.proto.Reports.Trace.QueryPlanNode value) {
if (nodeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
node_ = value;
} else {
nodeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .mdg.engine.proto.Trace.QueryPlanNode node = 2;
*/
public Builder setNode(
mdg.engine.proto.Reports.Trace.QueryPlanNode.Builder builderForValue) {
if (nodeBuilder_ == null) {
node_ = builderForValue.build();
} else {
nodeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .mdg.engine.proto.Trace.QueryPlanNode node = 2;
*/
public Builder mergeNode(mdg.engine.proto.Reports.Trace.QueryPlanNode value) {
if (nodeBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
node_ != null &&
node_ != mdg.engine.proto.Reports.Trace.QueryPlanNode.getDefaultInstance()) {
getNodeBuilder().mergeFrom(value);
} else {
node_ = value;
}
} else {
nodeBuilder_.mergeFrom(value);
}
if (node_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
* .mdg.engine.proto.Trace.QueryPlanNode node = 2;
*/
public Builder clearNode() {
bitField0_ = (bitField0_ & ~0x00000002);
node_ = null;
if (nodeBuilder_ != null) {
nodeBuilder_.dispose();
nodeBuilder_ = null;
}
onChanged();
return this;
}
/**
* .mdg.engine.proto.Trace.QueryPlanNode node = 2;
*/
public mdg.engine.proto.Reports.Trace.QueryPlanNode.Builder getNodeBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getNodeFieldBuilder().getBuilder();
}
/**
* .mdg.engine.proto.Trace.QueryPlanNode node = 2;
*/
public mdg.engine.proto.Reports.Trace.QueryPlanNodeOrBuilder getNodeOrBuilder() {
if (nodeBuilder_ != null) {
return nodeBuilder_.getMessageOrBuilder();
} else {
return node_ == null ?
mdg.engine.proto.Reports.Trace.QueryPlanNode.getDefaultInstance() : node_;
}
}
/**
* .mdg.engine.proto.Trace.QueryPlanNode node = 2;
*/
private com.google.protobuf.SingleFieldBuilder<
mdg.engine.proto.Reports.Trace.QueryPlanNode, mdg.engine.proto.Reports.Trace.QueryPlanNode.Builder, mdg.engine.proto.Reports.Trace.QueryPlanNodeOrBuilder>
getNodeFieldBuilder() {
if (nodeBuilder_ == null) {
nodeBuilder_ = new com.google.protobuf.SingleFieldBuilder<
mdg.engine.proto.Reports.Trace.QueryPlanNode, mdg.engine.proto.Reports.Trace.QueryPlanNode.Builder, mdg.engine.proto.Reports.Trace.QueryPlanNodeOrBuilder>(
getNode(),
getParentForChildren(),
isClean());
node_ = null;
}
return nodeBuilder_;
}
// @@protoc_insertion_point(builder_scope:mdg.engine.proto.Trace.QueryPlanNode.FlattenNode)
}
// @@protoc_insertion_point(class_scope:mdg.engine.proto.Trace.QueryPlanNode.FlattenNode)
private static final mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode();
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FlattenNode parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResponsePathElementOrBuilder extends
// @@protoc_insertion_point(interface_extends:mdg.engine.proto.Trace.QueryPlanNode.ResponsePathElement)
com.google.protobuf.MessageOrBuilder {
/**
* string field_name = 1;
* @return Whether the fieldName field is set.
*/
boolean hasFieldName();
/**
* string field_name = 1;
* @return The fieldName.
*/
java.lang.String getFieldName();
/**
* string field_name = 1;
* @return The bytes for fieldName.
*/
com.google.protobuf.ByteString
getFieldNameBytes();
/**
* uint32 index = 2;
* @return Whether the index field is set.
*/
boolean hasIndex();
/**
* uint32 index = 2;
* @return The index.
*/
int getIndex();
mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement.IdCase getIdCase();
}
/**
* Protobuf type {@code mdg.engine.proto.Trace.QueryPlanNode.ResponsePathElement}
*/
public static final class ResponsePathElement extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:mdg.engine.proto.Trace.QueryPlanNode.ResponsePathElement)
ResponsePathElementOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 1,
/* suffix= */ "",
ResponsePathElement.class.getName());
}
// Use ResponsePathElement.newBuilder() to construct.
private ResponsePathElement(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private ResponsePathElement() {
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_QueryPlanNode_ResponsePathElement_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_QueryPlanNode_ResponsePathElement_fieldAccessorTable
.ensureFieldAccessorsInitialized(
mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement.class, mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement.Builder.class);
}
private int idCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object id_;
public enum IdCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
FIELD_NAME(1),
INDEX(2),
ID_NOT_SET(0);
private final int value;
private IdCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static IdCase valueOf(int value) {
return forNumber(value);
}
public static IdCase forNumber(int value) {
switch (value) {
case 1: return FIELD_NAME;
case 2: return INDEX;
case 0: return ID_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public IdCase
getIdCase() {
return IdCase.forNumber(
idCase_);
}
public static final int FIELD_NAME_FIELD_NUMBER = 1;
/**
* string field_name = 1;
* @return Whether the fieldName field is set.
*/
public boolean hasFieldName() {
return idCase_ == 1;
}
/**
* string field_name = 1;
* @return The fieldName.
*/
public java.lang.String getFieldName() {
java.lang.Object ref = "";
if (idCase_ == 1) {
ref = id_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (idCase_ == 1) {
id_ = s;
}
return s;
}
}
/**
* string field_name = 1;
* @return The bytes for fieldName.
*/
public com.google.protobuf.ByteString
getFieldNameBytes() {
java.lang.Object ref = "";
if (idCase_ == 1) {
ref = id_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (idCase_ == 1) {
id_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INDEX_FIELD_NUMBER = 2;
/**
* uint32 index = 2;
* @return Whether the index field is set.
*/
@java.lang.Override
public boolean hasIndex() {
return idCase_ == 2;
}
/**
* uint32 index = 2;
* @return The index.
*/
@java.lang.Override
public int getIndex() {
if (idCase_ == 2) {
return (java.lang.Integer) id_;
}
return 0;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (idCase_ == 1) {
com.google.protobuf.GeneratedMessage.writeString(output, 1, id_);
}
if (idCase_ == 2) {
output.writeUInt32(
2, (int)((java.lang.Integer) id_));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (idCase_ == 1) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_);
}
if (idCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(
2, (int)((java.lang.Integer) id_));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement)) {
return super.equals(obj);
}
mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement other = (mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement) obj;
if (!getIdCase().equals(other.getIdCase())) return false;
switch (idCase_) {
case 1:
if (!getFieldName()
.equals(other.getFieldName())) return false;
break;
case 2:
if (getIndex()
!= other.getIndex()) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
switch (idCase_) {
case 1:
hash = (37 * hash) + FIELD_NAME_FIELD_NUMBER;
hash = (53 * hash) + getFieldName().hashCode();
break;
case 2:
hash = (37 * hash) + INDEX_FIELD_NUMBER;
hash = (53 * hash) + getIndex();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code mdg.engine.proto.Trace.QueryPlanNode.ResponsePathElement}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:mdg.engine.proto.Trace.QueryPlanNode.ResponsePathElement)
mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElementOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_QueryPlanNode_ResponsePathElement_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_QueryPlanNode_ResponsePathElement_fieldAccessorTable
.ensureFieldAccessorsInitialized(
mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement.class, mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement.Builder.class);
}
// Construct using mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
idCase_ = 0;
id_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_QueryPlanNode_ResponsePathElement_descriptor;
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement getDefaultInstanceForType() {
return mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement.getDefaultInstance();
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement build() {
mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement buildPartial() {
mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement result = new mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement result) {
result.idCase_ = idCase_;
result.id_ = this.id_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement) {
return mergeFrom((mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement other) {
if (other == mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement.getDefaultInstance()) return this;
switch (other.getIdCase()) {
case FIELD_NAME: {
idCase_ = 1;
id_ = other.id_;
onChanged();
break;
}
case INDEX: {
setIndex(other.getIndex());
break;
}
case ID_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
idCase_ = 1;
id_ = s;
break;
} // case 10
case 16: {
id_ = input.readUInt32();
idCase_ = 2;
break;
} // case 16
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int idCase_ = 0;
private java.lang.Object id_;
public IdCase
getIdCase() {
return IdCase.forNumber(
idCase_);
}
public Builder clearId() {
idCase_ = 0;
id_ = null;
onChanged();
return this;
}
private int bitField0_;
/**
* string field_name = 1;
* @return Whether the fieldName field is set.
*/
@java.lang.Override
public boolean hasFieldName() {
return idCase_ == 1;
}
/**
* string field_name = 1;
* @return The fieldName.
*/
@java.lang.Override
public java.lang.String getFieldName() {
java.lang.Object ref = "";
if (idCase_ == 1) {
ref = id_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (idCase_ == 1) {
id_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string field_name = 1;
* @return The bytes for fieldName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFieldNameBytes() {
java.lang.Object ref = "";
if (idCase_ == 1) {
ref = id_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (idCase_ == 1) {
id_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string field_name = 1;
* @param value The fieldName to set.
* @return This builder for chaining.
*/
public Builder setFieldName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
idCase_ = 1;
id_ = value;
onChanged();
return this;
}
/**
* string field_name = 1;
* @return This builder for chaining.
*/
public Builder clearFieldName() {
if (idCase_ == 1) {
idCase_ = 0;
id_ = null;
onChanged();
}
return this;
}
/**
* string field_name = 1;
* @param value The bytes for fieldName to set.
* @return This builder for chaining.
*/
public Builder setFieldNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
idCase_ = 1;
id_ = value;
onChanged();
return this;
}
/**
* uint32 index = 2;
* @return Whether the index field is set.
*/
public boolean hasIndex() {
return idCase_ == 2;
}
/**
* uint32 index = 2;
* @return The index.
*/
public int getIndex() {
if (idCase_ == 2) {
return (java.lang.Integer) id_;
}
return 0;
}
/**
* uint32 index = 2;
* @param value The index to set.
* @return This builder for chaining.
*/
public Builder setIndex(int value) {
idCase_ = 2;
id_ = value;
onChanged();
return this;
}
/**
* uint32 index = 2;
* @return This builder for chaining.
*/
public Builder clearIndex() {
if (idCase_ == 2) {
idCase_ = 0;
id_ = null;
onChanged();
}
return this;
}
// @@protoc_insertion_point(builder_scope:mdg.engine.proto.Trace.QueryPlanNode.ResponsePathElement)
}
// @@protoc_insertion_point(class_scope:mdg.engine.proto.Trace.QueryPlanNode.ResponsePathElement)
private static final mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement();
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ResponsePathElement parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int nodeCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object node_;
public enum NodeCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
SEQUENCE(1),
PARALLEL(2),
FETCH(3),
FLATTEN(4),
NODE_NOT_SET(0);
private final int value;
private NodeCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static NodeCase valueOf(int value) {
return forNumber(value);
}
public static NodeCase forNumber(int value) {
switch (value) {
case 1: return SEQUENCE;
case 2: return PARALLEL;
case 3: return FETCH;
case 4: return FLATTEN;
case 0: return NODE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public NodeCase
getNodeCase() {
return NodeCase.forNumber(
nodeCase_);
}
public static final int SEQUENCE_FIELD_NUMBER = 1;
/**
* .mdg.engine.proto.Trace.QueryPlanNode.SequenceNode sequence = 1;
* @return Whether the sequence field is set.
*/
@java.lang.Override
public boolean hasSequence() {
return nodeCase_ == 1;
}
/**
* .mdg.engine.proto.Trace.QueryPlanNode.SequenceNode sequence = 1;
* @return The sequence.
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode getSequence() {
if (nodeCase_ == 1) {
return (mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode) node_;
}
return mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode.getDefaultInstance();
}
/**
* .mdg.engine.proto.Trace.QueryPlanNode.SequenceNode sequence = 1;
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNodeOrBuilder getSequenceOrBuilder() {
if (nodeCase_ == 1) {
return (mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode) node_;
}
return mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode.getDefaultInstance();
}
public static final int PARALLEL_FIELD_NUMBER = 2;
/**
* .mdg.engine.proto.Trace.QueryPlanNode.ParallelNode parallel = 2;
* @return Whether the parallel field is set.
*/
@java.lang.Override
public boolean hasParallel() {
return nodeCase_ == 2;
}
/**
* .mdg.engine.proto.Trace.QueryPlanNode.ParallelNode parallel = 2;
* @return The parallel.
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode getParallel() {
if (nodeCase_ == 2) {
return (mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode) node_;
}
return mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode.getDefaultInstance();
}
/**
* .mdg.engine.proto.Trace.QueryPlanNode.ParallelNode parallel = 2;
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNodeOrBuilder getParallelOrBuilder() {
if (nodeCase_ == 2) {
return (mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode) node_;
}
return mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode.getDefaultInstance();
}
public static final int FETCH_FIELD_NUMBER = 3;
/**
* .mdg.engine.proto.Trace.QueryPlanNode.FetchNode fetch = 3;
* @return Whether the fetch field is set.
*/
@java.lang.Override
public boolean hasFetch() {
return nodeCase_ == 3;
}
/**
* .mdg.engine.proto.Trace.QueryPlanNode.FetchNode fetch = 3;
* @return The fetch.
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode getFetch() {
if (nodeCase_ == 3) {
return (mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode) node_;
}
return mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode.getDefaultInstance();
}
/**
* .mdg.engine.proto.Trace.QueryPlanNode.FetchNode fetch = 3;
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNodeOrBuilder getFetchOrBuilder() {
if (nodeCase_ == 3) {
return (mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode) node_;
}
return mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode.getDefaultInstance();
}
public static final int FLATTEN_FIELD_NUMBER = 4;
/**
* .mdg.engine.proto.Trace.QueryPlanNode.FlattenNode flatten = 4;
* @return Whether the flatten field is set.
*/
@java.lang.Override
public boolean hasFlatten() {
return nodeCase_ == 4;
}
/**
* .mdg.engine.proto.Trace.QueryPlanNode.FlattenNode flatten = 4;
* @return The flatten.
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode getFlatten() {
if (nodeCase_ == 4) {
return (mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode) node_;
}
return mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode.getDefaultInstance();
}
/**
* .mdg.engine.proto.Trace.QueryPlanNode.FlattenNode flatten = 4;
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNodeOrBuilder getFlattenOrBuilder() {
if (nodeCase_ == 4) {
return (mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode) node_;
}
return mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (nodeCase_ == 1) {
output.writeMessage(1, (mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode) node_);
}
if (nodeCase_ == 2) {
output.writeMessage(2, (mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode) node_);
}
if (nodeCase_ == 3) {
output.writeMessage(3, (mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode) node_);
}
if (nodeCase_ == 4) {
output.writeMessage(4, (mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode) node_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (nodeCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode) node_);
}
if (nodeCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode) node_);
}
if (nodeCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode) node_);
}
if (nodeCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode) node_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof mdg.engine.proto.Reports.Trace.QueryPlanNode)) {
return super.equals(obj);
}
mdg.engine.proto.Reports.Trace.QueryPlanNode other = (mdg.engine.proto.Reports.Trace.QueryPlanNode) obj;
if (!getNodeCase().equals(other.getNodeCase())) return false;
switch (nodeCase_) {
case 1:
if (!getSequence()
.equals(other.getSequence())) return false;
break;
case 2:
if (!getParallel()
.equals(other.getParallel())) return false;
break;
case 3:
if (!getFetch()
.equals(other.getFetch())) return false;
break;
case 4:
if (!getFlatten()
.equals(other.getFlatten())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
switch (nodeCase_) {
case 1:
hash = (37 * hash) + SEQUENCE_FIELD_NUMBER;
hash = (53 * hash) + getSequence().hashCode();
break;
case 2:
hash = (37 * hash) + PARALLEL_FIELD_NUMBER;
hash = (53 * hash) + getParallel().hashCode();
break;
case 3:
hash = (37 * hash) + FETCH_FIELD_NUMBER;
hash = (53 * hash) + getFetch().hashCode();
break;
case 4:
hash = (37 * hash) + FLATTEN_FIELD_NUMBER;
hash = (53 * hash) + getFlatten().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(mdg.engine.proto.Reports.Trace.QueryPlanNode prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* represents a node in the query plan, under which there is a trace tree for that service fetch.
* In particular, each fetch node represents a call to an implementing service, and calls to implementing
* services may not be unique. See https://github.com/apollographql/apollo-server/blob/master/packages/apollo-gateway/src/QueryPlan.ts
* for more information and details.
*
* A tree containing information about all resolvers run directly by this
* service, including errors.
*
*
* .mdg.engine.proto.Trace.Node root = 14;
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.NodeOrBuilder getRootOrBuilder() {
return root_ == null ? mdg.engine.proto.Reports.Trace.Node.getDefaultInstance() : root_;
}
public static final int SIGNATURE_FIELD_NUMBER = 19;
@SuppressWarnings("serial")
private volatile java.lang.Object signature_ = "";
/**
*
* In addition to details.raw_query, we include a "signature" of the query,
* which can be normalized: for example, you may want to discard aliases, drop
* unused operations and fragments, sort fields, etc. The most important thing
* here is that the signature match the signature in StatsReports. In
* StatsReports signatures show up as the key in the per_query map (with the
* operation name prepended). The signature should be a valid GraphQL query.
* All traces must have a signature; if this Trace is in a FullTracesReport
* that signature is in the key of traces_per_query rather than in this field.
* Engineproxy provides the signature in legacy_signature_needs_resigning
* instead.
*
* In addition to details.raw_query, we include a "signature" of the query,
* which can be normalized: for example, you may want to discard aliases, drop
* unused operations and fragments, sort fields, etc. The most important thing
* here is that the signature match the signature in StatsReports. In
* StatsReports signatures show up as the key in the per_query map (with the
* operation name prepended). The signature should be a valid GraphQL query.
* All traces must have a signature; if this Trace is in a FullTracesReport
* that signature is in the key of traces_per_query rather than in this field.
* Engineproxy provides the signature in legacy_signature_needs_resigning
* instead.
*
*
* string signature = 19;
* @return The bytes for signature.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSignatureBytes() {
java.lang.Object ref = signature_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
signature_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DETAILS_FIELD_NUMBER = 6;
private mdg.engine.proto.Reports.Trace.Details details_;
/**
* .mdg.engine.proto.Trace.Details details = 6;
* @return Whether the details field is set.
*/
@java.lang.Override
public boolean hasDetails() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* .mdg.engine.proto.Trace.Details details = 6;
* @return The details.
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.Details getDetails() {
return details_ == null ? mdg.engine.proto.Reports.Trace.Details.getDefaultInstance() : details_;
}
/**
* .mdg.engine.proto.Trace.Details details = 6;
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.DetailsOrBuilder getDetailsOrBuilder() {
return details_ == null ? mdg.engine.proto.Reports.Trace.Details.getDefaultInstance() : details_;
}
public static final int CLIENT_NAME_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private volatile java.lang.Object clientName_ = "";
/**
*
* Note: engineproxy always sets client_name, client_version, and client_address to "none".
* apollo-engine-reporting allows for them to be set by the user.
*
* Note: engineproxy always sets client_name, client_version, and client_address to "none".
* apollo-engine-reporting allows for them to be set by the user.
*
*
* string client_name = 7;
* @return The bytes for clientName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getClientNameBytes() {
java.lang.Object ref = clientName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clientName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CLIENT_VERSION_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private volatile java.lang.Object clientVersion_ = "";
/**
* string client_version = 8;
* @return The clientVersion.
*/
@java.lang.Override
public java.lang.String getClientVersion() {
java.lang.Object ref = clientVersion_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
clientVersion_ = s;
return s;
}
}
/**
* string client_version = 8;
* @return The bytes for clientVersion.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getClientVersionBytes() {
java.lang.Object ref = clientVersion_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clientVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CLIENT_ADDRESS_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private volatile java.lang.Object clientAddress_ = "";
/**
* string client_address = 9;
* @return The clientAddress.
*/
@java.lang.Override
public java.lang.String getClientAddress() {
java.lang.Object ref = clientAddress_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
clientAddress_ = s;
return s;
}
}
/**
* string client_address = 9;
* @return The bytes for clientAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getClientAddressBytes() {
java.lang.Object ref = clientAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clientAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CLIENT_REFERENCE_ID_FIELD_NUMBER = 23;
@SuppressWarnings("serial")
private volatile java.lang.Object clientReferenceId_ = "";
/**
* string client_reference_id = 23;
* @return The clientReferenceId.
*/
@java.lang.Override
public java.lang.String getClientReferenceId() {
java.lang.Object ref = clientReferenceId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
clientReferenceId_ = s;
return s;
}
}
/**
* string client_reference_id = 23;
* @return The bytes for clientReferenceId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getClientReferenceIdBytes() {
java.lang.Object ref = clientReferenceId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clientReferenceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int HTTP_FIELD_NUMBER = 10;
private mdg.engine.proto.Reports.Trace.HTTP http_;
/**
* .mdg.engine.proto.Trace.HTTP http = 10;
* @return Whether the http field is set.
*/
@java.lang.Override
public boolean hasHttp() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* .mdg.engine.proto.Trace.HTTP http = 10;
* @return The http.
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.HTTP getHttp() {
return http_ == null ? mdg.engine.proto.Reports.Trace.HTTP.getDefaultInstance() : http_;
}
/**
* .mdg.engine.proto.Trace.HTTP http = 10;
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.HTTPOrBuilder getHttpOrBuilder() {
return http_ == null ? mdg.engine.proto.Reports.Trace.HTTP.getDefaultInstance() : http_;
}
public static final int CACHE_POLICY_FIELD_NUMBER = 18;
private mdg.engine.proto.Reports.Trace.CachePolicy cachePolicy_;
/**
* .mdg.engine.proto.Trace.CachePolicy cache_policy = 18;
* @return Whether the cachePolicy field is set.
*/
@java.lang.Override
public boolean hasCachePolicy() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* .mdg.engine.proto.Trace.CachePolicy cache_policy = 18;
* @return The cachePolicy.
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.CachePolicy getCachePolicy() {
return cachePolicy_ == null ? mdg.engine.proto.Reports.Trace.CachePolicy.getDefaultInstance() : cachePolicy_;
}
/**
* .mdg.engine.proto.Trace.CachePolicy cache_policy = 18;
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.CachePolicyOrBuilder getCachePolicyOrBuilder() {
return cachePolicy_ == null ? mdg.engine.proto.Reports.Trace.CachePolicy.getDefaultInstance() : cachePolicy_;
}
public static final int QUERY_PLAN_FIELD_NUMBER = 26;
private mdg.engine.proto.Reports.Trace.QueryPlanNode queryPlan_;
/**
*
* If this Trace was created by a gateway, this is the query plan, including
* sub-Traces for federated services. Note that the 'root' tree on the
* top-level Trace won't contain any resolvers (though it could contain errors
* that occurred in the gateway itself).
*
*
* .mdg.engine.proto.Trace.QueryPlanNode query_plan = 26;
* @return Whether the queryPlan field is set.
*/
@java.lang.Override
public boolean hasQueryPlan() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* If this Trace was created by a gateway, this is the query plan, including
* sub-Traces for federated services. Note that the 'root' tree on the
* top-level Trace won't contain any resolvers (though it could contain errors
* that occurred in the gateway itself).
*
* If this Trace was created by a gateway, this is the query plan, including
* sub-Traces for federated services. Note that the 'root' tree on the
* top-level Trace won't contain any resolvers (though it could contain errors
* that occurred in the gateway itself).
*
*
* .mdg.engine.proto.Trace.QueryPlanNode query_plan = 26;
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNodeOrBuilder getQueryPlanOrBuilder() {
return queryPlan_ == null ? mdg.engine.proto.Reports.Trace.QueryPlanNode.getDefaultInstance() : queryPlan_;
}
public static final int FULL_QUERY_CACHE_HIT_FIELD_NUMBER = 20;
private boolean fullQueryCacheHit_ = false;
/**
*
* Was this response served from a full query response cache? (In that case
* the node tree will have no resolvers.)
*
*
* bool full_query_cache_hit = 20;
* @return The fullQueryCacheHit.
*/
@java.lang.Override
public boolean getFullQueryCacheHit() {
return fullQueryCacheHit_;
}
public static final int PERSISTED_QUERY_HIT_FIELD_NUMBER = 21;
private boolean persistedQueryHit_ = false;
/**
*
* Was this query specified successfully as a persisted query hash?
*
*
* bool persisted_query_hit = 21;
* @return The persistedQueryHit.
*/
@java.lang.Override
public boolean getPersistedQueryHit() {
return persistedQueryHit_;
}
public static final int PERSISTED_QUERY_REGISTER_FIELD_NUMBER = 22;
private boolean persistedQueryRegister_ = false;
/**
*
* Did this query contain both a full query string and a persisted query hash?
* (This typically means that a previous request was rejected as an unknown
* persisted query.)
*
*
* bool persisted_query_register = 22;
* @return The persistedQueryRegister.
*/
@java.lang.Override
public boolean getPersistedQueryRegister() {
return persistedQueryRegister_;
}
public static final int REGISTERED_OPERATION_FIELD_NUMBER = 24;
private boolean registeredOperation_ = false;
/**
*
* Was this operation registered and a part of the safelist?
*
*
* bool registered_operation = 24;
* @return The registeredOperation.
*/
@java.lang.Override
public boolean getRegisteredOperation() {
return registeredOperation_;
}
public static final int FORBIDDEN_OPERATION_FIELD_NUMBER = 25;
private boolean forbiddenOperation_ = false;
/**
*
* Was this operation forbidden due to lack of safelisting?
*
*
* bool forbidden_operation = 25;
* @return The forbiddenOperation.
*/
@java.lang.Override
public boolean getForbiddenOperation() {
return forbiddenOperation_;
}
public static final int ORIGIN_REPORTED_START_TIME_FIELD_NUMBER = 15;
private com.google.protobuf.Timestamp originReportedStartTime_;
/**
*
* --------------------------------------------------------------
* Fields below this line are only set by the old Go engineproxy.
*
*
* .google.protobuf.Timestamp origin_reported_start_time = 15;
* @return Whether the originReportedStartTime field is set.
*/
@java.lang.Override
public boolean hasOriginReportedStartTime() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* --------------------------------------------------------------
* Fields below this line are only set by the old Go engineproxy.
*
* --------------------------------------------------------------
* Fields below this line are only set by the old Go engineproxy.
*
*
* .google.protobuf.Timestamp origin_reported_start_time = 15;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getOriginReportedStartTimeOrBuilder() {
return originReportedStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : originReportedStartTime_;
}
public static final int ORIGIN_REPORTED_END_TIME_FIELD_NUMBER = 16;
private com.google.protobuf.Timestamp originReportedEndTime_;
/**
* .google.protobuf.Timestamp origin_reported_end_time = 16;
* @return Whether the originReportedEndTime field is set.
*/
@java.lang.Override
public boolean hasOriginReportedEndTime() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* .google.protobuf.Timestamp origin_reported_end_time = 16;
* @return The originReportedEndTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getOriginReportedEndTime() {
return originReportedEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : originReportedEndTime_;
}
/**
* .google.protobuf.Timestamp origin_reported_end_time = 16;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getOriginReportedEndTimeOrBuilder() {
return originReportedEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : originReportedEndTime_;
}
public static final int ORIGIN_REPORTED_DURATION_NS_FIELD_NUMBER = 17;
private long originReportedDurationNs_ = 0L;
/**
* uint64 origin_reported_duration_ns = 17;
* @return The originReportedDurationNs.
*/
@java.lang.Override
public long getOriginReportedDurationNs() {
return originReportedDurationNs_;
}
public static final int LEGACY_SIGNATURE_NEEDS_RESIGNING_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object legacySignatureNeedsResigning_ = "";
/**
*
* Older agents (eg the Go engineproxy) relied to some degree on the Engine
* backend to run their own semi-compatible implementation of a specific
* variant of query signatures. The backend does not do this for new agents (which
* set the above 'signature' field). It used to still "re-sign" signatures
* from engineproxy, but we've now simplified the backend to no longer do this.
* Deprecated and ignored in FullTracesReports.
*
* Older agents (eg the Go engineproxy) relied to some degree on the Engine
* backend to run their own semi-compatible implementation of a specific
* variant of query signatures. The backend does not do this for new agents (which
* set the above 'signature' field). It used to still "re-sign" signatures
* from engineproxy, but we've now simplified the backend to no longer do this.
* Deprecated and ignored in FullTracesReports.
*
*
* string legacy_signature_needs_resigning = 5;
* @return The bytes for legacySignatureNeedsResigning.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLegacySignatureNeedsResigningBytes() {
java.lang.Object ref = legacySignatureNeedsResigning_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
legacySignatureNeedsResigning_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getEndTime());
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(4, getStartTime());
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(legacySignatureNeedsResigning_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 5, legacySignatureNeedsResigning_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(6, getDetails());
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientName_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 7, clientName_);
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientVersion_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 8, clientVersion_);
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientAddress_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 9, clientAddress_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(10, getHttp());
}
if (durationNs_ != 0L) {
output.writeUInt64(11, durationNs_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(14, getRoot());
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeMessage(15, getOriginReportedStartTime());
}
if (((bitField0_ & 0x00000100) != 0)) {
output.writeMessage(16, getOriginReportedEndTime());
}
if (originReportedDurationNs_ != 0L) {
output.writeUInt64(17, originReportedDurationNs_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeMessage(18, getCachePolicy());
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(signature_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 19, signature_);
}
if (fullQueryCacheHit_ != false) {
output.writeBool(20, fullQueryCacheHit_);
}
if (persistedQueryHit_ != false) {
output.writeBool(21, persistedQueryHit_);
}
if (persistedQueryRegister_ != false) {
output.writeBool(22, persistedQueryRegister_);
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientReferenceId_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 23, clientReferenceId_);
}
if (registeredOperation_ != false) {
output.writeBool(24, registeredOperation_);
}
if (forbiddenOperation_ != false) {
output.writeBool(25, forbiddenOperation_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeMessage(26, getQueryPlan());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getEndTime());
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getStartTime());
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(legacySignatureNeedsResigning_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(5, legacySignatureNeedsResigning_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getDetails());
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientName_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(7, clientName_);
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientVersion_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(8, clientVersion_);
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientAddress_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(9, clientAddress_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getHttp());
}
if (durationNs_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(11, durationNs_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, getRoot());
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, getOriginReportedStartTime());
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(16, getOriginReportedEndTime());
}
if (originReportedDurationNs_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(17, originReportedDurationNs_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(18, getCachePolicy());
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(signature_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(19, signature_);
}
if (fullQueryCacheHit_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(20, fullQueryCacheHit_);
}
if (persistedQueryHit_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(21, persistedQueryHit_);
}
if (persistedQueryRegister_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(22, persistedQueryRegister_);
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientReferenceId_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(23, clientReferenceId_);
}
if (registeredOperation_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(24, registeredOperation_);
}
if (forbiddenOperation_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(25, forbiddenOperation_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(26, getQueryPlan());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof mdg.engine.proto.Reports.Trace)) {
return super.equals(obj);
}
mdg.engine.proto.Reports.Trace other = (mdg.engine.proto.Reports.Trace) obj;
if (hasStartTime() != other.hasStartTime()) return false;
if (hasStartTime()) {
if (!getStartTime()
.equals(other.getStartTime())) return false;
}
if (hasEndTime() != other.hasEndTime()) return false;
if (hasEndTime()) {
if (!getEndTime()
.equals(other.getEndTime())) return false;
}
if (getDurationNs()
!= other.getDurationNs()) return false;
if (hasRoot() != other.hasRoot()) return false;
if (hasRoot()) {
if (!getRoot()
.equals(other.getRoot())) return false;
}
if (!getSignature()
.equals(other.getSignature())) return false;
if (hasDetails() != other.hasDetails()) return false;
if (hasDetails()) {
if (!getDetails()
.equals(other.getDetails())) return false;
}
if (!getClientName()
.equals(other.getClientName())) return false;
if (!getClientVersion()
.equals(other.getClientVersion())) return false;
if (!getClientAddress()
.equals(other.getClientAddress())) return false;
if (!getClientReferenceId()
.equals(other.getClientReferenceId())) return false;
if (hasHttp() != other.hasHttp()) return false;
if (hasHttp()) {
if (!getHttp()
.equals(other.getHttp())) return false;
}
if (hasCachePolicy() != other.hasCachePolicy()) return false;
if (hasCachePolicy()) {
if (!getCachePolicy()
.equals(other.getCachePolicy())) return false;
}
if (hasQueryPlan() != other.hasQueryPlan()) return false;
if (hasQueryPlan()) {
if (!getQueryPlan()
.equals(other.getQueryPlan())) return false;
}
if (getFullQueryCacheHit()
!= other.getFullQueryCacheHit()) return false;
if (getPersistedQueryHit()
!= other.getPersistedQueryHit()) return false;
if (getPersistedQueryRegister()
!= other.getPersistedQueryRegister()) return false;
if (getRegisteredOperation()
!= other.getRegisteredOperation()) return false;
if (getForbiddenOperation()
!= other.getForbiddenOperation()) return false;
if (hasOriginReportedStartTime() != other.hasOriginReportedStartTime()) return false;
if (hasOriginReportedStartTime()) {
if (!getOriginReportedStartTime()
.equals(other.getOriginReportedStartTime())) return false;
}
if (hasOriginReportedEndTime() != other.hasOriginReportedEndTime()) return false;
if (hasOriginReportedEndTime()) {
if (!getOriginReportedEndTime()
.equals(other.getOriginReportedEndTime())) return false;
}
if (getOriginReportedDurationNs()
!= other.getOriginReportedDurationNs()) return false;
if (!getLegacySignatureNeedsResigning()
.equals(other.getLegacySignatureNeedsResigning())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasStartTime()) {
hash = (37 * hash) + START_TIME_FIELD_NUMBER;
hash = (53 * hash) + getStartTime().hashCode();
}
if (hasEndTime()) {
hash = (37 * hash) + END_TIME_FIELD_NUMBER;
hash = (53 * hash) + getEndTime().hashCode();
}
hash = (37 * hash) + DURATION_NS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDurationNs());
if (hasRoot()) {
hash = (37 * hash) + ROOT_FIELD_NUMBER;
hash = (53 * hash) + getRoot().hashCode();
}
hash = (37 * hash) + SIGNATURE_FIELD_NUMBER;
hash = (53 * hash) + getSignature().hashCode();
if (hasDetails()) {
hash = (37 * hash) + DETAILS_FIELD_NUMBER;
hash = (53 * hash) + getDetails().hashCode();
}
hash = (37 * hash) + CLIENT_NAME_FIELD_NUMBER;
hash = (53 * hash) + getClientName().hashCode();
hash = (37 * hash) + CLIENT_VERSION_FIELD_NUMBER;
hash = (53 * hash) + getClientVersion().hashCode();
hash = (37 * hash) + CLIENT_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getClientAddress().hashCode();
hash = (37 * hash) + CLIENT_REFERENCE_ID_FIELD_NUMBER;
hash = (53 * hash) + getClientReferenceId().hashCode();
if (hasHttp()) {
hash = (37 * hash) + HTTP_FIELD_NUMBER;
hash = (53 * hash) + getHttp().hashCode();
}
if (hasCachePolicy()) {
hash = (37 * hash) + CACHE_POLICY_FIELD_NUMBER;
hash = (53 * hash) + getCachePolicy().hashCode();
}
if (hasQueryPlan()) {
hash = (37 * hash) + QUERY_PLAN_FIELD_NUMBER;
hash = (53 * hash) + getQueryPlan().hashCode();
}
hash = (37 * hash) + FULL_QUERY_CACHE_HIT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getFullQueryCacheHit());
hash = (37 * hash) + PERSISTED_QUERY_HIT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getPersistedQueryHit());
hash = (37 * hash) + PERSISTED_QUERY_REGISTER_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getPersistedQueryRegister());
hash = (37 * hash) + REGISTERED_OPERATION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getRegisteredOperation());
hash = (37 * hash) + FORBIDDEN_OPERATION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getForbiddenOperation());
if (hasOriginReportedStartTime()) {
hash = (37 * hash) + ORIGIN_REPORTED_START_TIME_FIELD_NUMBER;
hash = (53 * hash) + getOriginReportedStartTime().hashCode();
}
if (hasOriginReportedEndTime()) {
hash = (37 * hash) + ORIGIN_REPORTED_END_TIME_FIELD_NUMBER;
hash = (53 * hash) + getOriginReportedEndTime().hashCode();
}
hash = (37 * hash) + ORIGIN_REPORTED_DURATION_NS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getOriginReportedDurationNs());
hash = (37 * hash) + LEGACY_SIGNATURE_NEEDS_RESIGNING_FIELD_NUMBER;
hash = (53 * hash) + getLegacySignatureNeedsResigning().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static mdg.engine.proto.Reports.Trace parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.Trace parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.Trace parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.Trace parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.Trace parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.Trace parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.Trace parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(mdg.engine.proto.Reports.Trace prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code mdg.engine.proto.Trace}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:mdg.engine.proto.Trace)
mdg.engine.proto.Reports.TraceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_fieldAccessorTable
.ensureFieldAccessorsInitialized(
mdg.engine.proto.Reports.Trace.class, mdg.engine.proto.Reports.Trace.Builder.class);
}
// Construct using mdg.engine.proto.Reports.Trace.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage
.alwaysUseFieldBuilders) {
getStartTimeFieldBuilder();
getEndTimeFieldBuilder();
getRootFieldBuilder();
getDetailsFieldBuilder();
getHttpFieldBuilder();
getCachePolicyFieldBuilder();
getQueryPlanFieldBuilder();
getOriginReportedStartTimeFieldBuilder();
getOriginReportedEndTimeFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
startTime_ = null;
if (startTimeBuilder_ != null) {
startTimeBuilder_.dispose();
startTimeBuilder_ = null;
}
endTime_ = null;
if (endTimeBuilder_ != null) {
endTimeBuilder_.dispose();
endTimeBuilder_ = null;
}
durationNs_ = 0L;
root_ = null;
if (rootBuilder_ != null) {
rootBuilder_.dispose();
rootBuilder_ = null;
}
signature_ = "";
details_ = null;
if (detailsBuilder_ != null) {
detailsBuilder_.dispose();
detailsBuilder_ = null;
}
clientName_ = "";
clientVersion_ = "";
clientAddress_ = "";
clientReferenceId_ = "";
http_ = null;
if (httpBuilder_ != null) {
httpBuilder_.dispose();
httpBuilder_ = null;
}
cachePolicy_ = null;
if (cachePolicyBuilder_ != null) {
cachePolicyBuilder_.dispose();
cachePolicyBuilder_ = null;
}
queryPlan_ = null;
if (queryPlanBuilder_ != null) {
queryPlanBuilder_.dispose();
queryPlanBuilder_ = null;
}
fullQueryCacheHit_ = false;
persistedQueryHit_ = false;
persistedQueryRegister_ = false;
registeredOperation_ = false;
forbiddenOperation_ = false;
originReportedStartTime_ = null;
if (originReportedStartTimeBuilder_ != null) {
originReportedStartTimeBuilder_.dispose();
originReportedStartTimeBuilder_ = null;
}
originReportedEndTime_ = null;
if (originReportedEndTimeBuilder_ != null) {
originReportedEndTimeBuilder_.dispose();
originReportedEndTimeBuilder_ = null;
}
originReportedDurationNs_ = 0L;
legacySignatureNeedsResigning_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_descriptor;
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace getDefaultInstanceForType() {
return mdg.engine.proto.Reports.Trace.getDefaultInstance();
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace build() {
mdg.engine.proto.Reports.Trace result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace buildPartial() {
mdg.engine.proto.Reports.Trace result = new mdg.engine.proto.Reports.Trace(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(mdg.engine.proto.Reports.Trace result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.startTime_ = startTimeBuilder_ == null
? startTime_
: startTimeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.endTime_ = endTimeBuilder_ == null
? endTime_
: endTimeBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.durationNs_ = durationNs_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.root_ = rootBuilder_ == null
? root_
: rootBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.signature_ = signature_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.details_ = detailsBuilder_ == null
? details_
: detailsBuilder_.build();
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.clientName_ = clientName_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.clientVersion_ = clientVersion_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.clientAddress_ = clientAddress_;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.clientReferenceId_ = clientReferenceId_;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.http_ = httpBuilder_ == null
? http_
: httpBuilder_.build();
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.cachePolicy_ = cachePolicyBuilder_ == null
? cachePolicy_
: cachePolicyBuilder_.build();
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.queryPlan_ = queryPlanBuilder_ == null
? queryPlan_
: queryPlanBuilder_.build();
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.fullQueryCacheHit_ = fullQueryCacheHit_;
}
if (((from_bitField0_ & 0x00004000) != 0)) {
result.persistedQueryHit_ = persistedQueryHit_;
}
if (((from_bitField0_ & 0x00008000) != 0)) {
result.persistedQueryRegister_ = persistedQueryRegister_;
}
if (((from_bitField0_ & 0x00010000) != 0)) {
result.registeredOperation_ = registeredOperation_;
}
if (((from_bitField0_ & 0x00020000) != 0)) {
result.forbiddenOperation_ = forbiddenOperation_;
}
if (((from_bitField0_ & 0x00040000) != 0)) {
result.originReportedStartTime_ = originReportedStartTimeBuilder_ == null
? originReportedStartTime_
: originReportedStartTimeBuilder_.build();
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00080000) != 0)) {
result.originReportedEndTime_ = originReportedEndTimeBuilder_ == null
? originReportedEndTime_
: originReportedEndTimeBuilder_.build();
to_bitField0_ |= 0x00000100;
}
if (((from_bitField0_ & 0x00100000) != 0)) {
result.originReportedDurationNs_ = originReportedDurationNs_;
}
if (((from_bitField0_ & 0x00200000) != 0)) {
result.legacySignatureNeedsResigning_ = legacySignatureNeedsResigning_;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof mdg.engine.proto.Reports.Trace) {
return mergeFrom((mdg.engine.proto.Reports.Trace)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(mdg.engine.proto.Reports.Trace other) {
if (other == mdg.engine.proto.Reports.Trace.getDefaultInstance()) return this;
if (other.hasStartTime()) {
mergeStartTime(other.getStartTime());
}
if (other.hasEndTime()) {
mergeEndTime(other.getEndTime());
}
if (other.getDurationNs() != 0L) {
setDurationNs(other.getDurationNs());
}
if (other.hasRoot()) {
mergeRoot(other.getRoot());
}
if (!other.getSignature().isEmpty()) {
signature_ = other.signature_;
bitField0_ |= 0x00000010;
onChanged();
}
if (other.hasDetails()) {
mergeDetails(other.getDetails());
}
if (!other.getClientName().isEmpty()) {
clientName_ = other.clientName_;
bitField0_ |= 0x00000040;
onChanged();
}
if (!other.getClientVersion().isEmpty()) {
clientVersion_ = other.clientVersion_;
bitField0_ |= 0x00000080;
onChanged();
}
if (!other.getClientAddress().isEmpty()) {
clientAddress_ = other.clientAddress_;
bitField0_ |= 0x00000100;
onChanged();
}
if (!other.getClientReferenceId().isEmpty()) {
clientReferenceId_ = other.clientReferenceId_;
bitField0_ |= 0x00000200;
onChanged();
}
if (other.hasHttp()) {
mergeHttp(other.getHttp());
}
if (other.hasCachePolicy()) {
mergeCachePolicy(other.getCachePolicy());
}
if (other.hasQueryPlan()) {
mergeQueryPlan(other.getQueryPlan());
}
if (other.getFullQueryCacheHit() != false) {
setFullQueryCacheHit(other.getFullQueryCacheHit());
}
if (other.getPersistedQueryHit() != false) {
setPersistedQueryHit(other.getPersistedQueryHit());
}
if (other.getPersistedQueryRegister() != false) {
setPersistedQueryRegister(other.getPersistedQueryRegister());
}
if (other.getRegisteredOperation() != false) {
setRegisteredOperation(other.getRegisteredOperation());
}
if (other.getForbiddenOperation() != false) {
setForbiddenOperation(other.getForbiddenOperation());
}
if (other.hasOriginReportedStartTime()) {
mergeOriginReportedStartTime(other.getOriginReportedStartTime());
}
if (other.hasOriginReportedEndTime()) {
mergeOriginReportedEndTime(other.getOriginReportedEndTime());
}
if (other.getOriginReportedDurationNs() != 0L) {
setOriginReportedDurationNs(other.getOriginReportedDurationNs());
}
if (!other.getLegacySignatureNeedsResigning().isEmpty()) {
legacySignatureNeedsResigning_ = other.legacySignatureNeedsResigning_;
bitField0_ |= 0x00200000;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 26: {
input.readMessage(
getEndTimeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 26
case 34: {
input.readMessage(
getStartTimeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 34
case 42: {
legacySignatureNeedsResigning_ = input.readStringRequireUtf8();
bitField0_ |= 0x00200000;
break;
} // case 42
case 50: {
input.readMessage(
getDetailsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
case 58: {
clientName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
break;
} // case 58
case 66: {
clientVersion_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000080;
break;
} // case 66
case 74: {
clientAddress_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000100;
break;
} // case 74
case 82: {
input.readMessage(
getHttpFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000400;
break;
} // case 82
case 88: {
durationNs_ = input.readUInt64();
bitField0_ |= 0x00000004;
break;
} // case 88
case 114: {
input.readMessage(
getRootFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 114
case 122: {
input.readMessage(
getOriginReportedStartTimeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00040000;
break;
} // case 122
case 130: {
input.readMessage(
getOriginReportedEndTimeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00080000;
break;
} // case 130
case 136: {
originReportedDurationNs_ = input.readUInt64();
bitField0_ |= 0x00100000;
break;
} // case 136
case 146: {
input.readMessage(
getCachePolicyFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000800;
break;
} // case 146
case 154: {
signature_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 154
case 160: {
fullQueryCacheHit_ = input.readBool();
bitField0_ |= 0x00002000;
break;
} // case 160
case 168: {
persistedQueryHit_ = input.readBool();
bitField0_ |= 0x00004000;
break;
} // case 168
case 176: {
persistedQueryRegister_ = input.readBool();
bitField0_ |= 0x00008000;
break;
} // case 176
case 186: {
clientReferenceId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000200;
break;
} // case 186
case 192: {
registeredOperation_ = input.readBool();
bitField0_ |= 0x00010000;
break;
} // case 192
case 200: {
forbiddenOperation_ = input.readBool();
bitField0_ |= 0x00020000;
break;
} // case 200
case 210: {
input.readMessage(
getQueryPlanFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00001000;
break;
} // case 210
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.Timestamp startTime_;
private com.google.protobuf.SingleFieldBuilder<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_;
/**
*
* Wallclock time when the trace began.
*
*
* .google.protobuf.Timestamp start_time = 4;
* @return Whether the startTime field is set.
*/
public boolean hasStartTime() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* In addition to details.raw_query, we include a "signature" of the query,
* which can be normalized: for example, you may want to discard aliases, drop
* unused operations and fragments, sort fields, etc. The most important thing
* here is that the signature match the signature in StatsReports. In
* StatsReports signatures show up as the key in the per_query map (with the
* operation name prepended). The signature should be a valid GraphQL query.
* All traces must have a signature; if this Trace is in a FullTracesReport
* that signature is in the key of traces_per_query rather than in this field.
* Engineproxy provides the signature in legacy_signature_needs_resigning
* instead.
*
* In addition to details.raw_query, we include a "signature" of the query,
* which can be normalized: for example, you may want to discard aliases, drop
* unused operations and fragments, sort fields, etc. The most important thing
* here is that the signature match the signature in StatsReports. In
* StatsReports signatures show up as the key in the per_query map (with the
* operation name prepended). The signature should be a valid GraphQL query.
* All traces must have a signature; if this Trace is in a FullTracesReport
* that signature is in the key of traces_per_query rather than in this field.
* Engineproxy provides the signature in legacy_signature_needs_resigning
* instead.
*
*
* string signature = 19;
* @return The bytes for signature.
*/
public com.google.protobuf.ByteString
getSignatureBytes() {
java.lang.Object ref = signature_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
signature_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* In addition to details.raw_query, we include a "signature" of the query,
* which can be normalized: for example, you may want to discard aliases, drop
* unused operations and fragments, sort fields, etc. The most important thing
* here is that the signature match the signature in StatsReports. In
* StatsReports signatures show up as the key in the per_query map (with the
* operation name prepended). The signature should be a valid GraphQL query.
* All traces must have a signature; if this Trace is in a FullTracesReport
* that signature is in the key of traces_per_query rather than in this field.
* Engineproxy provides the signature in legacy_signature_needs_resigning
* instead.
*
*
* string signature = 19;
* @param value The signature to set.
* @return This builder for chaining.
*/
public Builder setSignature(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
signature_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* In addition to details.raw_query, we include a "signature" of the query,
* which can be normalized: for example, you may want to discard aliases, drop
* unused operations and fragments, sort fields, etc. The most important thing
* here is that the signature match the signature in StatsReports. In
* StatsReports signatures show up as the key in the per_query map (with the
* operation name prepended). The signature should be a valid GraphQL query.
* All traces must have a signature; if this Trace is in a FullTracesReport
* that signature is in the key of traces_per_query rather than in this field.
* Engineproxy provides the signature in legacy_signature_needs_resigning
* instead.
*
* In addition to details.raw_query, we include a "signature" of the query,
* which can be normalized: for example, you may want to discard aliases, drop
* unused operations and fragments, sort fields, etc. The most important thing
* here is that the signature match the signature in StatsReports. In
* StatsReports signatures show up as the key in the per_query map (with the
* operation name prepended). The signature should be a valid GraphQL query.
* All traces must have a signature; if this Trace is in a FullTracesReport
* that signature is in the key of traces_per_query rather than in this field.
* Engineproxy provides the signature in legacy_signature_needs_resigning
* instead.
*
* Note: engineproxy always sets client_name, client_version, and client_address to "none".
* apollo-engine-reporting allows for them to be set by the user.
*
* Note: engineproxy always sets client_name, client_version, and client_address to "none".
* apollo-engine-reporting allows for them to be set by the user.
*
*
* string client_name = 7;
* @return The bytes for clientName.
*/
public com.google.protobuf.ByteString
getClientNameBytes() {
java.lang.Object ref = clientName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clientName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Note: engineproxy always sets client_name, client_version, and client_address to "none".
* apollo-engine-reporting allows for them to be set by the user.
*
*
* string client_name = 7;
* @param value The clientName to set.
* @return This builder for chaining.
*/
public Builder setClientName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
clientName_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* Note: engineproxy always sets client_name, client_version, and client_address to "none".
* apollo-engine-reporting allows for them to be set by the user.
*
* Note: engineproxy always sets client_name, client_version, and client_address to "none".
* apollo-engine-reporting allows for them to be set by the user.
*
*
* string client_name = 7;
* @param value The bytes for clientName to set.
* @return This builder for chaining.
*/
public Builder setClientNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
clientName_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
private java.lang.Object clientVersion_ = "";
/**
* string client_version = 8;
* @return The clientVersion.
*/
public java.lang.String getClientVersion() {
java.lang.Object ref = clientVersion_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
clientVersion_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string client_version = 8;
* @return The bytes for clientVersion.
*/
public com.google.protobuf.ByteString
getClientVersionBytes() {
java.lang.Object ref = clientVersion_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clientVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string client_version = 8;
* @param value The clientVersion to set.
* @return This builder for chaining.
*/
public Builder setClientVersion(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
clientVersion_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* string client_version = 8;
* @return This builder for chaining.
*/
public Builder clearClientVersion() {
clientVersion_ = getDefaultInstance().getClientVersion();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
/**
* string client_version = 8;
* @param value The bytes for clientVersion to set.
* @return This builder for chaining.
*/
public Builder setClientVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
clientVersion_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
private java.lang.Object clientAddress_ = "";
/**
* string client_address = 9;
* @return The clientAddress.
*/
public java.lang.String getClientAddress() {
java.lang.Object ref = clientAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
clientAddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string client_address = 9;
* @return The bytes for clientAddress.
*/
public com.google.protobuf.ByteString
getClientAddressBytes() {
java.lang.Object ref = clientAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clientAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string client_address = 9;
* @param value The clientAddress to set.
* @return This builder for chaining.
*/
public Builder setClientAddress(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
clientAddress_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* string client_address = 9;
* @return This builder for chaining.
*/
public Builder clearClientAddress() {
clientAddress_ = getDefaultInstance().getClientAddress();
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
/**
* string client_address = 9;
* @param value The bytes for clientAddress to set.
* @return This builder for chaining.
*/
public Builder setClientAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
clientAddress_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
private java.lang.Object clientReferenceId_ = "";
/**
* string client_reference_id = 23;
* @return The clientReferenceId.
*/
public java.lang.String getClientReferenceId() {
java.lang.Object ref = clientReferenceId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
clientReferenceId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string client_reference_id = 23;
* @return The bytes for clientReferenceId.
*/
public com.google.protobuf.ByteString
getClientReferenceIdBytes() {
java.lang.Object ref = clientReferenceId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clientReferenceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string client_reference_id = 23;
* @param value The clientReferenceId to set.
* @return This builder for chaining.
*/
public Builder setClientReferenceId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
clientReferenceId_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
* string client_reference_id = 23;
* @return This builder for chaining.
*/
public Builder clearClientReferenceId() {
clientReferenceId_ = getDefaultInstance().getClientReferenceId();
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
/**
* string client_reference_id = 23;
* @param value The bytes for clientReferenceId to set.
* @return This builder for chaining.
*/
public Builder setClientReferenceIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
clientReferenceId_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
private mdg.engine.proto.Reports.Trace.HTTP http_;
private com.google.protobuf.SingleFieldBuilder<
mdg.engine.proto.Reports.Trace.HTTP, mdg.engine.proto.Reports.Trace.HTTP.Builder, mdg.engine.proto.Reports.Trace.HTTPOrBuilder> httpBuilder_;
/**
* .mdg.engine.proto.Trace.HTTP http = 10;
* @return Whether the http field is set.
*/
public boolean hasHttp() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
* .mdg.engine.proto.Trace.HTTP http = 10;
* @return The http.
*/
public mdg.engine.proto.Reports.Trace.HTTP getHttp() {
if (httpBuilder_ == null) {
return http_ == null ? mdg.engine.proto.Reports.Trace.HTTP.getDefaultInstance() : http_;
} else {
return httpBuilder_.getMessage();
}
}
/**
* .mdg.engine.proto.Trace.HTTP http = 10;
*/
public Builder setHttp(mdg.engine.proto.Reports.Trace.HTTP value) {
if (httpBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
http_ = value;
} else {
httpBuilder_.setMessage(value);
}
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
* .mdg.engine.proto.Trace.HTTP http = 10;
*/
public Builder setHttp(
mdg.engine.proto.Reports.Trace.HTTP.Builder builderForValue) {
if (httpBuilder_ == null) {
http_ = builderForValue.build();
} else {
httpBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
* .mdg.engine.proto.Trace.HTTP http = 10;
*/
public Builder mergeHttp(mdg.engine.proto.Reports.Trace.HTTP value) {
if (httpBuilder_ == null) {
if (((bitField0_ & 0x00000400) != 0) &&
http_ != null &&
http_ != mdg.engine.proto.Reports.Trace.HTTP.getDefaultInstance()) {
getHttpBuilder().mergeFrom(value);
} else {
http_ = value;
}
} else {
httpBuilder_.mergeFrom(value);
}
if (http_ != null) {
bitField0_ |= 0x00000400;
onChanged();
}
return this;
}
/**
* .mdg.engine.proto.Trace.HTTP http = 10;
*/
public Builder clearHttp() {
bitField0_ = (bitField0_ & ~0x00000400);
http_ = null;
if (httpBuilder_ != null) {
httpBuilder_.dispose();
httpBuilder_ = null;
}
onChanged();
return this;
}
/**
* .mdg.engine.proto.Trace.HTTP http = 10;
*/
public mdg.engine.proto.Reports.Trace.HTTP.Builder getHttpBuilder() {
bitField0_ |= 0x00000400;
onChanged();
return getHttpFieldBuilder().getBuilder();
}
/**
* .mdg.engine.proto.Trace.HTTP http = 10;
*/
public mdg.engine.proto.Reports.Trace.HTTPOrBuilder getHttpOrBuilder() {
if (httpBuilder_ != null) {
return httpBuilder_.getMessageOrBuilder();
} else {
return http_ == null ?
mdg.engine.proto.Reports.Trace.HTTP.getDefaultInstance() : http_;
}
}
/**
* .mdg.engine.proto.Trace.HTTP http = 10;
*/
private com.google.protobuf.SingleFieldBuilder<
mdg.engine.proto.Reports.Trace.HTTP, mdg.engine.proto.Reports.Trace.HTTP.Builder, mdg.engine.proto.Reports.Trace.HTTPOrBuilder>
getHttpFieldBuilder() {
if (httpBuilder_ == null) {
httpBuilder_ = new com.google.protobuf.SingleFieldBuilder<
mdg.engine.proto.Reports.Trace.HTTP, mdg.engine.proto.Reports.Trace.HTTP.Builder, mdg.engine.proto.Reports.Trace.HTTPOrBuilder>(
getHttp(),
getParentForChildren(),
isClean());
http_ = null;
}
return httpBuilder_;
}
private mdg.engine.proto.Reports.Trace.CachePolicy cachePolicy_;
private com.google.protobuf.SingleFieldBuilder<
mdg.engine.proto.Reports.Trace.CachePolicy, mdg.engine.proto.Reports.Trace.CachePolicy.Builder, mdg.engine.proto.Reports.Trace.CachePolicyOrBuilder> cachePolicyBuilder_;
/**
* .mdg.engine.proto.Trace.CachePolicy cache_policy = 18;
* @return Whether the cachePolicy field is set.
*/
public boolean hasCachePolicy() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
* .mdg.engine.proto.Trace.CachePolicy cache_policy = 18;
* @return The cachePolicy.
*/
public mdg.engine.proto.Reports.Trace.CachePolicy getCachePolicy() {
if (cachePolicyBuilder_ == null) {
return cachePolicy_ == null ? mdg.engine.proto.Reports.Trace.CachePolicy.getDefaultInstance() : cachePolicy_;
} else {
return cachePolicyBuilder_.getMessage();
}
}
/**
* .mdg.engine.proto.Trace.CachePolicy cache_policy = 18;
*/
public Builder setCachePolicy(mdg.engine.proto.Reports.Trace.CachePolicy value) {
if (cachePolicyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
cachePolicy_ = value;
} else {
cachePolicyBuilder_.setMessage(value);
}
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
* .mdg.engine.proto.Trace.CachePolicy cache_policy = 18;
*/
public Builder setCachePolicy(
mdg.engine.proto.Reports.Trace.CachePolicy.Builder builderForValue) {
if (cachePolicyBuilder_ == null) {
cachePolicy_ = builderForValue.build();
} else {
cachePolicyBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
* .mdg.engine.proto.Trace.CachePolicy cache_policy = 18;
*/
public Builder mergeCachePolicy(mdg.engine.proto.Reports.Trace.CachePolicy value) {
if (cachePolicyBuilder_ == null) {
if (((bitField0_ & 0x00000800) != 0) &&
cachePolicy_ != null &&
cachePolicy_ != mdg.engine.proto.Reports.Trace.CachePolicy.getDefaultInstance()) {
getCachePolicyBuilder().mergeFrom(value);
} else {
cachePolicy_ = value;
}
} else {
cachePolicyBuilder_.mergeFrom(value);
}
if (cachePolicy_ != null) {
bitField0_ |= 0x00000800;
onChanged();
}
return this;
}
/**
* .mdg.engine.proto.Trace.CachePolicy cache_policy = 18;
*/
public Builder clearCachePolicy() {
bitField0_ = (bitField0_ & ~0x00000800);
cachePolicy_ = null;
if (cachePolicyBuilder_ != null) {
cachePolicyBuilder_.dispose();
cachePolicyBuilder_ = null;
}
onChanged();
return this;
}
/**
* .mdg.engine.proto.Trace.CachePolicy cache_policy = 18;
*/
public mdg.engine.proto.Reports.Trace.CachePolicy.Builder getCachePolicyBuilder() {
bitField0_ |= 0x00000800;
onChanged();
return getCachePolicyFieldBuilder().getBuilder();
}
/**
* .mdg.engine.proto.Trace.CachePolicy cache_policy = 18;
*/
public mdg.engine.proto.Reports.Trace.CachePolicyOrBuilder getCachePolicyOrBuilder() {
if (cachePolicyBuilder_ != null) {
return cachePolicyBuilder_.getMessageOrBuilder();
} else {
return cachePolicy_ == null ?
mdg.engine.proto.Reports.Trace.CachePolicy.getDefaultInstance() : cachePolicy_;
}
}
/**
* .mdg.engine.proto.Trace.CachePolicy cache_policy = 18;
*/
private com.google.protobuf.SingleFieldBuilder<
mdg.engine.proto.Reports.Trace.CachePolicy, mdg.engine.proto.Reports.Trace.CachePolicy.Builder, mdg.engine.proto.Reports.Trace.CachePolicyOrBuilder>
getCachePolicyFieldBuilder() {
if (cachePolicyBuilder_ == null) {
cachePolicyBuilder_ = new com.google.protobuf.SingleFieldBuilder<
mdg.engine.proto.Reports.Trace.CachePolicy, mdg.engine.proto.Reports.Trace.CachePolicy.Builder, mdg.engine.proto.Reports.Trace.CachePolicyOrBuilder>(
getCachePolicy(),
getParentForChildren(),
isClean());
cachePolicy_ = null;
}
return cachePolicyBuilder_;
}
private mdg.engine.proto.Reports.Trace.QueryPlanNode queryPlan_;
private com.google.protobuf.SingleFieldBuilder<
mdg.engine.proto.Reports.Trace.QueryPlanNode, mdg.engine.proto.Reports.Trace.QueryPlanNode.Builder, mdg.engine.proto.Reports.Trace.QueryPlanNodeOrBuilder> queryPlanBuilder_;
/**
*
* If this Trace was created by a gateway, this is the query plan, including
* sub-Traces for federated services. Note that the 'root' tree on the
* top-level Trace won't contain any resolvers (though it could contain errors
* that occurred in the gateway itself).
*
*
* .mdg.engine.proto.Trace.QueryPlanNode query_plan = 26;
* @return Whether the queryPlan field is set.
*/
public boolean hasQueryPlan() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
*
* If this Trace was created by a gateway, this is the query plan, including
* sub-Traces for federated services. Note that the 'root' tree on the
* top-level Trace won't contain any resolvers (though it could contain errors
* that occurred in the gateway itself).
*
* If this Trace was created by a gateway, this is the query plan, including
* sub-Traces for federated services. Note that the 'root' tree on the
* top-level Trace won't contain any resolvers (though it could contain errors
* that occurred in the gateway itself).
*
* If this Trace was created by a gateway, this is the query plan, including
* sub-Traces for federated services. Note that the 'root' tree on the
* top-level Trace won't contain any resolvers (though it could contain errors
* that occurred in the gateway itself).
*
* If this Trace was created by a gateway, this is the query plan, including
* sub-Traces for federated services. Note that the 'root' tree on the
* top-level Trace won't contain any resolvers (though it could contain errors
* that occurred in the gateway itself).
*
* If this Trace was created by a gateway, this is the query plan, including
* sub-Traces for federated services. Note that the 'root' tree on the
* top-level Trace won't contain any resolvers (though it could contain errors
* that occurred in the gateway itself).
*
* If this Trace was created by a gateway, this is the query plan, including
* sub-Traces for federated services. Note that the 'root' tree on the
* top-level Trace won't contain any resolvers (though it could contain errors
* that occurred in the gateway itself).
*
* If this Trace was created by a gateway, this is the query plan, including
* sub-Traces for federated services. Note that the 'root' tree on the
* top-level Trace won't contain any resolvers (though it could contain errors
* that occurred in the gateway itself).
*
* If this Trace was created by a gateway, this is the query plan, including
* sub-Traces for federated services. Note that the 'root' tree on the
* top-level Trace won't contain any resolvers (though it could contain errors
* that occurred in the gateway itself).
*
* Did this query contain both a full query string and a persisted query hash?
* (This typically means that a previous request was rejected as an unknown
* persisted query.)
*
* Did this query contain both a full query string and a persisted query hash?
* (This typically means that a previous request was rejected as an unknown
* persisted query.)
*
*
* bool persisted_query_register = 22;
* @param value The persistedQueryRegister to set.
* @return This builder for chaining.
*/
public Builder setPersistedQueryRegister(boolean value) {
persistedQueryRegister_ = value;
bitField0_ |= 0x00008000;
onChanged();
return this;
}
/**
*
* Did this query contain both a full query string and a persisted query hash?
* (This typically means that a previous request was rejected as an unknown
* persisted query.)
*
* Older agents (eg the Go engineproxy) relied to some degree on the Engine
* backend to run their own semi-compatible implementation of a specific
* variant of query signatures. The backend does not do this for new agents (which
* set the above 'signature' field). It used to still "re-sign" signatures
* from engineproxy, but we've now simplified the backend to no longer do this.
* Deprecated and ignored in FullTracesReports.
*
* Older agents (eg the Go engineproxy) relied to some degree on the Engine
* backend to run their own semi-compatible implementation of a specific
* variant of query signatures. The backend does not do this for new agents (which
* set the above 'signature' field). It used to still "re-sign" signatures
* from engineproxy, but we've now simplified the backend to no longer do this.
* Deprecated and ignored in FullTracesReports.
*
*
* string legacy_signature_needs_resigning = 5;
* @return The bytes for legacySignatureNeedsResigning.
*/
public com.google.protobuf.ByteString
getLegacySignatureNeedsResigningBytes() {
java.lang.Object ref = legacySignatureNeedsResigning_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
legacySignatureNeedsResigning_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Older agents (eg the Go engineproxy) relied to some degree on the Engine
* backend to run their own semi-compatible implementation of a specific
* variant of query signatures. The backend does not do this for new agents (which
* set the above 'signature' field). It used to still "re-sign" signatures
* from engineproxy, but we've now simplified the backend to no longer do this.
* Deprecated and ignored in FullTracesReports.
*
*
* string legacy_signature_needs_resigning = 5;
* @param value The legacySignatureNeedsResigning to set.
* @return This builder for chaining.
*/
public Builder setLegacySignatureNeedsResigning(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
legacySignatureNeedsResigning_ = value;
bitField0_ |= 0x00200000;
onChanged();
return this;
}
/**
*
* Older agents (eg the Go engineproxy) relied to some degree on the Engine
* backend to run their own semi-compatible implementation of a specific
* variant of query signatures. The backend does not do this for new agents (which
* set the above 'signature' field). It used to still "re-sign" signatures
* from engineproxy, but we've now simplified the backend to no longer do this.
* Deprecated and ignored in FullTracesReports.
*
* Older agents (eg the Go engineproxy) relied to some degree on the Engine
* backend to run their own semi-compatible implementation of a specific
* variant of query signatures. The backend does not do this for new agents (which
* set the above 'signature' field). It used to still "re-sign" signatures
* from engineproxy, but we've now simplified the backend to no longer do this.
* Deprecated and ignored in FullTracesReports.
*
*
* string legacy_signature_needs_resigning = 5;
* @param value The bytes for legacySignatureNeedsResigning to set.
* @return This builder for chaining.
*/
public Builder setLegacySignatureNeedsResigningBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
legacySignatureNeedsResigning_ = value;
bitField0_ |= 0x00200000;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:mdg.engine.proto.Trace)
}
// @@protoc_insertion_point(class_scope:mdg.engine.proto.Trace)
private static final mdg.engine.proto.Reports.Trace DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new mdg.engine.proto.Reports.Trace();
}
public static mdg.engine.proto.Reports.Trace getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Trace parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ReportHeaderOrBuilder extends
// @@protoc_insertion_point(interface_extends:mdg.engine.proto.ReportHeader)
com.google.protobuf.MessageOrBuilder {
/**
* string service = 3;
* @return The service.
*/
java.lang.String getService();
/**
* string service = 3;
* @return The bytes for service.
*/
com.google.protobuf.ByteString
getServiceBytes();
/**
*
* The hex representation of the sha512 of the introspection response
*
*
* string schema_hash = 11;
* @return The bytes for schemaHash.
*/
com.google.protobuf.ByteString
getSchemaHashBytes();
}
/**
*
* The `service` value embedded within the header key is not guaranteed to contain an actual service,
* and, in most cases, the service information is trusted to come from upstream processing. If the
* service _is_ specified in this header, then it is checked to match the context that is reporting it.
* Otherwise, the service information is deduced from the token context of the reporter and then sent
* along via other mechanisms (in Kafka, the `ReportKafkaKey). The other information (hostname,
* agent_version, etc.) is sent by the Apollo Engine Reporting agent, but we do not currently save that
* information to any of our persistent storage.
*
*
* Protobuf type {@code mdg.engine.proto.ReportHeader}
*/
public static final class ReportHeader extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:mdg.engine.proto.ReportHeader)
ReportHeaderOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 1,
/* suffix= */ "",
ReportHeader.class.getName());
}
// Use ReportHeader.newBuilder() to construct.
private ReportHeader(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private ReportHeader() {
service_ = "";
hostname_ = "";
agentVersion_ = "";
serviceVersion_ = "";
runtimeVersion_ = "";
uname_ = "";
schemaTag_ = "";
schemaHash_ = "";
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_ReportHeader_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_ReportHeader_fieldAccessorTable
.ensureFieldAccessorsInitialized(
mdg.engine.proto.Reports.ReportHeader.class, mdg.engine.proto.Reports.ReportHeader.Builder.class);
}
public static final int SERVICE_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object service_ = "";
/**
* string service = 3;
* @return The service.
*/
@java.lang.Override
public java.lang.String getService() {
java.lang.Object ref = service_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
service_ = s;
return s;
}
}
/**
* string service = 3;
* @return The bytes for service.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getServiceBytes() {
java.lang.Object ref = service_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
service_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int HOSTNAME_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object hostname_ = "";
/**
*
* The `service` value embedded within the header key is not guaranteed to contain an actual service,
* and, in most cases, the service information is trusted to come from upstream processing. If the
* service _is_ specified in this header, then it is checked to match the context that is reporting it.
* Otherwise, the service information is deduced from the token context of the reporter and then sent
* along via other mechanisms (in Kafka, the `ReportKafkaKey). The other information (hostname,
* agent_version, etc.) is sent by the Apollo Engine Reporting agent, but we do not currently save that
* information to any of our persistent storage.
*
*
* Protobuf type {@code mdg.engine.proto.ReportHeader}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:mdg.engine.proto.ReportHeader)
mdg.engine.proto.Reports.ReportHeaderOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_ReportHeader_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_ReportHeader_fieldAccessorTable
.ensureFieldAccessorsInitialized(
mdg.engine.proto.Reports.ReportHeader.class, mdg.engine.proto.Reports.ReportHeader.Builder.class);
}
// Construct using mdg.engine.proto.Reports.ReportHeader.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
service_ = "";
hostname_ = "";
agentVersion_ = "";
serviceVersion_ = "";
runtimeVersion_ = "";
uname_ = "";
schemaTag_ = "";
schemaHash_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_ReportHeader_descriptor;
}
@java.lang.Override
public mdg.engine.proto.Reports.ReportHeader getDefaultInstanceForType() {
return mdg.engine.proto.Reports.ReportHeader.getDefaultInstance();
}
@java.lang.Override
public mdg.engine.proto.Reports.ReportHeader build() {
mdg.engine.proto.Reports.ReportHeader result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public mdg.engine.proto.Reports.ReportHeader buildPartial() {
mdg.engine.proto.Reports.ReportHeader result = new mdg.engine.proto.Reports.ReportHeader(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(mdg.engine.proto.Reports.ReportHeader result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.service_ = service_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.hostname_ = hostname_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.agentVersion_ = agentVersion_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.serviceVersion_ = serviceVersion_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.runtimeVersion_ = runtimeVersion_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.uname_ = uname_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.schemaTag_ = schemaTag_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.schemaHash_ = schemaHash_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof mdg.engine.proto.Reports.ReportHeader) {
return mergeFrom((mdg.engine.proto.Reports.ReportHeader)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(mdg.engine.proto.Reports.ReportHeader other) {
if (other == mdg.engine.proto.Reports.ReportHeader.getDefaultInstance()) return this;
if (!other.getService().isEmpty()) {
service_ = other.service_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getHostname().isEmpty()) {
hostname_ = other.hostname_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getAgentVersion().isEmpty()) {
agentVersion_ = other.agentVersion_;
bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getServiceVersion().isEmpty()) {
serviceVersion_ = other.serviceVersion_;
bitField0_ |= 0x00000008;
onChanged();
}
if (!other.getRuntimeVersion().isEmpty()) {
runtimeVersion_ = other.runtimeVersion_;
bitField0_ |= 0x00000010;
onChanged();
}
if (!other.getUname().isEmpty()) {
uname_ = other.uname_;
bitField0_ |= 0x00000020;
onChanged();
}
if (!other.getSchemaTag().isEmpty()) {
schemaTag_ = other.schemaTag_;
bitField0_ |= 0x00000040;
onChanged();
}
if (!other.getSchemaHash().isEmpty()) {
schemaHash_ = other.schemaHash_;
bitField0_ |= 0x00000080;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 26: {
service_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 26
case 42: {
hostname_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 42
case 50: {
agentVersion_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 50
case 58: {
serviceVersion_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 58
case 66: {
runtimeVersion_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 66
case 74: {
uname_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 74
case 82: {
schemaTag_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
break;
} // case 82
case 90: {
schemaHash_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000080;
break;
} // case 90
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object service_ = "";
/**
* string service = 3;
* @return The service.
*/
public java.lang.String getService() {
java.lang.Object ref = service_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
service_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string service = 3;
* @return The bytes for service.
*/
public com.google.protobuf.ByteString
getServiceBytes() {
java.lang.Object ref = service_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
service_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string service = 3;
* @param value The service to set.
* @return This builder for chaining.
*/
public Builder setService(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
service_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string service = 3;
* @return This builder for chaining.
*/
public Builder clearService() {
service_ = getDefaultInstance().getService();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string service = 3;
* @param value The bytes for service to set.
* @return This builder for chaining.
*/
public Builder setServiceBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
service_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object hostname_ = "";
/**
*
* The hex representation of the sha512 of the introspection response
*
*
* string schema_hash = 11;
* @param value The bytes for schemaHash to set.
* @return This builder for chaining.
*/
public Builder setSchemaHashBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
schemaHash_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:mdg.engine.proto.ReportHeader)
}
// @@protoc_insertion_point(class_scope:mdg.engine.proto.ReportHeader)
private static final mdg.engine.proto.Reports.ReportHeader DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new mdg.engine.proto.Reports.ReportHeader();
}
public static mdg.engine.proto.Reports.ReportHeader getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ReportHeader parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public mdg.engine.proto.Reports.ReportHeader getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PathErrorStatsOrBuilder extends
// @@protoc_insertion_point(interface_extends:mdg.engine.proto.PathErrorStats)
com.google.protobuf.MessageOrBuilder {
/**
* map<string, .mdg.engine.proto.PathErrorStats> children = 1;
*/
int getChildrenCount();
/**
* map<string, .mdg.engine.proto.PathErrorStats> children = 1;
*/
boolean containsChildren(
java.lang.String key);
/**
* Use {@link #getChildrenMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getChildren();
/**
* map<string, .mdg.engine.proto.PathErrorStats> children = 1;
*/
java.util.Map
getChildrenMap();
/**
* map<string, .mdg.engine.proto.PathErrorStats> children = 1;
*/
/* nullable */
mdg.engine.proto.Reports.PathErrorStats getChildrenOrDefault(
java.lang.String key,
/* nullable */
mdg.engine.proto.Reports.PathErrorStats defaultValue);
/**
* map<string, .mdg.engine.proto.PathErrorStats> children = 1;
*/
mdg.engine.proto.Reports.PathErrorStats getChildrenOrThrow(
java.lang.String key);
/**
* uint64 errors_count = 4;
* @return The errorsCount.
*/
long getErrorsCount();
/**
* uint64 requests_with_errors_count = 5;
* @return The requestsWithErrorsCount.
*/
long getRequestsWithErrorsCount();
}
/**
* Protobuf type {@code mdg.engine.proto.PathErrorStats}
*/
public static final class PathErrorStats extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:mdg.engine.proto.PathErrorStats)
PathErrorStatsOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 1,
/* suffix= */ "",
PathErrorStats.class.getName());
}
// Use PathErrorStats.newBuilder() to construct.
private PathErrorStats(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private PathErrorStats() {
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_PathErrorStats_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 1:
return internalGetChildren();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_PathErrorStats_fieldAccessorTable
.ensureFieldAccessorsInitialized(
mdg.engine.proto.Reports.PathErrorStats.class, mdg.engine.proto.Reports.PathErrorStats.Builder.class);
}
public static final int CHILDREN_FIELD_NUMBER = 1;
private static final class ChildrenDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, mdg.engine.proto.Reports.PathErrorStats> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
mdg.engine.proto.Reports.internal_static_mdg_engine_proto_PathErrorStats_ChildrenEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
mdg.engine.proto.Reports.PathErrorStats.getDefaultInstance());
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String, mdg.engine.proto.Reports.PathErrorStats> children_;
private com.google.protobuf.MapField
internalGetChildren() {
if (children_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ChildrenDefaultEntryHolder.defaultEntry);
}
return children_;
}
public int getChildrenCount() {
return internalGetChildren().getMap().size();
}
/**
* map<string, .mdg.engine.proto.PathErrorStats> children = 1;
*/
@java.lang.Override
public boolean containsChildren(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetChildren().getMap().containsKey(key);
}
/**
* Use {@link #getChildrenMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getChildren() {
return getChildrenMap();
}
/**
* map<string, .mdg.engine.proto.PathErrorStats> children = 1;
*/
@java.lang.Override
public java.util.Map getChildrenMap() {
return internalGetChildren().getMap();
}
/**
* map<string, .mdg.engine.proto.PathErrorStats> children = 1;
*/
@java.lang.Override
public /* nullable */
mdg.engine.proto.Reports.PathErrorStats getChildrenOrDefault(
java.lang.String key,
/* nullable */
mdg.engine.proto.Reports.PathErrorStats defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetChildren().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .mdg.engine.proto.PathErrorStats> children = 1;
*/
@java.lang.Override
public mdg.engine.proto.Reports.PathErrorStats getChildrenOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetChildren().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int ERRORS_COUNT_FIELD_NUMBER = 4;
private long errorsCount_ = 0L;
/**
* uint64 errors_count = 4;
* @return The errorsCount.
*/
@java.lang.Override
public long getErrorsCount() {
return errorsCount_;
}
public static final int REQUESTS_WITH_ERRORS_COUNT_FIELD_NUMBER = 5;
private long requestsWithErrorsCount_ = 0L;
/**
* uint64 requests_with_errors_count = 5;
* @return The requestsWithErrorsCount.
*/
@java.lang.Override
public long getRequestsWithErrorsCount() {
return requestsWithErrorsCount_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
com.google.protobuf.GeneratedMessage
.serializeStringMapTo(
output,
internalGetChildren(),
ChildrenDefaultEntryHolder.defaultEntry,
1);
if (errorsCount_ != 0L) {
output.writeUInt64(4, errorsCount_);
}
if (requestsWithErrorsCount_ != 0L) {
output.writeUInt64(5, requestsWithErrorsCount_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (java.util.Map.Entry entry
: internalGetChildren().getMap().entrySet()) {
com.google.protobuf.MapEntry
children__ = ChildrenDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, children__);
}
if (errorsCount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(4, errorsCount_);
}
if (requestsWithErrorsCount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(5, requestsWithErrorsCount_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof mdg.engine.proto.Reports.PathErrorStats)) {
return super.equals(obj);
}
mdg.engine.proto.Reports.PathErrorStats other = (mdg.engine.proto.Reports.PathErrorStats) obj;
if (!internalGetChildren().equals(
other.internalGetChildren())) return false;
if (getErrorsCount()
!= other.getErrorsCount()) return false;
if (getRequestsWithErrorsCount()
!= other.getRequestsWithErrorsCount()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (!internalGetChildren().getMap().isEmpty()) {
hash = (37 * hash) + CHILDREN_FIELD_NUMBER;
hash = (53 * hash) + internalGetChildren().hashCode();
}
hash = (37 * hash) + ERRORS_COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getErrorsCount());
hash = (37 * hash) + REQUESTS_WITH_ERRORS_COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getRequestsWithErrorsCount());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static mdg.engine.proto.Reports.PathErrorStats parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.PathErrorStats parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static mdg.engine.proto.Reports.PathErrorStats parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.PathErrorStats parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static mdg.engine.proto.Reports.PathErrorStats parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.PathErrorStats parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static mdg.engine.proto.Reports.PathErrorStats parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.PathErrorStats parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static mdg.engine.proto.Reports.PathErrorStats parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.PathErrorStats parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static mdg.engine.proto.Reports.PathErrorStats parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.PathErrorStats parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(mdg.engine.proto.Reports.PathErrorStats prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code mdg.engine.proto.PathErrorStats}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:mdg.engine.proto.PathErrorStats)
mdg.engine.proto.Reports.PathErrorStatsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_PathErrorStats_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 1:
return internalGetChildren();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
int number) {
switch (number) {
case 1:
return internalGetMutableChildren();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_PathErrorStats_fieldAccessorTable
.ensureFieldAccessorsInitialized(
mdg.engine.proto.Reports.PathErrorStats.class, mdg.engine.proto.Reports.PathErrorStats.Builder.class);
}
// Construct using mdg.engine.proto.Reports.PathErrorStats.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
internalGetMutableChildren().clear();
errorsCount_ = 0L;
requestsWithErrorsCount_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_PathErrorStats_descriptor;
}
@java.lang.Override
public mdg.engine.proto.Reports.PathErrorStats getDefaultInstanceForType() {
return mdg.engine.proto.Reports.PathErrorStats.getDefaultInstance();
}
@java.lang.Override
public mdg.engine.proto.Reports.PathErrorStats build() {
mdg.engine.proto.Reports.PathErrorStats result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public mdg.engine.proto.Reports.PathErrorStats buildPartial() {
mdg.engine.proto.Reports.PathErrorStats result = new mdg.engine.proto.Reports.PathErrorStats(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(mdg.engine.proto.Reports.PathErrorStats result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.children_ = internalGetChildren().build(ChildrenDefaultEntryHolder.defaultEntry);
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.errorsCount_ = errorsCount_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.requestsWithErrorsCount_ = requestsWithErrorsCount_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof mdg.engine.proto.Reports.PathErrorStats) {
return mergeFrom((mdg.engine.proto.Reports.PathErrorStats)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(mdg.engine.proto.Reports.PathErrorStats other) {
if (other == mdg.engine.proto.Reports.PathErrorStats.getDefaultInstance()) return this;
internalGetMutableChildren().mergeFrom(
other.internalGetChildren());
bitField0_ |= 0x00000001;
if (other.getErrorsCount() != 0L) {
setErrorsCount(other.getErrorsCount());
}
if (other.getRequestsWithErrorsCount() != 0L) {
setRequestsWithErrorsCount(other.getRequestsWithErrorsCount());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.MapEntry
children__ = input.readMessage(
ChildrenDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableChildren().ensureBuilderMap().put(
children__.getKey(), children__.getValue());
bitField0_ |= 0x00000001;
break;
} // case 10
case 32: {
errorsCount_ = input.readUInt64();
bitField0_ |= 0x00000002;
break;
} // case 32
case 40: {
requestsWithErrorsCount_ = input.readUInt64();
bitField0_ |= 0x00000004;
break;
} // case 40
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private static final class ChildrenConverter implements com.google.protobuf.MapFieldBuilder.Converter {
@java.lang.Override
public mdg.engine.proto.Reports.PathErrorStats build(mdg.engine.proto.Reports.PathErrorStatsOrBuilder val) {
if (val instanceof mdg.engine.proto.Reports.PathErrorStats) { return (mdg.engine.proto.Reports.PathErrorStats) val; }
return ((mdg.engine.proto.Reports.PathErrorStats.Builder) val).build();
}
@java.lang.Override
public com.google.protobuf.MapEntry defaultEntry() {
return ChildrenDefaultEntryHolder.defaultEntry;
}
};
private static final ChildrenConverter childrenConverter = new ChildrenConverter();
private com.google.protobuf.MapFieldBuilder<
java.lang.String, mdg.engine.proto.Reports.PathErrorStatsOrBuilder, mdg.engine.proto.Reports.PathErrorStats, mdg.engine.proto.Reports.PathErrorStats.Builder> children_;
private com.google.protobuf.MapFieldBuilder
internalGetChildren() {
if (children_ == null) {
return new com.google.protobuf.MapFieldBuilder<>(childrenConverter);
}
return children_;
}
private com.google.protobuf.MapFieldBuilder
internalGetMutableChildren() {
if (children_ == null) {
children_ = new com.google.protobuf.MapFieldBuilder<>(childrenConverter);
}
bitField0_ |= 0x00000001;
onChanged();
return children_;
}
public int getChildrenCount() {
return internalGetChildren().ensureBuilderMap().size();
}
/**
* map<string, .mdg.engine.proto.PathErrorStats> children = 1;
*/
@java.lang.Override
public boolean containsChildren(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetChildren().ensureBuilderMap().containsKey(key);
}
/**
* Use {@link #getChildrenMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getChildren() {
return getChildrenMap();
}
/**
* map<string, .mdg.engine.proto.PathErrorStats> children = 1;
*/
@java.lang.Override
public java.util.Map getChildrenMap() {
return internalGetChildren().getImmutableMap();
}
/**
* map<string, .mdg.engine.proto.PathErrorStats> children = 1;
*/
@java.lang.Override
public /* nullable */
mdg.engine.proto.Reports.PathErrorStats getChildrenOrDefault(
java.lang.String key,
/* nullable */
mdg.engine.proto.Reports.PathErrorStats defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map = internalGetMutableChildren().ensureBuilderMap();
return map.containsKey(key) ? childrenConverter.build(map.get(key)) : defaultValue;
}
/**
* map<string, .mdg.engine.proto.PathErrorStats> children = 1;
*/
@java.lang.Override
public mdg.engine.proto.Reports.PathErrorStats getChildrenOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map = internalGetMutableChildren().ensureBuilderMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return childrenConverter.build(map.get(key));
}
public Builder clearChildren() {
bitField0_ = (bitField0_ & ~0x00000001);
internalGetMutableChildren().clear();
return this;
}
/**
* map<string, .mdg.engine.proto.PathErrorStats> children = 1;
*/
public Builder removeChildren(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableChildren().ensureBuilderMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableChildren() {
bitField0_ |= 0x00000001;
return internalGetMutableChildren().ensureMessageMap();
}
/**
* map<string, .mdg.engine.proto.PathErrorStats> children = 1;
*/
public Builder putChildren(
java.lang.String key,
mdg.engine.proto.Reports.PathErrorStats value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) { throw new NullPointerException("map value"); }
internalGetMutableChildren().ensureBuilderMap()
.put(key, value);
bitField0_ |= 0x00000001;
return this;
}
/**
* map<string, .mdg.engine.proto.PathErrorStats> children = 1;
*/
public Builder putAllChildren(
java.util.Map values) {
for (java.util.Map.Entry e : values.entrySet()) {
if (e.getKey() == null || e.getValue() == null) {
throw new NullPointerException();
}
}
internalGetMutableChildren().ensureBuilderMap()
.putAll(values);
bitField0_ |= 0x00000001;
return this;
}
/**
* map<string, .mdg.engine.proto.PathErrorStats> children = 1;
*/
public mdg.engine.proto.Reports.PathErrorStats.Builder putChildrenBuilderIfAbsent(
java.lang.String key) {
java.util.Map builderMap = internalGetMutableChildren().ensureBuilderMap();
mdg.engine.proto.Reports.PathErrorStatsOrBuilder entry = builderMap.get(key);
if (entry == null) {
entry = mdg.engine.proto.Reports.PathErrorStats.newBuilder();
builderMap.put(key, entry);
}
if (entry instanceof mdg.engine.proto.Reports.PathErrorStats) {
entry = ((mdg.engine.proto.Reports.PathErrorStats) entry).toBuilder();
builderMap.put(key, entry);
}
return (mdg.engine.proto.Reports.PathErrorStats.Builder) entry;
}
private long errorsCount_ ;
/**
* uint64 errors_count = 4;
* @return The errorsCount.
*/
@java.lang.Override
public long getErrorsCount() {
return errorsCount_;
}
/**
* uint64 errors_count = 4;
* @param value The errorsCount to set.
* @return This builder for chaining.
*/
public Builder setErrorsCount(long value) {
errorsCount_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* uint64 errors_count = 4;
* @return This builder for chaining.
*/
public Builder clearErrorsCount() {
bitField0_ = (bitField0_ & ~0x00000002);
errorsCount_ = 0L;
onChanged();
return this;
}
private long requestsWithErrorsCount_ ;
/**
* uint64 requests_with_errors_count = 5;
* @return The requestsWithErrorsCount.
*/
@java.lang.Override
public long getRequestsWithErrorsCount() {
return requestsWithErrorsCount_;
}
/**
* uint64 requests_with_errors_count = 5;
* @param value The requestsWithErrorsCount to set.
* @return This builder for chaining.
*/
public Builder setRequestsWithErrorsCount(long value) {
requestsWithErrorsCount_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* uint64 requests_with_errors_count = 5;
* @return This builder for chaining.
*/
public Builder clearRequestsWithErrorsCount() {
bitField0_ = (bitField0_ & ~0x00000004);
requestsWithErrorsCount_ = 0L;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:mdg.engine.proto.PathErrorStats)
}
// @@protoc_insertion_point(class_scope:mdg.engine.proto.PathErrorStats)
private static final mdg.engine.proto.Reports.PathErrorStats DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new mdg.engine.proto.Reports.PathErrorStats();
}
public static mdg.engine.proto.Reports.PathErrorStats getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PathErrorStats parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public mdg.engine.proto.Reports.PathErrorStats getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ClientNameStatsOrBuilder extends
// @@protoc_insertion_point(interface_extends:mdg.engine.proto.ClientNameStats)
com.google.protobuf.MessageOrBuilder {
/**
*
* Duration histogram for non-cache-hit queries.
* (See docs/histograms.md for the histogram format.)
*
*
* repeated int64 latency_count = 1;
* @return A list containing the latencyCount.
*/
java.util.List getLatencyCountList();
/**
*
* Duration histogram for non-cache-hit queries.
* (See docs/histograms.md for the histogram format.)
*
*
* repeated int64 latency_count = 1;
* @return The count of latencyCount.
*/
int getLatencyCountCount();
/**
*
* Duration histogram for non-cache-hit queries.
* (See docs/histograms.md for the histogram format.)
*
*
* repeated int64 latency_count = 1;
* @param index The index of the element to return.
* @return The latencyCount at the given index.
*/
long getLatencyCount(int index);
/**
*
* These per-version fields were used to understand what versions contributed to this sample
* when we were implementing the aggregation of this information ourselves using BigTable.
* However, since the per-version stats don't separate out latency, it makes more sense to
* have stats reported with contextual information so we can have the specific breakdown we're
* looking for. These fields are somewhat misleading as we never actually do any per-version
* awareness with anything reporting in the legacy "per_client_name" stats, and instead use
* "query_stats_with_context" to have more contextual information.
*
* These per-version fields were used to understand what versions contributed to this sample
* when we were implementing the aggregation of this information ourselves using BigTable.
* However, since the per-version stats don't separate out latency, it makes more sense to
* have stats reported with contextual information so we can have the specific breakdown we're
* looking for. These fields are somewhat misleading as we never actually do any per-version
* awareness with anything reporting in the legacy "per_client_name" stats, and instead use
* "query_stats_with_context" to have more contextual information.
*
* These per-version fields were used to understand what versions contributed to this sample
* when we were implementing the aggregation of this information ourselves using BigTable.
* However, since the per-version stats don't separate out latency, it makes more sense to
* have stats reported with contextual information so we can have the specific breakdown we're
* looking for. These fields are somewhat misleading as we never actually do any per-version
* awareness with anything reporting in the legacy "per_client_name" stats, and instead use
* "query_stats_with_context" to have more contextual information.
*
* These per-version fields were used to understand what versions contributed to this sample
* when we were implementing the aggregation of this information ourselves using BigTable.
* However, since the per-version stats don't separate out latency, it makes more sense to
* have stats reported with contextual information so we can have the specific breakdown we're
* looking for. These fields are somewhat misleading as we never actually do any per-version
* awareness with anything reporting in the legacy "per_client_name" stats, and instead use
* "query_stats_with_context" to have more contextual information.
*
*
* map<string, uint64> requests_count_per_version = 3;
*/
long getRequestsCountPerVersionOrDefault(
java.lang.String key,
long defaultValue);
/**
*
* These per-version fields were used to understand what versions contributed to this sample
* when we were implementing the aggregation of this information ourselves using BigTable.
* However, since the per-version stats don't separate out latency, it makes more sense to
* have stats reported with contextual information so we can have the specific breakdown we're
* looking for. These fields are somewhat misleading as we never actually do any per-version
* awareness with anything reporting in the legacy "per_client_name" stats, and instead use
* "query_stats_with_context" to have more contextual information.
*
*
* repeated int64 cache_latency_count = 5;
* @return A list containing the cacheLatencyCount.
*/
java.util.List getCacheLatencyCountList();
/**
*
* Duration histogram; see docs/histograms.md
*
*
* repeated int64 cache_latency_count = 5;
* @return The count of cacheLatencyCount.
*/
int getCacheLatencyCountCount();
/**
*
* Duration histogram; see docs/histograms.md
*
*
* repeated int64 cache_latency_count = 5;
* @param index The index of the element to return.
* @return The cacheLatencyCount at the given index.
*/
long getCacheLatencyCount(int index);
/**
* .mdg.engine.proto.PathErrorStats root_error_stats = 6;
* @return Whether the rootErrorStats field is set.
*/
boolean hasRootErrorStats();
/**
* .mdg.engine.proto.PathErrorStats root_error_stats = 6;
* @return The rootErrorStats.
*/
mdg.engine.proto.Reports.PathErrorStats getRootErrorStats();
/**
* .mdg.engine.proto.PathErrorStats root_error_stats = 6;
*/
mdg.engine.proto.Reports.PathErrorStatsOrBuilder getRootErrorStatsOrBuilder();
/**
* uint64 requests_with_errors_count = 7;
* @return The requestsWithErrorsCount.
*/
long getRequestsWithErrorsCount();
/**
*
* TTL histograms for cache misses for the public cache.
*
*
* repeated int64 public_cache_ttl_count = 8;
* @return A list containing the publicCacheTtlCount.
*/
java.util.List getPublicCacheTtlCountList();
/**
*
* TTL histograms for cache misses for the public cache.
*
*
* repeated int64 public_cache_ttl_count = 8;
* @return The count of publicCacheTtlCount.
*/
int getPublicCacheTtlCountCount();
/**
*
* TTL histograms for cache misses for the public cache.
*
*
* repeated int64 public_cache_ttl_count = 8;
* @param index The index of the element to return.
* @return The publicCacheTtlCount at the given index.
*/
long getPublicCacheTtlCount(int index);
/**
*
* TTL histograms for cache misses for the private cache.
*
*
* repeated int64 private_cache_ttl_count = 9;
* @return A list containing the privateCacheTtlCount.
*/
java.util.List getPrivateCacheTtlCountList();
/**
*