mdg.engine.proto.Reports Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of federation-graphql-java-support Show documentation
Show all versions of federation-graphql-java-support Show documentation
GraphQL Java server support for Apollo Federation
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: reports.proto
package mdg.engine.proto;
public final class Reports {
private Reports() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface TraceOrBuilder extends
// @@protoc_insertion_point(interface_extends:mdg.engine.proto.Trace)
com.google.protobuf.MessageOrBuilder {
/**
*
* Wallclock time when the trace began.
*
*
* .google.protobuf.Timestamp start_time = 4;
* @return Whether the startTime field is set.
*/
boolean hasStartTime();
/**
*
* Wallclock time when the trace began.
*
*
* .google.protobuf.Timestamp start_time = 4;
* @return The startTime.
*/
com.google.protobuf.Timestamp getStartTime();
/**
*
* Wallclock time when the trace began.
*
*
* .google.protobuf.Timestamp start_time = 4;
*/
com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder();
/**
*
* Wallclock time when the trace ended.
*
*
* .google.protobuf.Timestamp end_time = 3;
* @return Whether the endTime field is set.
*/
boolean hasEndTime();
/**
*
* Wallclock time when the trace ended.
*
*
* .google.protobuf.Timestamp end_time = 3;
* @return The endTime.
*/
com.google.protobuf.Timestamp getEndTime();
/**
*
* Wallclock time when the trace ended.
*
*
* .google.protobuf.Timestamp end_time = 3;
*/
com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder();
/**
*
* High precision duration of the trace; may not equal end_time-start_time
* (eg, if your machine's clock changed during the trace).
*
*
* uint64 duration_ns = 11;
* @return The durationNs.
*/
long getDurationNs();
/**
*
* A tree containing information about all resolvers run directly by this
* service, including errors.
*
*
* .mdg.engine.proto.Trace.Node root = 14;
* @return Whether the root field is set.
*/
boolean hasRoot();
/**
*
* A tree containing information about all resolvers run directly by this
* service, including errors.
*
*
* .mdg.engine.proto.Trace.Node root = 14;
* @return The root.
*/
mdg.engine.proto.Reports.Trace.Node getRoot();
/**
*
* A tree containing information about all resolvers run directly by this
* service, including errors.
*
*
* .mdg.engine.proto.Trace.Node root = 14;
*/
mdg.engine.proto.Reports.Trace.NodeOrBuilder getRootOrBuilder();
/**
*
* 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 signature.
*/
java.lang.String getSignature();
/**
*
* 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.
*
*
* string client_name = 7;
* @return The clientName.
*/
java.lang.String getClientName();
/**
*
* 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).
*
*
* .mdg.engine.proto.Trace.QueryPlanNode query_plan = 26;
* @return The queryPlan.
*/
mdg.engine.proto.Reports.Trace.QueryPlanNode getQueryPlan();
/**
*
* 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;
*/
mdg.engine.proto.Reports.Trace.QueryPlanNodeOrBuilder getQueryPlanOrBuilder();
/**
*
* 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.
*/
boolean getFullQueryCacheHit();
/**
*
* Was this query specified successfully as a persisted query hash?
*
*
* bool persisted_query_hit = 21;
* @return The persistedQueryHit.
*/
boolean getPersistedQueryHit();
/**
*
* 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.
*/
boolean getPersistedQueryRegister();
/**
*
* Was this operation registered and a part of the safelist?
*
*
* bool registered_operation = 24;
* @return The registeredOperation.
*/
boolean getRegisteredOperation();
/**
*
* Was this operation forbidden due to lack of safelisting?
*
*
* bool forbidden_operation = 25;
* @return The forbiddenOperation.
*/
boolean getForbiddenOperation();
/**
*
* --------------------------------------------------------------
* 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.
*/
boolean hasOriginReportedStartTime();
/**
*
* --------------------------------------------------------------
* Fields below this line are only set by the old Go engineproxy.
*
*
* .google.protobuf.Timestamp origin_reported_start_time = 15;
* @return The originReportedStartTime.
*/
com.google.protobuf.Timestamp getOriginReportedStartTime();
/**
*
* --------------------------------------------------------------
* Fields below this line are only set by the old Go engineproxy.
*
*
* .google.protobuf.Timestamp origin_reported_start_time = 15;
*/
com.google.protobuf.TimestampOrBuilder getOriginReportedStartTimeOrBuilder();
/**
* .google.protobuf.Timestamp origin_reported_end_time = 16;
* @return Whether the originReportedEndTime field is set.
*/
boolean hasOriginReportedEndTime();
/**
* .google.protobuf.Timestamp origin_reported_end_time = 16;
* @return The originReportedEndTime.
*/
com.google.protobuf.Timestamp getOriginReportedEndTime();
/**
* .google.protobuf.Timestamp origin_reported_end_time = 16;
*/
com.google.protobuf.TimestampOrBuilder getOriginReportedEndTimeOrBuilder();
/**
* uint64 origin_reported_duration_ns = 17;
* @return The originReportedDurationNs.
*/
long getOriginReportedDurationNs();
/**
*
* 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 legacySignatureNeedsResigning.
*/
java.lang.String getLegacySignatureNeedsResigning();
/**
*
* 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.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:mdg.engine.proto.Trace)
TraceOrBuilder {
private static final long serialVersionUID = 0L;
// Use Trace.newBuilder() to construct.
private Trace(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Trace() {
signature_ = "";
clientName_ = "";
clientVersion_ = "";
clientAddress_ = "";
clientReferenceId_ = "";
legacySignatureNeedsResigning_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Trace();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Trace(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 26: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (endTime_ != null) {
subBuilder = endTime_.toBuilder();
}
endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(endTime_);
endTime_ = subBuilder.buildPartial();
}
break;
}
case 34: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (startTime_ != null) {
subBuilder = startTime_.toBuilder();
}
startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(startTime_);
startTime_ = subBuilder.buildPartial();
}
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
legacySignatureNeedsResigning_ = s;
break;
}
case 50: {
mdg.engine.proto.Reports.Trace.Details.Builder subBuilder = null;
if (details_ != null) {
subBuilder = details_.toBuilder();
}
details_ = input.readMessage(mdg.engine.proto.Reports.Trace.Details.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(details_);
details_ = subBuilder.buildPartial();
}
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
clientName_ = s;
break;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
clientVersion_ = s;
break;
}
case 74: {
java.lang.String s = input.readStringRequireUtf8();
clientAddress_ = s;
break;
}
case 82: {
mdg.engine.proto.Reports.Trace.HTTP.Builder subBuilder = null;
if (http_ != null) {
subBuilder = http_.toBuilder();
}
http_ = input.readMessage(mdg.engine.proto.Reports.Trace.HTTP.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(http_);
http_ = subBuilder.buildPartial();
}
break;
}
case 88: {
durationNs_ = input.readUInt64();
break;
}
case 114: {
mdg.engine.proto.Reports.Trace.Node.Builder subBuilder = null;
if (root_ != null) {
subBuilder = root_.toBuilder();
}
root_ = input.readMessage(mdg.engine.proto.Reports.Trace.Node.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(root_);
root_ = subBuilder.buildPartial();
}
break;
}
case 122: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (originReportedStartTime_ != null) {
subBuilder = originReportedStartTime_.toBuilder();
}
originReportedStartTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(originReportedStartTime_);
originReportedStartTime_ = subBuilder.buildPartial();
}
break;
}
case 130: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (originReportedEndTime_ != null) {
subBuilder = originReportedEndTime_.toBuilder();
}
originReportedEndTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(originReportedEndTime_);
originReportedEndTime_ = subBuilder.buildPartial();
}
break;
}
case 136: {
originReportedDurationNs_ = input.readUInt64();
break;
}
case 146: {
mdg.engine.proto.Reports.Trace.CachePolicy.Builder subBuilder = null;
if (cachePolicy_ != null) {
subBuilder = cachePolicy_.toBuilder();
}
cachePolicy_ = input.readMessage(mdg.engine.proto.Reports.Trace.CachePolicy.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(cachePolicy_);
cachePolicy_ = subBuilder.buildPartial();
}
break;
}
case 154: {
java.lang.String s = input.readStringRequireUtf8();
signature_ = s;
break;
}
case 160: {
fullQueryCacheHit_ = input.readBool();
break;
}
case 168: {
persistedQueryHit_ = input.readBool();
break;
}
case 176: {
persistedQueryRegister_ = input.readBool();
break;
}
case 186: {
java.lang.String s = input.readStringRequireUtf8();
clientReferenceId_ = s;
break;
}
case 192: {
registeredOperation_ = input.readBool();
break;
}
case 200: {
forbiddenOperation_ = input.readBool();
break;
}
case 210: {
mdg.engine.proto.Reports.Trace.QueryPlanNode.Builder subBuilder = null;
if (queryPlan_ != null) {
subBuilder = queryPlan_.toBuilder();
}
queryPlan_ = input.readMessage(mdg.engine.proto.Reports.Trace.QueryPlanNode.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(queryPlan_);
queryPlan_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:mdg.engine.proto.Trace.CachePolicy)
CachePolicyOrBuilder {
private static final long serialVersionUID = 0L;
// Use CachePolicy.newBuilder() to construct.
private CachePolicy(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CachePolicy() {
scope_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CachePolicy();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CachePolicy(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
scope_ = rawValue;
break;
}
case 16: {
maxAgeNs_ = input.readInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_CachePolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.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),
;
/**
* 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_;
/**
* .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() {
@SuppressWarnings("deprecation")
mdg.engine.proto.Reports.Trace.CachePolicy.Scope result = mdg.engine.proto.Reports.Trace.CachePolicy.Scope.valueOf(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_;
/**
*
* 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_);
}
unknownFields.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 += unknownFields.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 (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.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.GeneratedMessageV3
.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.GeneratedMessageV3
.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.GeneratedMessageV3
.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.GeneratedMessageV3
.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.GeneratedMessageV3
.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.GeneratedMessageV3
.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
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);
result.scope_ = scope_;
result.maxAgeNs_ = maxAgeNs_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof 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.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
mdg.engine.proto.Reports.Trace.CachePolicy parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (mdg.engine.proto.Reports.Trace.CachePolicy) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
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;
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() {
@SuppressWarnings("deprecation")
mdg.engine.proto.Reports.Trace.CachePolicy.Scope result = mdg.engine.proto.Reports.Trace.CachePolicy.Scope.valueOf(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();
}
scope_ = value.getNumber();
onChanged();
return this;
}
/**
* .mdg.engine.proto.Trace.CachePolicy.Scope scope = 1;
* @return This builder for chaining.
*/
public Builder clearScope() {
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;
onChanged();
return this;
}
/**
*
* use 0 for absent, -1 for 0
*
*
* int64 max_age_ns = 2;
* @return This builder for chaining.
*/
public Builder clearMaxAgeNs() {
maxAgeNs_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:mdg.engine.proto.Trace.CachePolicy)
}
// @@protoc_insertion_point(class_scope:mdg.engine.proto.Trace.CachePolicy)
private static final mdg.engine.proto.Reports.Trace.CachePolicy DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new mdg.engine.proto.Reports.Trace.CachePolicy();
}
public static mdg.engine.proto.Reports.Trace.CachePolicy getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CachePolicy parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CachePolicy(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.CachePolicy getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DetailsOrBuilder extends
// @@protoc_insertion_point(interface_extends:mdg.engine.proto.Trace.Details)
com.google.protobuf.MessageOrBuilder {
/**
*
* 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;
*/
int getVariablesJsonCount();
/**
*
* 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;
*/
boolean containsVariablesJson(
java.lang.String key);
/**
* Use {@link #getVariablesJsonMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getVariablesJson();
/**
*
* 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.util.Map
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.
*
*
* map<string, string> variables_json = 4;
*/
/* nullable */
java.lang.String getVariablesJsonOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue);
/**
*
* 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.String getVariablesJsonOrThrow(
java.lang.String key);
/**
*
* 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;
*/
int getVariablesCount();
/**
*
* 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;
*/
boolean containsVariables(
java.lang.String key);
/**
* Use {@link #getVariablesMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getVariables();
/**
*
* 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.util.Map
getVariablesMap();
/**
*
* 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;
*/
/* nullable */
com.google.protobuf.ByteString getVariablesOrDefault(
java.lang.String key,
/* nullable */
com.google.protobuf.ByteString defaultValue);
/**
*
* 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;
*/
com.google.protobuf.ByteString getVariablesOrThrow(
java.lang.String key);
/**
*
* 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 rawQuery.
*/
java.lang.String getRawQuery();
/**
*
* 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.
*
*
* string operation_name = 3;
* @return The operationName.
*/
java.lang.String getOperationName();
/**
*
* 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.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:mdg.engine.proto.Trace.Details)
DetailsOrBuilder {
private static final long serialVersionUID = 0L;
// Use Details.newBuilder() to construct.
private Details(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Details() {
rawQuery_ = "";
operationName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Details();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Details(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
variables_ = com.google.protobuf.MapField.newMapField(
VariablesDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000002;
}
com.google.protobuf.MapEntry
variables__ = input.readMessage(
VariablesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
variables_.getMutableMap().put(
variables__.getKey(), variables__.getValue());
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
rawQuery_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
operationName_ = s;
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
variablesJson_ = com.google.protobuf.MapField.newMapField(
VariablesJsonDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
variablesJson__ = input.readMessage(
VariablesJsonDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
variablesJson_.getMutableMap().put(
variablesJson__.getKey(), variablesJson__.getValue());
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_Details_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
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.GeneratedMessageV3.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,
"");
}
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.
*
*
* map<string, string> variables_json = 4;
*/
@java.lang.Override
public java.util.Map getVariablesJsonMap() {
return internalGetVariablesJson().getMap();
}
/**
*
* 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 getVariablesJsonOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetVariablesJson().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* 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);
}
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.
*
*
* map<string, bytes> variables = 1;
*/
@java.lang.Override
public java.util.Map getVariablesMap() {
return internalGetVariables().getMap();
}
/**
*
* 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 getVariablesOrDefault(
java.lang.String key,
com.google.protobuf.ByteString defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetVariables().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* 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;
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.)
*
*
* string raw_query = 2;
* @return The rawQuery.
*/
@java.lang.Override
public java.lang.String getRawQuery() {
java.lang.Object ref = rawQuery_;
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();
rawQuery_ = s;
return s;
}
}
/**
*
* 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;
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.
*
*
* string operation_name = 3;
* @return The operationName.
*/
@java.lang.Override
public java.lang.String getOperationName() {
java.lang.Object ref = operationName_;
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();
operationName_ = s;
return s;
}
}
/**
*
* 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.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetVariables(),
VariablesDefaultEntryHolder.defaultEntry,
1);
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rawQuery_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, rawQuery_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, operationName_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetVariablesJson(),
VariablesJsonDefaultEntryHolder.defaultEntry,
4);
unknownFields.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.GeneratedMessageV3.isStringEmpty(rawQuery_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, rawQuery_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operationName_)) {
size += com.google.protobuf.GeneratedMessageV3.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 += unknownFields.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 (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.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.GeneratedMessageV3
.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.GeneratedMessageV3
.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.GeneratedMessageV3
.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.GeneratedMessageV3
.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.GeneratedMessageV3
.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.GeneratedMessageV3
.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.GeneratedMessageV3.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.GeneratedMessageV3.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.MapField internalGetMapField(
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.MapField internalGetMutableMapField(
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.GeneratedMessageV3.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() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
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);
int from_bitField0_ = bitField0_;
result.variablesJson_ = internalGetVariablesJson();
result.variablesJson_.makeImmutable();
result.variables_ = internalGetVariables();
result.variables_.makeImmutable();
result.rawQuery_ = rawQuery_;
result.operationName_ = operationName_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof 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());
internalGetMutableVariables().mergeFrom(
other.internalGetVariables());
if (!other.getRawQuery().isEmpty()) {
rawQuery_ = other.rawQuery_;
onChanged();
}
if (!other.getOperationName().isEmpty()) {
operationName_ = other.operationName_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
mdg.engine.proto.Reports.Trace.Details parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (mdg.engine.proto.Reports.Trace.Details) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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() {
onChanged();;
if (variablesJson_ == null) {
variablesJson_ = com.google.protobuf.MapField.newMapField(
VariablesJsonDefaultEntryHolder.defaultEntry);
}
if (!variablesJson_.isMutable()) {
variablesJson_ = variablesJson_.copy();
}
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.
*
*
* map<string, string> variables_json = 4;
*/
@java.lang.Override
public java.util.Map getVariablesJsonMap() {
return internalGetVariablesJson().getMap();
}
/**
*
* 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 getVariablesJsonOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetVariablesJson().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* 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() {
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() {
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);
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 putAllVariablesJson(
java.util.Map values) {
internalGetMutableVariablesJson().getMutableMap()
.putAll(values);
return this;
}
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_;
}
private com.google.protobuf.MapField
internalGetMutableVariables() {
onChanged();;
if (variables_ == null) {
variables_ = com.google.protobuf.MapField.newMapField(
VariablesDefaultEntryHolder.defaultEntry);
}
if (!variables_.isMutable()) {
variables_ = variables_.copy();
}
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.
*
*
* map<string, bytes> variables = 1;
*/
@java.lang.Override
public java.util.Map getVariablesMap() {
return internalGetVariables().getMap();
}
/**
*
* 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 getVariablesOrDefault(
java.lang.String key,
com.google.protobuf.ByteString defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetVariables().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* 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 Builder clearVariables() {
internalGetMutableVariables().getMutableMap()
.clear();
return this;
}
/**
*
* 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;
*/
public Builder removeVariables(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableVariables().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableVariables() {
return internalGetMutableVariables().getMutableMap();
}
/**
*
* 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;
*/
public Builder putVariables(
java.lang.String key,
com.google.protobuf.ByteString value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableVariables().getMutableMap()
.put(key, value);
return this;
}
/**
*
* 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;
*/
public Builder putAllVariables(
java.util.Map values) {
internalGetMutableVariables().getMutableMap()
.putAll(values);
return this;
}
private 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.)
*
*
* string raw_query = 2;
* @return The rawQuery.
*/
public java.lang.String getRawQuery() {
java.lang.Object ref = rawQuery_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
rawQuery_ = s;
return s;
} else {
return (java.lang.String) 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;
* @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;
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.)
*
*
* string raw_query = 2;
* @return This builder for chaining.
*/
public Builder clearRawQuery() {
rawQuery_ = getDefaultInstance().getRawQuery();
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.)
*
*
* 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;
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.
*
*
* string operation_name = 3;
* @return The operationName.
*/
public java.lang.String getOperationName() {
java.lang.Object ref = operationName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
operationName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* 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.
*/
public com.google.protobuf.ByteString
getOperationNameBytes() {
java.lang.Object ref = operationName_;
if (ref instanceof 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;
}
}
/**
*
* 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;
* @param value The operationName to set.
* @return This builder for chaining.
*/
public Builder setOperationName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
operationName_ = value;
onChanged();
return this;
}
/**
*
* 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 This builder for chaining.
*/
public Builder clearOperationName() {
operationName_ = getDefaultInstance().getOperationName();
onChanged();
return this;
}
/**
*
* 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;
* @param value The bytes for operationName to set.
* @return This builder for chaining.
*/
public Builder setOperationNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
operationName_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:mdg.engine.proto.Trace.Details)
}
// @@protoc_insertion_point(class_scope:mdg.engine.proto.Trace.Details)
private static final mdg.engine.proto.Reports.Trace.Details DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new mdg.engine.proto.Reports.Trace.Details();
}
public static mdg.engine.proto.Reports.Trace.Details getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Details parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Details(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.Details getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ErrorOrBuilder extends
// @@protoc_insertion_point(interface_extends:mdg.engine.proto.Trace.Error)
com.google.protobuf.MessageOrBuilder {
/**
*
* required
*
*
* string message = 1;
* @return The message.
*/
java.lang.String getMessage();
/**
*
* required
*
*
* string message = 1;
* @return The bytes for message.
*/
com.google.protobuf.ByteString
getMessageBytes();
/**
* repeated .mdg.engine.proto.Trace.Location location = 2;
*/
java.util.List
getLocationList();
/**
* repeated .mdg.engine.proto.Trace.Location location = 2;
*/
mdg.engine.proto.Reports.Trace.Location getLocation(int index);
/**
* repeated .mdg.engine.proto.Trace.Location location = 2;
*/
int getLocationCount();
/**
* repeated .mdg.engine.proto.Trace.Location location = 2;
*/
java.util.List extends mdg.engine.proto.Reports.Trace.LocationOrBuilder>
getLocationOrBuilderList();
/**
* repeated .mdg.engine.proto.Trace.Location location = 2;
*/
mdg.engine.proto.Reports.Trace.LocationOrBuilder getLocationOrBuilder(
int index);
/**
* uint64 time_ns = 3;
* @return The timeNs.
*/
long getTimeNs();
/**
* string json = 4;
* @return The json.
*/
java.lang.String getJson();
/**
* string json = 4;
* @return The bytes for json.
*/
com.google.protobuf.ByteString
getJsonBytes();
}
/**
* Protobuf type {@code mdg.engine.proto.Trace.Error}
*/
public static final class Error extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:mdg.engine.proto.Trace.Error)
ErrorOrBuilder {
private static final long serialVersionUID = 0L;
// Use Error.newBuilder() to construct.
private Error(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Error() {
message_ = "";
location_ = java.util.Collections.emptyList();
json_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Error();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Error(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
message_ = s;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
location_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
location_.add(
input.readMessage(mdg.engine.proto.Reports.Trace.Location.parser(), extensionRegistry));
break;
}
case 24: {
timeNs_ = input.readUInt64();
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
json_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
location_ = java.util.Collections.unmodifiableList(location_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_Error_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_Error_fieldAccessorTable
.ensureFieldAccessorsInitialized(
mdg.engine.proto.Reports.Trace.Error.class, mdg.engine.proto.Reports.Trace.Error.Builder.class);
}
public static final int MESSAGE_FIELD_NUMBER = 1;
private volatile java.lang.Object message_;
/**
*
* required
*
*
* string message = 1;
* @return The message.
*/
@java.lang.Override
public java.lang.String getMessage() {
java.lang.Object ref = message_;
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();
message_ = s;
return s;
}
}
/**
*
* required
*
*
* string message = 1;
* @return The bytes for message.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCATION_FIELD_NUMBER = 2;
private java.util.List location_;
/**
* repeated .mdg.engine.proto.Trace.Location location = 2;
*/
@java.lang.Override
public java.util.List getLocationList() {
return location_;
}
/**
* repeated .mdg.engine.proto.Trace.Location location = 2;
*/
@java.lang.Override
public java.util.List extends mdg.engine.proto.Reports.Trace.LocationOrBuilder>
getLocationOrBuilderList() {
return location_;
}
/**
* repeated .mdg.engine.proto.Trace.Location location = 2;
*/
@java.lang.Override
public int getLocationCount() {
return location_.size();
}
/**
* repeated .mdg.engine.proto.Trace.Location location = 2;
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.Location getLocation(int index) {
return location_.get(index);
}
/**
* repeated .mdg.engine.proto.Trace.Location location = 2;
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.LocationOrBuilder getLocationOrBuilder(
int index) {
return location_.get(index);
}
public static final int TIME_NS_FIELD_NUMBER = 3;
private long timeNs_;
/**
* uint64 time_ns = 3;
* @return The timeNs.
*/
@java.lang.Override
public long getTimeNs() {
return timeNs_;
}
public static final int JSON_FIELD_NUMBER = 4;
private volatile java.lang.Object json_;
/**
* string json = 4;
* @return The json.
*/
@java.lang.Override
public java.lang.String getJson() {
java.lang.Object ref = json_;
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();
json_ = s;
return s;
}
}
/**
* string json = 4;
* @return The bytes for json.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getJsonBytes() {
java.lang.Object ref = json_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
json_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_);
}
for (int i = 0; i < location_.size(); i++) {
output.writeMessage(2, location_.get(i));
}
if (timeNs_ != 0L) {
output.writeUInt64(3, timeNs_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(json_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, json_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_);
}
for (int i = 0; i < location_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, location_.get(i));
}
if (timeNs_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, timeNs_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(json_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, json_);
}
size += unknownFields.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.Error)) {
return super.equals(obj);
}
mdg.engine.proto.Reports.Trace.Error other = (mdg.engine.proto.Reports.Trace.Error) obj;
if (!getMessage()
.equals(other.getMessage())) return false;
if (!getLocationList()
.equals(other.getLocationList())) return false;
if (getTimeNs()
!= other.getTimeNs()) return false;
if (!getJson()
.equals(other.getJson())) return false;
if (!unknownFields.equals(other.unknownFields)) 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) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
if (getLocationCount() > 0) {
hash = (37 * hash) + LOCATION_FIELD_NUMBER;
hash = (53 * hash) + getLocationList().hashCode();
}
hash = (37 * hash) + TIME_NS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTimeNs());
hash = (37 * hash) + JSON_FIELD_NUMBER;
hash = (53 * hash) + getJson().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static mdg.engine.proto.Reports.Trace.Error parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.Trace.Error 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.Error parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.Trace.Error 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.Error parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.Trace.Error 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.Error parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.Trace.Error parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.Error parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.Trace.Error parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.Error parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.Trace.Error parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.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.Error 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.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code mdg.engine.proto.Trace.Error}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:mdg.engine.proto.Trace.Error)
mdg.engine.proto.Reports.Trace.ErrorOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_Error_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_Error_fieldAccessorTable
.ensureFieldAccessorsInitialized(
mdg.engine.proto.Reports.Trace.Error.class, mdg.engine.proto.Reports.Trace.Error.Builder.class);
}
// Construct using mdg.engine.proto.Reports.Trace.Error.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getLocationFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
message_ = "";
if (locationBuilder_ == null) {
location_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
locationBuilder_.clear();
}
timeNs_ = 0L;
json_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_Error_descriptor;
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.Error getDefaultInstanceForType() {
return mdg.engine.proto.Reports.Trace.Error.getDefaultInstance();
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.Error build() {
mdg.engine.proto.Reports.Trace.Error result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.Error buildPartial() {
mdg.engine.proto.Reports.Trace.Error result = new mdg.engine.proto.Reports.Trace.Error(this);
int from_bitField0_ = bitField0_;
result.message_ = message_;
if (locationBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
location_ = java.util.Collections.unmodifiableList(location_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.location_ = location_;
} else {
result.location_ = locationBuilder_.build();
}
result.timeNs_ = timeNs_;
result.json_ = json_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof mdg.engine.proto.Reports.Trace.Error) {
return mergeFrom((mdg.engine.proto.Reports.Trace.Error)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(mdg.engine.proto.Reports.Trace.Error other) {
if (other == mdg.engine.proto.Reports.Trace.Error.getDefaultInstance()) return this;
if (!other.getMessage().isEmpty()) {
message_ = other.message_;
onChanged();
}
if (locationBuilder_ == null) {
if (!other.location_.isEmpty()) {
if (location_.isEmpty()) {
location_ = other.location_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureLocationIsMutable();
location_.addAll(other.location_);
}
onChanged();
}
} else {
if (!other.location_.isEmpty()) {
if (locationBuilder_.isEmpty()) {
locationBuilder_.dispose();
locationBuilder_ = null;
location_ = other.location_;
bitField0_ = (bitField0_ & ~0x00000001);
locationBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getLocationFieldBuilder() : null;
} else {
locationBuilder_.addAllMessages(other.location_);
}
}
}
if (other.getTimeNs() != 0L) {
setTimeNs(other.getTimeNs());
}
if (!other.getJson().isEmpty()) {
json_ = other.json_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
mdg.engine.proto.Reports.Trace.Error parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (mdg.engine.proto.Reports.Trace.Error) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object message_ = "";
/**
*
* required
*
*
* string message = 1;
* @return The message.
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
message_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* required
*
*
* string message = 1;
* @return The bytes for message.
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* required
*
*
* string message = 1;
* @param value The message to set.
* @return This builder for chaining.
*/
public Builder setMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
return this;
}
/**
*
* required
*
*
* string message = 1;
* @return This builder for chaining.
*/
public Builder clearMessage() {
message_ = getDefaultInstance().getMessage();
onChanged();
return this;
}
/**
*
* required
*
*
* string message = 1;
* @param value The bytes for message to set.
* @return This builder for chaining.
*/
public Builder setMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
message_ = value;
onChanged();
return this;
}
private java.util.List location_ =
java.util.Collections.emptyList();
private void ensureLocationIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
location_ = new java.util.ArrayList(location_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
mdg.engine.proto.Reports.Trace.Location, mdg.engine.proto.Reports.Trace.Location.Builder, mdg.engine.proto.Reports.Trace.LocationOrBuilder> locationBuilder_;
/**
* repeated .mdg.engine.proto.Trace.Location location = 2;
*/
public java.util.List getLocationList() {
if (locationBuilder_ == null) {
return java.util.Collections.unmodifiableList(location_);
} else {
return locationBuilder_.getMessageList();
}
}
/**
* repeated .mdg.engine.proto.Trace.Location location = 2;
*/
public int getLocationCount() {
if (locationBuilder_ == null) {
return location_.size();
} else {
return locationBuilder_.getCount();
}
}
/**
* repeated .mdg.engine.proto.Trace.Location location = 2;
*/
public mdg.engine.proto.Reports.Trace.Location getLocation(int index) {
if (locationBuilder_ == null) {
return location_.get(index);
} else {
return locationBuilder_.getMessage(index);
}
}
/**
* repeated .mdg.engine.proto.Trace.Location location = 2;
*/
public Builder setLocation(
int index, mdg.engine.proto.Reports.Trace.Location value) {
if (locationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLocationIsMutable();
location_.set(index, value);
onChanged();
} else {
locationBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.Location location = 2;
*/
public Builder setLocation(
int index, mdg.engine.proto.Reports.Trace.Location.Builder builderForValue) {
if (locationBuilder_ == null) {
ensureLocationIsMutable();
location_.set(index, builderForValue.build());
onChanged();
} else {
locationBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.Location location = 2;
*/
public Builder addLocation(mdg.engine.proto.Reports.Trace.Location value) {
if (locationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLocationIsMutable();
location_.add(value);
onChanged();
} else {
locationBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.Location location = 2;
*/
public Builder addLocation(
int index, mdg.engine.proto.Reports.Trace.Location value) {
if (locationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLocationIsMutable();
location_.add(index, value);
onChanged();
} else {
locationBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.Location location = 2;
*/
public Builder addLocation(
mdg.engine.proto.Reports.Trace.Location.Builder builderForValue) {
if (locationBuilder_ == null) {
ensureLocationIsMutable();
location_.add(builderForValue.build());
onChanged();
} else {
locationBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.Location location = 2;
*/
public Builder addLocation(
int index, mdg.engine.proto.Reports.Trace.Location.Builder builderForValue) {
if (locationBuilder_ == null) {
ensureLocationIsMutable();
location_.add(index, builderForValue.build());
onChanged();
} else {
locationBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.Location location = 2;
*/
public Builder addAllLocation(
java.lang.Iterable extends mdg.engine.proto.Reports.Trace.Location> values) {
if (locationBuilder_ == null) {
ensureLocationIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, location_);
onChanged();
} else {
locationBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.Location location = 2;
*/
public Builder clearLocation() {
if (locationBuilder_ == null) {
location_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
locationBuilder_.clear();
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.Location location = 2;
*/
public Builder removeLocation(int index) {
if (locationBuilder_ == null) {
ensureLocationIsMutable();
location_.remove(index);
onChanged();
} else {
locationBuilder_.remove(index);
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.Location location = 2;
*/
public mdg.engine.proto.Reports.Trace.Location.Builder getLocationBuilder(
int index) {
return getLocationFieldBuilder().getBuilder(index);
}
/**
* repeated .mdg.engine.proto.Trace.Location location = 2;
*/
public mdg.engine.proto.Reports.Trace.LocationOrBuilder getLocationOrBuilder(
int index) {
if (locationBuilder_ == null) {
return location_.get(index); } else {
return locationBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .mdg.engine.proto.Trace.Location location = 2;
*/
public java.util.List extends mdg.engine.proto.Reports.Trace.LocationOrBuilder>
getLocationOrBuilderList() {
if (locationBuilder_ != null) {
return locationBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(location_);
}
}
/**
* repeated .mdg.engine.proto.Trace.Location location = 2;
*/
public mdg.engine.proto.Reports.Trace.Location.Builder addLocationBuilder() {
return getLocationFieldBuilder().addBuilder(
mdg.engine.proto.Reports.Trace.Location.getDefaultInstance());
}
/**
* repeated .mdg.engine.proto.Trace.Location location = 2;
*/
public mdg.engine.proto.Reports.Trace.Location.Builder addLocationBuilder(
int index) {
return getLocationFieldBuilder().addBuilder(
index, mdg.engine.proto.Reports.Trace.Location.getDefaultInstance());
}
/**
* repeated .mdg.engine.proto.Trace.Location location = 2;
*/
public java.util.List
getLocationBuilderList() {
return getLocationFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
mdg.engine.proto.Reports.Trace.Location, mdg.engine.proto.Reports.Trace.Location.Builder, mdg.engine.proto.Reports.Trace.LocationOrBuilder>
getLocationFieldBuilder() {
if (locationBuilder_ == null) {
locationBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
mdg.engine.proto.Reports.Trace.Location, mdg.engine.proto.Reports.Trace.Location.Builder, mdg.engine.proto.Reports.Trace.LocationOrBuilder>(
location_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
location_ = null;
}
return locationBuilder_;
}
private long timeNs_ ;
/**
* uint64 time_ns = 3;
* @return The timeNs.
*/
@java.lang.Override
public long getTimeNs() {
return timeNs_;
}
/**
* uint64 time_ns = 3;
* @param value The timeNs to set.
* @return This builder for chaining.
*/
public Builder setTimeNs(long value) {
timeNs_ = value;
onChanged();
return this;
}
/**
* uint64 time_ns = 3;
* @return This builder for chaining.
*/
public Builder clearTimeNs() {
timeNs_ = 0L;
onChanged();
return this;
}
private java.lang.Object json_ = "";
/**
* string json = 4;
* @return The json.
*/
public java.lang.String getJson() {
java.lang.Object ref = json_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
json_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string json = 4;
* @return The bytes for json.
*/
public com.google.protobuf.ByteString
getJsonBytes() {
java.lang.Object ref = json_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
json_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string json = 4;
* @param value The json to set.
* @return This builder for chaining.
*/
public Builder setJson(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
json_ = value;
onChanged();
return this;
}
/**
* string json = 4;
* @return This builder for chaining.
*/
public Builder clearJson() {
json_ = getDefaultInstance().getJson();
onChanged();
return this;
}
/**
* string json = 4;
* @param value The bytes for json to set.
* @return This builder for chaining.
*/
public Builder setJsonBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
json_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:mdg.engine.proto.Trace.Error)
}
// @@protoc_insertion_point(class_scope:mdg.engine.proto.Trace.Error)
private static final mdg.engine.proto.Reports.Trace.Error DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new mdg.engine.proto.Reports.Trace.Error();
}
public static mdg.engine.proto.Reports.Trace.Error getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Error parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Error(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.Error getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface HTTPOrBuilder extends
// @@protoc_insertion_point(interface_extends:mdg.engine.proto.Trace.HTTP)
com.google.protobuf.MessageOrBuilder {
/**
* .mdg.engine.proto.Trace.HTTP.Method method = 1;
* @return The enum numeric value on the wire for method.
*/
int getMethodValue();
/**
* .mdg.engine.proto.Trace.HTTP.Method method = 1;
* @return The method.
*/
mdg.engine.proto.Reports.Trace.HTTP.Method getMethod();
/**
* string host = 2;
* @return The host.
*/
java.lang.String getHost();
/**
* string host = 2;
* @return The bytes for host.
*/
com.google.protobuf.ByteString
getHostBytes();
/**
* string path = 3;
* @return The path.
*/
java.lang.String getPath();
/**
* string path = 3;
* @return The bytes for path.
*/
com.google.protobuf.ByteString
getPathBytes();
/**
*
* Should exclude manual blacklist ("Auth" by default)
*
*
* map<string, .mdg.engine.proto.Trace.HTTP.Values> request_headers = 4;
*/
int getRequestHeadersCount();
/**
*
* Should exclude manual blacklist ("Auth" by default)
*
*
* map<string, .mdg.engine.proto.Trace.HTTP.Values> request_headers = 4;
*/
boolean containsRequestHeaders(
java.lang.String key);
/**
* Use {@link #getRequestHeadersMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getRequestHeaders();
/**
*
* Should exclude manual blacklist ("Auth" by default)
*
*
* map<string, .mdg.engine.proto.Trace.HTTP.Values> request_headers = 4;
*/
java.util.Map
getRequestHeadersMap();
/**
*
* Should exclude manual blacklist ("Auth" by default)
*
*
* map<string, .mdg.engine.proto.Trace.HTTP.Values> request_headers = 4;
*/
/* nullable */
mdg.engine.proto.Reports.Trace.HTTP.Values getRequestHeadersOrDefault(
java.lang.String key,
/* nullable */
mdg.engine.proto.Reports.Trace.HTTP.Values defaultValue);
/**
*
* Should exclude manual blacklist ("Auth" by default)
*
*
* map<string, .mdg.engine.proto.Trace.HTTP.Values> request_headers = 4;
*/
mdg.engine.proto.Reports.Trace.HTTP.Values getRequestHeadersOrThrow(
java.lang.String key);
/**
* map<string, .mdg.engine.proto.Trace.HTTP.Values> response_headers = 5;
*/
int getResponseHeadersCount();
/**
* map<string, .mdg.engine.proto.Trace.HTTP.Values> response_headers = 5;
*/
boolean containsResponseHeaders(
java.lang.String key);
/**
* Use {@link #getResponseHeadersMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getResponseHeaders();
/**
* map<string, .mdg.engine.proto.Trace.HTTP.Values> response_headers = 5;
*/
java.util.Map
getResponseHeadersMap();
/**
* map<string, .mdg.engine.proto.Trace.HTTP.Values> response_headers = 5;
*/
/* nullable */
mdg.engine.proto.Reports.Trace.HTTP.Values getResponseHeadersOrDefault(
java.lang.String key,
/* nullable */
mdg.engine.proto.Reports.Trace.HTTP.Values defaultValue);
/**
* map<string, .mdg.engine.proto.Trace.HTTP.Values> response_headers = 5;
*/
mdg.engine.proto.Reports.Trace.HTTP.Values getResponseHeadersOrThrow(
java.lang.String key);
/**
* uint32 status_code = 6;
* @return The statusCode.
*/
int getStatusCode();
/**
*
* TLS was used
*
*
* bool secure = 8;
* @return The secure.
*/
boolean getSecure();
/**
*
* by convention "HTTP/1.0", "HTTP/1.1", "HTTP/2" or "h2"
*
*
* string protocol = 9;
* @return The protocol.
*/
java.lang.String getProtocol();
/**
*
* by convention "HTTP/1.0", "HTTP/1.1", "HTTP/2" or "h2"
*
*
* string protocol = 9;
* @return The bytes for protocol.
*/
com.google.protobuf.ByteString
getProtocolBytes();
}
/**
* Protobuf type {@code mdg.engine.proto.Trace.HTTP}
*/
public static final class HTTP extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:mdg.engine.proto.Trace.HTTP)
HTTPOrBuilder {
private static final long serialVersionUID = 0L;
// Use HTTP.newBuilder() to construct.
private HTTP(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private HTTP() {
method_ = 0;
host_ = "";
path_ = "";
protocol_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new HTTP();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private HTTP(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
method_ = rawValue;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
host_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
path_ = s;
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
requestHeaders_ = com.google.protobuf.MapField.newMapField(
RequestHeadersDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
requestHeaders__ = input.readMessage(
RequestHeadersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
requestHeaders_.getMutableMap().put(
requestHeaders__.getKey(), requestHeaders__.getValue());
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
responseHeaders_ = com.google.protobuf.MapField.newMapField(
ResponseHeadersDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000002;
}
com.google.protobuf.MapEntry
responseHeaders__ = input.readMessage(
ResponseHeadersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
responseHeaders_.getMutableMap().put(
responseHeaders__.getKey(), responseHeaders__.getValue());
break;
}
case 48: {
statusCode_ = input.readUInt32();
break;
}
case 64: {
secure_ = input.readBool();
break;
}
case 74: {
java.lang.String s = input.readStringRequireUtf8();
protocol_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_HTTP_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 4:
return internalGetRequestHeaders();
case 5:
return internalGetResponseHeaders();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_HTTP_fieldAccessorTable
.ensureFieldAccessorsInitialized(
mdg.engine.proto.Reports.Trace.HTTP.class, mdg.engine.proto.Reports.Trace.HTTP.Builder.class);
}
/**
* Protobuf enum {@code mdg.engine.proto.Trace.HTTP.Method}
*/
public enum Method
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UNKNOWN = 0;
*/
UNKNOWN(0),
/**
* OPTIONS = 1;
*/
OPTIONS(1),
/**
* GET = 2;
*/
GET(2),
/**
* HEAD = 3;
*/
HEAD(3),
/**
* POST = 4;
*/
POST(4),
/**
* PUT = 5;
*/
PUT(5),
/**
* DELETE = 6;
*/
DELETE(6),
/**
* TRACE = 7;
*/
TRACE(7),
/**
* CONNECT = 8;
*/
CONNECT(8),
/**
* PATCH = 9;
*/
PATCH(9),
UNRECOGNIZED(-1),
;
/**
* UNKNOWN = 0;
*/
public static final int UNKNOWN_VALUE = 0;
/**
* OPTIONS = 1;
*/
public static final int OPTIONS_VALUE = 1;
/**
* GET = 2;
*/
public static final int GET_VALUE = 2;
/**
* HEAD = 3;
*/
public static final int HEAD_VALUE = 3;
/**
* POST = 4;
*/
public static final int POST_VALUE = 4;
/**
* PUT = 5;
*/
public static final int PUT_VALUE = 5;
/**
* DELETE = 6;
*/
public static final int DELETE_VALUE = 6;
/**
* TRACE = 7;
*/
public static final int TRACE_VALUE = 7;
/**
* CONNECT = 8;
*/
public static final int CONNECT_VALUE = 8;
/**
* PATCH = 9;
*/
public static final int PATCH_VALUE = 9;
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 Method 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 Method forNumber(int value) {
switch (value) {
case 0: return UNKNOWN;
case 1: return OPTIONS;
case 2: return GET;
case 3: return HEAD;
case 4: return POST;
case 5: return PUT;
case 6: return DELETE;
case 7: return TRACE;
case 8: return CONNECT;
case 9: return PATCH;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Method> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Method findValueByNumber(int number) {
return Method.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.HTTP.getDescriptor().getEnumTypes().get(0);
}
private static final Method[] VALUES = values();
public static Method 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 Method(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:mdg.engine.proto.Trace.HTTP.Method)
}
public interface ValuesOrBuilder extends
// @@protoc_insertion_point(interface_extends:mdg.engine.proto.Trace.HTTP.Values)
com.google.protobuf.MessageOrBuilder {
/**
* repeated string value = 1;
* @return A list containing the value.
*/
java.util.List
getValueList();
/**
* repeated string value = 1;
* @return The count of value.
*/
int getValueCount();
/**
* repeated string value = 1;
* @param index The index of the element to return.
* @return The value at the given index.
*/
java.lang.String getValue(int index);
/**
* repeated string value = 1;
* @param index The index of the value to return.
* @return The bytes of the value at the given index.
*/
com.google.protobuf.ByteString
getValueBytes(int index);
}
/**
* Protobuf type {@code mdg.engine.proto.Trace.HTTP.Values}
*/
public static final class Values extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:mdg.engine.proto.Trace.HTTP.Values)
ValuesOrBuilder {
private static final long serialVersionUID = 0L;
// Use Values.newBuilder() to construct.
private Values(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Values() {
value_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Values();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Values(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
value_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
value_.add(s);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
value_ = value_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_HTTP_Values_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_HTTP_Values_fieldAccessorTable
.ensureFieldAccessorsInitialized(
mdg.engine.proto.Reports.Trace.HTTP.Values.class, mdg.engine.proto.Reports.Trace.HTTP.Values.Builder.class);
}
public static final int VALUE_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList value_;
/**
* repeated string value = 1;
* @return A list containing the value.
*/
public com.google.protobuf.ProtocolStringList
getValueList() {
return value_;
}
/**
* repeated string value = 1;
* @return The count of value.
*/
public int getValueCount() {
return value_.size();
}
/**
* repeated string value = 1;
* @param index The index of the element to return.
* @return The value at the given index.
*/
public java.lang.String getValue(int index) {
return value_.get(index);
}
/**
* repeated string value = 1;
* @param index The index of the value to return.
* @return The bytes of the value at the given index.
*/
public com.google.protobuf.ByteString
getValueBytes(int index) {
return value_.getByteString(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 {
for (int i = 0; i < value_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < value_.size(); i++) {
dataSize += computeStringSizeNoTag(value_.getRaw(i));
}
size += dataSize;
size += 1 * getValueList().size();
}
size += unknownFields.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.HTTP.Values)) {
return super.equals(obj);
}
mdg.engine.proto.Reports.Trace.HTTP.Values other = (mdg.engine.proto.Reports.Trace.HTTP.Values) obj;
if (!getValueList()
.equals(other.getValueList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getValueCount() > 0) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValueList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static mdg.engine.proto.Reports.Trace.HTTP.Values parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.Trace.HTTP.Values 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.HTTP.Values parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.Trace.HTTP.Values 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.HTTP.Values parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.Trace.HTTP.Values 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.HTTP.Values parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.Trace.HTTP.Values parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.HTTP.Values parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.Trace.HTTP.Values parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.HTTP.Values parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.Trace.HTTP.Values parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.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.HTTP.Values 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.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code mdg.engine.proto.Trace.HTTP.Values}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:mdg.engine.proto.Trace.HTTP.Values)
mdg.engine.proto.Reports.Trace.HTTP.ValuesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_HTTP_Values_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_HTTP_Values_fieldAccessorTable
.ensureFieldAccessorsInitialized(
mdg.engine.proto.Reports.Trace.HTTP.Values.class, mdg.engine.proto.Reports.Trace.HTTP.Values.Builder.class);
}
// Construct using mdg.engine.proto.Reports.Trace.HTTP.Values.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
value_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_HTTP_Values_descriptor;
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.HTTP.Values getDefaultInstanceForType() {
return mdg.engine.proto.Reports.Trace.HTTP.Values.getDefaultInstance();
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.HTTP.Values build() {
mdg.engine.proto.Reports.Trace.HTTP.Values result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.HTTP.Values buildPartial() {
mdg.engine.proto.Reports.Trace.HTTP.Values result = new mdg.engine.proto.Reports.Trace.HTTP.Values(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
value_ = value_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.value_ = value_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof mdg.engine.proto.Reports.Trace.HTTP.Values) {
return mergeFrom((mdg.engine.proto.Reports.Trace.HTTP.Values)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(mdg.engine.proto.Reports.Trace.HTTP.Values other) {
if (other == mdg.engine.proto.Reports.Trace.HTTP.Values.getDefaultInstance()) return this;
if (!other.value_.isEmpty()) {
if (value_.isEmpty()) {
value_ = other.value_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureValueIsMutable();
value_.addAll(other.value_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
mdg.engine.proto.Reports.Trace.HTTP.Values parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (mdg.engine.proto.Reports.Trace.HTTP.Values) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList value_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureValueIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
value_ = new com.google.protobuf.LazyStringArrayList(value_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string value = 1;
* @return A list containing the value.
*/
public com.google.protobuf.ProtocolStringList
getValueList() {
return value_.getUnmodifiableView();
}
/**
* repeated string value = 1;
* @return The count of value.
*/
public int getValueCount() {
return value_.size();
}
/**
* repeated string value = 1;
* @param index The index of the element to return.
* @return The value at the given index.
*/
public java.lang.String getValue(int index) {
return value_.get(index);
}
/**
* repeated string value = 1;
* @param index The index of the value to return.
* @return The bytes of the value at the given index.
*/
public com.google.protobuf.ByteString
getValueBytes(int index) {
return value_.getByteString(index);
}
/**
* repeated string value = 1;
* @param index The index to set the value at.
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureValueIsMutable();
value_.set(index, value);
onChanged();
return this;
}
/**
* repeated string value = 1;
* @param value The value to add.
* @return This builder for chaining.
*/
public Builder addValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureValueIsMutable();
value_.add(value);
onChanged();
return this;
}
/**
* repeated string value = 1;
* @param values The value to add.
* @return This builder for chaining.
*/
public Builder addAllValue(
java.lang.Iterable values) {
ensureValueIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, value_);
onChanged();
return this;
}
/**
* repeated string value = 1;
* @return This builder for chaining.
*/
public Builder clearValue() {
value_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string value = 1;
* @param value The bytes of the value to add.
* @return This builder for chaining.
*/
public Builder addValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureValueIsMutable();
value_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:mdg.engine.proto.Trace.HTTP.Values)
}
// @@protoc_insertion_point(class_scope:mdg.engine.proto.Trace.HTTP.Values)
private static final mdg.engine.proto.Reports.Trace.HTTP.Values DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new mdg.engine.proto.Reports.Trace.HTTP.Values();
}
public static mdg.engine.proto.Reports.Trace.HTTP.Values getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Values parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Values(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.HTTP.Values getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int METHOD_FIELD_NUMBER = 1;
private int method_;
/**
* .mdg.engine.proto.Trace.HTTP.Method method = 1;
* @return The enum numeric value on the wire for method.
*/
@java.lang.Override public int getMethodValue() {
return method_;
}
/**
* .mdg.engine.proto.Trace.HTTP.Method method = 1;
* @return The method.
*/
@java.lang.Override public mdg.engine.proto.Reports.Trace.HTTP.Method getMethod() {
@SuppressWarnings("deprecation")
mdg.engine.proto.Reports.Trace.HTTP.Method result = mdg.engine.proto.Reports.Trace.HTTP.Method.valueOf(method_);
return result == null ? mdg.engine.proto.Reports.Trace.HTTP.Method.UNRECOGNIZED : result;
}
public static final int HOST_FIELD_NUMBER = 2;
private volatile java.lang.Object host_;
/**
* string host = 2;
* @return The host.
*/
@java.lang.Override
public java.lang.String getHost() {
java.lang.Object ref = host_;
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();
host_ = s;
return s;
}
}
/**
* string host = 2;
* @return The bytes for host.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHostBytes() {
java.lang.Object ref = host_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
host_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PATH_FIELD_NUMBER = 3;
private volatile java.lang.Object path_;
/**
* string path = 3;
* @return The path.
*/
@java.lang.Override
public java.lang.String getPath() {
java.lang.Object ref = path_;
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();
path_ = s;
return s;
}
}
/**
* string path = 3;
* @return The bytes for path.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REQUEST_HEADERS_FIELD_NUMBER = 4;
private static final class RequestHeadersDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, mdg.engine.proto.Reports.Trace.HTTP.Values> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_HTTP_RequestHeadersEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
mdg.engine.proto.Reports.Trace.HTTP.Values.getDefaultInstance());
}
private com.google.protobuf.MapField<
java.lang.String, mdg.engine.proto.Reports.Trace.HTTP.Values> requestHeaders_;
private com.google.protobuf.MapField
internalGetRequestHeaders() {
if (requestHeaders_ == null) {
return com.google.protobuf.MapField.emptyMapField(
RequestHeadersDefaultEntryHolder.defaultEntry);
}
return requestHeaders_;
}
public int getRequestHeadersCount() {
return internalGetRequestHeaders().getMap().size();
}
/**
*
* Should exclude manual blacklist ("Auth" by default)
*
*
* map<string, .mdg.engine.proto.Trace.HTTP.Values> request_headers = 4;
*/
@java.lang.Override
public boolean containsRequestHeaders(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetRequestHeaders().getMap().containsKey(key);
}
/**
* Use {@link #getRequestHeadersMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getRequestHeaders() {
return getRequestHeadersMap();
}
/**
*
* Should exclude manual blacklist ("Auth" by default)
*
*
* map<string, .mdg.engine.proto.Trace.HTTP.Values> request_headers = 4;
*/
@java.lang.Override
public java.util.Map getRequestHeadersMap() {
return internalGetRequestHeaders().getMap();
}
/**
*
* Should exclude manual blacklist ("Auth" by default)
*
*
* map<string, .mdg.engine.proto.Trace.HTTP.Values> request_headers = 4;
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.HTTP.Values getRequestHeadersOrDefault(
java.lang.String key,
mdg.engine.proto.Reports.Trace.HTTP.Values defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetRequestHeaders().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Should exclude manual blacklist ("Auth" by default)
*
*
* map<string, .mdg.engine.proto.Trace.HTTP.Values> request_headers = 4;
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.HTTP.Values getRequestHeadersOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetRequestHeaders().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int RESPONSE_HEADERS_FIELD_NUMBER = 5;
private static final class ResponseHeadersDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, mdg.engine.proto.Reports.Trace.HTTP.Values> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_HTTP_ResponseHeadersEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
mdg.engine.proto.Reports.Trace.HTTP.Values.getDefaultInstance());
}
private com.google.protobuf.MapField<
java.lang.String, mdg.engine.proto.Reports.Trace.HTTP.Values> responseHeaders_;
private com.google.protobuf.MapField
internalGetResponseHeaders() {
if (responseHeaders_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ResponseHeadersDefaultEntryHolder.defaultEntry);
}
return responseHeaders_;
}
public int getResponseHeadersCount() {
return internalGetResponseHeaders().getMap().size();
}
/**
* map<string, .mdg.engine.proto.Trace.HTTP.Values> response_headers = 5;
*/
@java.lang.Override
public boolean containsResponseHeaders(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetResponseHeaders().getMap().containsKey(key);
}
/**
* Use {@link #getResponseHeadersMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getResponseHeaders() {
return getResponseHeadersMap();
}
/**
* map<string, .mdg.engine.proto.Trace.HTTP.Values> response_headers = 5;
*/
@java.lang.Override
public java.util.Map getResponseHeadersMap() {
return internalGetResponseHeaders().getMap();
}
/**
* map<string, .mdg.engine.proto.Trace.HTTP.Values> response_headers = 5;
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.HTTP.Values getResponseHeadersOrDefault(
java.lang.String key,
mdg.engine.proto.Reports.Trace.HTTP.Values defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetResponseHeaders().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .mdg.engine.proto.Trace.HTTP.Values> response_headers = 5;
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.HTTP.Values getResponseHeadersOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetResponseHeaders().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int STATUS_CODE_FIELD_NUMBER = 6;
private int statusCode_;
/**
* uint32 status_code = 6;
* @return The statusCode.
*/
@java.lang.Override
public int getStatusCode() {
return statusCode_;
}
public static final int SECURE_FIELD_NUMBER = 8;
private boolean secure_;
/**
*
* TLS was used
*
*
* bool secure = 8;
* @return The secure.
*/
@java.lang.Override
public boolean getSecure() {
return secure_;
}
public static final int PROTOCOL_FIELD_NUMBER = 9;
private volatile java.lang.Object protocol_;
/**
*
* by convention "HTTP/1.0", "HTTP/1.1", "HTTP/2" or "h2"
*
*
* string protocol = 9;
* @return The protocol.
*/
@java.lang.Override
public java.lang.String getProtocol() {
java.lang.Object ref = protocol_;
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();
protocol_ = s;
return s;
}
}
/**
*
* by convention "HTTP/1.0", "HTTP/1.1", "HTTP/2" or "h2"
*
*
* string protocol = 9;
* @return The bytes for protocol.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getProtocolBytes() {
java.lang.Object ref = protocol_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
protocol_ = 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 (method_ != mdg.engine.proto.Reports.Trace.HTTP.Method.UNKNOWN.getNumber()) {
output.writeEnum(1, method_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, host_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, path_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetRequestHeaders(),
RequestHeadersDefaultEntryHolder.defaultEntry,
4);
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetResponseHeaders(),
ResponseHeadersDefaultEntryHolder.defaultEntry,
5);
if (statusCode_ != 0) {
output.writeUInt32(6, statusCode_);
}
if (secure_ != false) {
output.writeBool(8, secure_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(protocol_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, protocol_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (method_ != mdg.engine.proto.Reports.Trace.HTTP.Method.UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, method_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, host_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, path_);
}
for (java.util.Map.Entry entry
: internalGetRequestHeaders().getMap().entrySet()) {
com.google.protobuf.MapEntry
requestHeaders__ = RequestHeadersDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, requestHeaders__);
}
for (java.util.Map.Entry entry
: internalGetResponseHeaders().getMap().entrySet()) {
com.google.protobuf.MapEntry
responseHeaders__ = ResponseHeadersDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, responseHeaders__);
}
if (statusCode_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(6, statusCode_);
}
if (secure_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, secure_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(protocol_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, protocol_);
}
size += unknownFields.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.HTTP)) {
return super.equals(obj);
}
mdg.engine.proto.Reports.Trace.HTTP other = (mdg.engine.proto.Reports.Trace.HTTP) obj;
if (method_ != other.method_) return false;
if (!getHost()
.equals(other.getHost())) return false;
if (!getPath()
.equals(other.getPath())) return false;
if (!internalGetRequestHeaders().equals(
other.internalGetRequestHeaders())) return false;
if (!internalGetResponseHeaders().equals(
other.internalGetResponseHeaders())) return false;
if (getStatusCode()
!= other.getStatusCode()) return false;
if (getSecure()
!= other.getSecure()) return false;
if (!getProtocol()
.equals(other.getProtocol())) return false;
if (!unknownFields.equals(other.unknownFields)) 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) + METHOD_FIELD_NUMBER;
hash = (53 * hash) + method_;
hash = (37 * hash) + HOST_FIELD_NUMBER;
hash = (53 * hash) + getHost().hashCode();
hash = (37 * hash) + PATH_FIELD_NUMBER;
hash = (53 * hash) + getPath().hashCode();
if (!internalGetRequestHeaders().getMap().isEmpty()) {
hash = (37 * hash) + REQUEST_HEADERS_FIELD_NUMBER;
hash = (53 * hash) + internalGetRequestHeaders().hashCode();
}
if (!internalGetResponseHeaders().getMap().isEmpty()) {
hash = (37 * hash) + RESPONSE_HEADERS_FIELD_NUMBER;
hash = (53 * hash) + internalGetResponseHeaders().hashCode();
}
hash = (37 * hash) + STATUS_CODE_FIELD_NUMBER;
hash = (53 * hash) + getStatusCode();
hash = (37 * hash) + SECURE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getSecure());
hash = (37 * hash) + PROTOCOL_FIELD_NUMBER;
hash = (53 * hash) + getProtocol().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static mdg.engine.proto.Reports.Trace.HTTP parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.Trace.HTTP 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.HTTP parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.Trace.HTTP 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.HTTP parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.Trace.HTTP 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.HTTP parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.Trace.HTTP parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.HTTP parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.Trace.HTTP parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.HTTP parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.Trace.HTTP parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.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.HTTP 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.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code mdg.engine.proto.Trace.HTTP}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:mdg.engine.proto.Trace.HTTP)
mdg.engine.proto.Reports.Trace.HTTPOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_HTTP_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 4:
return internalGetRequestHeaders();
case 5:
return internalGetResponseHeaders();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 4:
return internalGetMutableRequestHeaders();
case 5:
return internalGetMutableResponseHeaders();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_HTTP_fieldAccessorTable
.ensureFieldAccessorsInitialized(
mdg.engine.proto.Reports.Trace.HTTP.class, mdg.engine.proto.Reports.Trace.HTTP.Builder.class);
}
// Construct using mdg.engine.proto.Reports.Trace.HTTP.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
method_ = 0;
host_ = "";
path_ = "";
internalGetMutableRequestHeaders().clear();
internalGetMutableResponseHeaders().clear();
statusCode_ = 0;
secure_ = false;
protocol_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_HTTP_descriptor;
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.HTTP getDefaultInstanceForType() {
return mdg.engine.proto.Reports.Trace.HTTP.getDefaultInstance();
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.HTTP build() {
mdg.engine.proto.Reports.Trace.HTTP result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.HTTP buildPartial() {
mdg.engine.proto.Reports.Trace.HTTP result = new mdg.engine.proto.Reports.Trace.HTTP(this);
int from_bitField0_ = bitField0_;
result.method_ = method_;
result.host_ = host_;
result.path_ = path_;
result.requestHeaders_ = internalGetRequestHeaders();
result.requestHeaders_.makeImmutable();
result.responseHeaders_ = internalGetResponseHeaders();
result.responseHeaders_.makeImmutable();
result.statusCode_ = statusCode_;
result.secure_ = secure_;
result.protocol_ = protocol_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof mdg.engine.proto.Reports.Trace.HTTP) {
return mergeFrom((mdg.engine.proto.Reports.Trace.HTTP)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(mdg.engine.proto.Reports.Trace.HTTP other) {
if (other == mdg.engine.proto.Reports.Trace.HTTP.getDefaultInstance()) return this;
if (other.method_ != 0) {
setMethodValue(other.getMethodValue());
}
if (!other.getHost().isEmpty()) {
host_ = other.host_;
onChanged();
}
if (!other.getPath().isEmpty()) {
path_ = other.path_;
onChanged();
}
internalGetMutableRequestHeaders().mergeFrom(
other.internalGetRequestHeaders());
internalGetMutableResponseHeaders().mergeFrom(
other.internalGetResponseHeaders());
if (other.getStatusCode() != 0) {
setStatusCode(other.getStatusCode());
}
if (other.getSecure() != false) {
setSecure(other.getSecure());
}
if (!other.getProtocol().isEmpty()) {
protocol_ = other.protocol_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
mdg.engine.proto.Reports.Trace.HTTP parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (mdg.engine.proto.Reports.Trace.HTTP) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int method_ = 0;
/**
* .mdg.engine.proto.Trace.HTTP.Method method = 1;
* @return The enum numeric value on the wire for method.
*/
@java.lang.Override public int getMethodValue() {
return method_;
}
/**
* .mdg.engine.proto.Trace.HTTP.Method method = 1;
* @param value The enum numeric value on the wire for method to set.
* @return This builder for chaining.
*/
public Builder setMethodValue(int value) {
method_ = value;
onChanged();
return this;
}
/**
* .mdg.engine.proto.Trace.HTTP.Method method = 1;
* @return The method.
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.HTTP.Method getMethod() {
@SuppressWarnings("deprecation")
mdg.engine.proto.Reports.Trace.HTTP.Method result = mdg.engine.proto.Reports.Trace.HTTP.Method.valueOf(method_);
return result == null ? mdg.engine.proto.Reports.Trace.HTTP.Method.UNRECOGNIZED : result;
}
/**
* .mdg.engine.proto.Trace.HTTP.Method method = 1;
* @param value The method to set.
* @return This builder for chaining.
*/
public Builder setMethod(mdg.engine.proto.Reports.Trace.HTTP.Method value) {
if (value == null) {
throw new NullPointerException();
}
method_ = value.getNumber();
onChanged();
return this;
}
/**
* .mdg.engine.proto.Trace.HTTP.Method method = 1;
* @return This builder for chaining.
*/
public Builder clearMethod() {
method_ = 0;
onChanged();
return this;
}
private java.lang.Object host_ = "";
/**
* string host = 2;
* @return The host.
*/
public java.lang.String getHost() {
java.lang.Object ref = host_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
host_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string host = 2;
* @return The bytes for host.
*/
public com.google.protobuf.ByteString
getHostBytes() {
java.lang.Object ref = host_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
host_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string host = 2;
* @param value The host to set.
* @return This builder for chaining.
*/
public Builder setHost(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
host_ = value;
onChanged();
return this;
}
/**
* string host = 2;
* @return This builder for chaining.
*/
public Builder clearHost() {
host_ = getDefaultInstance().getHost();
onChanged();
return this;
}
/**
* string host = 2;
* @param value The bytes for host to set.
* @return This builder for chaining.
*/
public Builder setHostBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
host_ = value;
onChanged();
return this;
}
private java.lang.Object path_ = "";
/**
* string path = 3;
* @return The path.
*/
public java.lang.String getPath() {
java.lang.Object ref = path_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
path_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string path = 3;
* @return The bytes for path.
*/
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string path = 3;
* @param value The path to set.
* @return This builder for chaining.
*/
public Builder setPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
path_ = value;
onChanged();
return this;
}
/**
* string path = 3;
* @return This builder for chaining.
*/
public Builder clearPath() {
path_ = getDefaultInstance().getPath();
onChanged();
return this;
}
/**
* string path = 3;
* @param value The bytes for path to set.
* @return This builder for chaining.
*/
public Builder setPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
path_ = value;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, mdg.engine.proto.Reports.Trace.HTTP.Values> requestHeaders_;
private com.google.protobuf.MapField
internalGetRequestHeaders() {
if (requestHeaders_ == null) {
return com.google.protobuf.MapField.emptyMapField(
RequestHeadersDefaultEntryHolder.defaultEntry);
}
return requestHeaders_;
}
private com.google.protobuf.MapField
internalGetMutableRequestHeaders() {
onChanged();;
if (requestHeaders_ == null) {
requestHeaders_ = com.google.protobuf.MapField.newMapField(
RequestHeadersDefaultEntryHolder.defaultEntry);
}
if (!requestHeaders_.isMutable()) {
requestHeaders_ = requestHeaders_.copy();
}
return requestHeaders_;
}
public int getRequestHeadersCount() {
return internalGetRequestHeaders().getMap().size();
}
/**
*
* Should exclude manual blacklist ("Auth" by default)
*
*
* map<string, .mdg.engine.proto.Trace.HTTP.Values> request_headers = 4;
*/
@java.lang.Override
public boolean containsRequestHeaders(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetRequestHeaders().getMap().containsKey(key);
}
/**
* Use {@link #getRequestHeadersMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getRequestHeaders() {
return getRequestHeadersMap();
}
/**
*
* Should exclude manual blacklist ("Auth" by default)
*
*
* map<string, .mdg.engine.proto.Trace.HTTP.Values> request_headers = 4;
*/
@java.lang.Override
public java.util.Map getRequestHeadersMap() {
return internalGetRequestHeaders().getMap();
}
/**
*
* Should exclude manual blacklist ("Auth" by default)
*
*
* map<string, .mdg.engine.proto.Trace.HTTP.Values> request_headers = 4;
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.HTTP.Values getRequestHeadersOrDefault(
java.lang.String key,
mdg.engine.proto.Reports.Trace.HTTP.Values defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetRequestHeaders().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Should exclude manual blacklist ("Auth" by default)
*
*
* map<string, .mdg.engine.proto.Trace.HTTP.Values> request_headers = 4;
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.HTTP.Values getRequestHeadersOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetRequestHeaders().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearRequestHeaders() {
internalGetMutableRequestHeaders().getMutableMap()
.clear();
return this;
}
/**
*
* Should exclude manual blacklist ("Auth" by default)
*
*
* map<string, .mdg.engine.proto.Trace.HTTP.Values> request_headers = 4;
*/
public Builder removeRequestHeaders(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableRequestHeaders().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableRequestHeaders() {
return internalGetMutableRequestHeaders().getMutableMap();
}
/**
*
* Should exclude manual blacklist ("Auth" by default)
*
*
* map<string, .mdg.engine.proto.Trace.HTTP.Values> request_headers = 4;
*/
public Builder putRequestHeaders(
java.lang.String key,
mdg.engine.proto.Reports.Trace.HTTP.Values value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableRequestHeaders().getMutableMap()
.put(key, value);
return this;
}
/**
*
* Should exclude manual blacklist ("Auth" by default)
*
*
* map<string, .mdg.engine.proto.Trace.HTTP.Values> request_headers = 4;
*/
public Builder putAllRequestHeaders(
java.util.Map values) {
internalGetMutableRequestHeaders().getMutableMap()
.putAll(values);
return this;
}
private com.google.protobuf.MapField<
java.lang.String, mdg.engine.proto.Reports.Trace.HTTP.Values> responseHeaders_;
private com.google.protobuf.MapField
internalGetResponseHeaders() {
if (responseHeaders_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ResponseHeadersDefaultEntryHolder.defaultEntry);
}
return responseHeaders_;
}
private com.google.protobuf.MapField
internalGetMutableResponseHeaders() {
onChanged();;
if (responseHeaders_ == null) {
responseHeaders_ = com.google.protobuf.MapField.newMapField(
ResponseHeadersDefaultEntryHolder.defaultEntry);
}
if (!responseHeaders_.isMutable()) {
responseHeaders_ = responseHeaders_.copy();
}
return responseHeaders_;
}
public int getResponseHeadersCount() {
return internalGetResponseHeaders().getMap().size();
}
/**
* map<string, .mdg.engine.proto.Trace.HTTP.Values> response_headers = 5;
*/
@java.lang.Override
public boolean containsResponseHeaders(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetResponseHeaders().getMap().containsKey(key);
}
/**
* Use {@link #getResponseHeadersMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getResponseHeaders() {
return getResponseHeadersMap();
}
/**
* map<string, .mdg.engine.proto.Trace.HTTP.Values> response_headers = 5;
*/
@java.lang.Override
public java.util.Map getResponseHeadersMap() {
return internalGetResponseHeaders().getMap();
}
/**
* map<string, .mdg.engine.proto.Trace.HTTP.Values> response_headers = 5;
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.HTTP.Values getResponseHeadersOrDefault(
java.lang.String key,
mdg.engine.proto.Reports.Trace.HTTP.Values defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetResponseHeaders().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .mdg.engine.proto.Trace.HTTP.Values> response_headers = 5;
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.HTTP.Values getResponseHeadersOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetResponseHeaders().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearResponseHeaders() {
internalGetMutableResponseHeaders().getMutableMap()
.clear();
return this;
}
/**
* map<string, .mdg.engine.proto.Trace.HTTP.Values> response_headers = 5;
*/
public Builder removeResponseHeaders(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableResponseHeaders().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableResponseHeaders() {
return internalGetMutableResponseHeaders().getMutableMap();
}
/**
* map<string, .mdg.engine.proto.Trace.HTTP.Values> response_headers = 5;
*/
public Builder putResponseHeaders(
java.lang.String key,
mdg.engine.proto.Reports.Trace.HTTP.Values value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableResponseHeaders().getMutableMap()
.put(key, value);
return this;
}
/**
* map<string, .mdg.engine.proto.Trace.HTTP.Values> response_headers = 5;
*/
public Builder putAllResponseHeaders(
java.util.Map values) {
internalGetMutableResponseHeaders().getMutableMap()
.putAll(values);
return this;
}
private int statusCode_ ;
/**
* uint32 status_code = 6;
* @return The statusCode.
*/
@java.lang.Override
public int getStatusCode() {
return statusCode_;
}
/**
* uint32 status_code = 6;
* @param value The statusCode to set.
* @return This builder for chaining.
*/
public Builder setStatusCode(int value) {
statusCode_ = value;
onChanged();
return this;
}
/**
* uint32 status_code = 6;
* @return This builder for chaining.
*/
public Builder clearStatusCode() {
statusCode_ = 0;
onChanged();
return this;
}
private boolean secure_ ;
/**
*
* TLS was used
*
*
* bool secure = 8;
* @return The secure.
*/
@java.lang.Override
public boolean getSecure() {
return secure_;
}
/**
*
* TLS was used
*
*
* bool secure = 8;
* @param value The secure to set.
* @return This builder for chaining.
*/
public Builder setSecure(boolean value) {
secure_ = value;
onChanged();
return this;
}
/**
*
* TLS was used
*
*
* bool secure = 8;
* @return This builder for chaining.
*/
public Builder clearSecure() {
secure_ = false;
onChanged();
return this;
}
private java.lang.Object protocol_ = "";
/**
*
* by convention "HTTP/1.0", "HTTP/1.1", "HTTP/2" or "h2"
*
*
* string protocol = 9;
* @return The protocol.
*/
public java.lang.String getProtocol() {
java.lang.Object ref = protocol_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
protocol_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* by convention "HTTP/1.0", "HTTP/1.1", "HTTP/2" or "h2"
*
*
* string protocol = 9;
* @return The bytes for protocol.
*/
public com.google.protobuf.ByteString
getProtocolBytes() {
java.lang.Object ref = protocol_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
protocol_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* by convention "HTTP/1.0", "HTTP/1.1", "HTTP/2" or "h2"
*
*
* string protocol = 9;
* @param value The protocol to set.
* @return This builder for chaining.
*/
public Builder setProtocol(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
protocol_ = value;
onChanged();
return this;
}
/**
*
* by convention "HTTP/1.0", "HTTP/1.1", "HTTP/2" or "h2"
*
*
* string protocol = 9;
* @return This builder for chaining.
*/
public Builder clearProtocol() {
protocol_ = getDefaultInstance().getProtocol();
onChanged();
return this;
}
/**
*
* by convention "HTTP/1.0", "HTTP/1.1", "HTTP/2" or "h2"
*
*
* string protocol = 9;
* @param value The bytes for protocol to set.
* @return This builder for chaining.
*/
public Builder setProtocolBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
protocol_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:mdg.engine.proto.Trace.HTTP)
}
// @@protoc_insertion_point(class_scope:mdg.engine.proto.Trace.HTTP)
private static final mdg.engine.proto.Reports.Trace.HTTP DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new mdg.engine.proto.Reports.Trace.HTTP();
}
public static mdg.engine.proto.Reports.Trace.HTTP getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public HTTP parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new HTTP(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.HTTP getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LocationOrBuilder extends
// @@protoc_insertion_point(interface_extends:mdg.engine.proto.Trace.Location)
com.google.protobuf.MessageOrBuilder {
/**
* uint32 line = 1;
* @return The line.
*/
int getLine();
/**
* uint32 column = 2;
* @return The column.
*/
int getColumn();
}
/**
* Protobuf type {@code mdg.engine.proto.Trace.Location}
*/
public static final class Location extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:mdg.engine.proto.Trace.Location)
LocationOrBuilder {
private static final long serialVersionUID = 0L;
// Use Location.newBuilder() to construct.
private Location(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Location() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Location();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Location(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
line_ = input.readUInt32();
break;
}
case 16: {
column_ = input.readUInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_Location_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_Location_fieldAccessorTable
.ensureFieldAccessorsInitialized(
mdg.engine.proto.Reports.Trace.Location.class, mdg.engine.proto.Reports.Trace.Location.Builder.class);
}
public static final int LINE_FIELD_NUMBER = 1;
private int line_;
/**
* uint32 line = 1;
* @return The line.
*/
@java.lang.Override
public int getLine() {
return line_;
}
public static final int COLUMN_FIELD_NUMBER = 2;
private int column_;
/**
* uint32 column = 2;
* @return The column.
*/
@java.lang.Override
public int getColumn() {
return column_;
}
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 (line_ != 0) {
output.writeUInt32(1, line_);
}
if (column_ != 0) {
output.writeUInt32(2, column_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (line_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, line_);
}
if (column_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, column_);
}
size += unknownFields.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.Location)) {
return super.equals(obj);
}
mdg.engine.proto.Reports.Trace.Location other = (mdg.engine.proto.Reports.Trace.Location) obj;
if (getLine()
!= other.getLine()) return false;
if (getColumn()
!= other.getColumn()) return false;
if (!unknownFields.equals(other.unknownFields)) 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) + LINE_FIELD_NUMBER;
hash = (53 * hash) + getLine();
hash = (37 * hash) + COLUMN_FIELD_NUMBER;
hash = (53 * hash) + getColumn();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static mdg.engine.proto.Reports.Trace.Location parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.Trace.Location 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.Location parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.Trace.Location 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.Location parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.Trace.Location 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.Location parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.Trace.Location parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.Location parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.Trace.Location parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.Location parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.Trace.Location parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.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.Location 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.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code mdg.engine.proto.Trace.Location}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:mdg.engine.proto.Trace.Location)
mdg.engine.proto.Reports.Trace.LocationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_Location_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_Location_fieldAccessorTable
.ensureFieldAccessorsInitialized(
mdg.engine.proto.Reports.Trace.Location.class, mdg.engine.proto.Reports.Trace.Location.Builder.class);
}
// Construct using mdg.engine.proto.Reports.Trace.Location.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
line_ = 0;
column_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_Location_descriptor;
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.Location getDefaultInstanceForType() {
return mdg.engine.proto.Reports.Trace.Location.getDefaultInstance();
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.Location build() {
mdg.engine.proto.Reports.Trace.Location result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.Location buildPartial() {
mdg.engine.proto.Reports.Trace.Location result = new mdg.engine.proto.Reports.Trace.Location(this);
result.line_ = line_;
result.column_ = column_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof mdg.engine.proto.Reports.Trace.Location) {
return mergeFrom((mdg.engine.proto.Reports.Trace.Location)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(mdg.engine.proto.Reports.Trace.Location other) {
if (other == mdg.engine.proto.Reports.Trace.Location.getDefaultInstance()) return this;
if (other.getLine() != 0) {
setLine(other.getLine());
}
if (other.getColumn() != 0) {
setColumn(other.getColumn());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
mdg.engine.proto.Reports.Trace.Location parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (mdg.engine.proto.Reports.Trace.Location) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int line_ ;
/**
* uint32 line = 1;
* @return The line.
*/
@java.lang.Override
public int getLine() {
return line_;
}
/**
* uint32 line = 1;
* @param value The line to set.
* @return This builder for chaining.
*/
public Builder setLine(int value) {
line_ = value;
onChanged();
return this;
}
/**
* uint32 line = 1;
* @return This builder for chaining.
*/
public Builder clearLine() {
line_ = 0;
onChanged();
return this;
}
private int column_ ;
/**
* uint32 column = 2;
* @return The column.
*/
@java.lang.Override
public int getColumn() {
return column_;
}
/**
* uint32 column = 2;
* @param value The column to set.
* @return This builder for chaining.
*/
public Builder setColumn(int value) {
column_ = value;
onChanged();
return this;
}
/**
* uint32 column = 2;
* @return This builder for chaining.
*/
public Builder clearColumn() {
column_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:mdg.engine.proto.Trace.Location)
}
// @@protoc_insertion_point(class_scope:mdg.engine.proto.Trace.Location)
private static final mdg.engine.proto.Reports.Trace.Location DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new mdg.engine.proto.Reports.Trace.Location();
}
public static mdg.engine.proto.Reports.Trace.Location getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Location parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Location(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.Location getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NodeOrBuilder extends
// @@protoc_insertion_point(interface_extends:mdg.engine.proto.Trace.Node)
com.google.protobuf.MessageOrBuilder {
/**
* string response_name = 1;
* @return Whether the responseName field is set.
*/
boolean hasResponseName();
/**
* string response_name = 1;
* @return The responseName.
*/
java.lang.String getResponseName();
/**
* string response_name = 1;
* @return The bytes for responseName.
*/
com.google.protobuf.ByteString
getResponseNameBytes();
/**
* uint32 index = 2;
* @return Whether the index field is set.
*/
boolean hasIndex();
/**
* uint32 index = 2;
* @return The index.
*/
int getIndex();
/**
* string original_field_name = 14;
* @return The originalFieldName.
*/
java.lang.String getOriginalFieldName();
/**
* string original_field_name = 14;
* @return The bytes for originalFieldName.
*/
com.google.protobuf.ByteString
getOriginalFieldNameBytes();
/**
*
* The field's return type; e.g. "String!" for User.email:String!
*
*
* string type = 3;
* @return The type.
*/
java.lang.String getType();
/**
*
* The field's return type; e.g. "String!" for User.email:String!
*
*
* string type = 3;
* @return The bytes for type.
*/
com.google.protobuf.ByteString
getTypeBytes();
/**
*
* The field's parent type; e.g. "User" for User.email:String!
*
*
* string parent_type = 13;
* @return The parentType.
*/
java.lang.String getParentType();
/**
*
* The field's parent type; e.g. "User" for User.email:String!
*
*
* string parent_type = 13;
* @return The bytes for parentType.
*/
com.google.protobuf.ByteString
getParentTypeBytes();
/**
* .mdg.engine.proto.Trace.CachePolicy cache_policy = 5;
* @return Whether the cachePolicy field is set.
*/
boolean hasCachePolicy();
/**
* .mdg.engine.proto.Trace.CachePolicy cache_policy = 5;
* @return The cachePolicy.
*/
mdg.engine.proto.Reports.Trace.CachePolicy getCachePolicy();
/**
* .mdg.engine.proto.Trace.CachePolicy cache_policy = 5;
*/
mdg.engine.proto.Reports.Trace.CachePolicyOrBuilder getCachePolicyOrBuilder();
/**
*
* relative to the trace's start_time, in ns
*
*
* uint64 start_time = 8;
* @return The startTime.
*/
long getStartTime();
/**
*
* relative to the trace's start_time, in ns
*
*
* uint64 end_time = 9;
* @return The endTime.
*/
long getEndTime();
/**
* repeated .mdg.engine.proto.Trace.Error error = 11;
*/
java.util.List
getErrorList();
/**
* repeated .mdg.engine.proto.Trace.Error error = 11;
*/
mdg.engine.proto.Reports.Trace.Error getError(int index);
/**
* repeated .mdg.engine.proto.Trace.Error error = 11;
*/
int getErrorCount();
/**
* repeated .mdg.engine.proto.Trace.Error error = 11;
*/
java.util.List extends mdg.engine.proto.Reports.Trace.ErrorOrBuilder>
getErrorOrBuilderList();
/**
* repeated .mdg.engine.proto.Trace.Error error = 11;
*/
mdg.engine.proto.Reports.Trace.ErrorOrBuilder getErrorOrBuilder(
int index);
/**
* repeated .mdg.engine.proto.Trace.Node child = 12;
*/
java.util.List
getChildList();
/**
* repeated .mdg.engine.proto.Trace.Node child = 12;
*/
mdg.engine.proto.Reports.Trace.Node getChild(int index);
/**
* repeated .mdg.engine.proto.Trace.Node child = 12;
*/
int getChildCount();
/**
* repeated .mdg.engine.proto.Trace.Node child = 12;
*/
java.util.List extends mdg.engine.proto.Reports.Trace.NodeOrBuilder>
getChildOrBuilderList();
/**
* repeated .mdg.engine.proto.Trace.Node child = 12;
*/
mdg.engine.proto.Reports.Trace.NodeOrBuilder getChildOrBuilder(
int index);
public mdg.engine.proto.Reports.Trace.Node.IdCase getIdCase();
}
/**
*
* 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.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:mdg.engine.proto.Trace.Node)
NodeOrBuilder {
private static final long serialVersionUID = 0L;
// Use Node.newBuilder() to construct.
private Node(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Node() {
originalFieldName_ = "";
type_ = "";
parentType_ = "";
error_ = java.util.Collections.emptyList();
child_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Node();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Node(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
idCase_ = 1;
id_ = s;
break;
}
case 16: {
id_ = input.readUInt32();
idCase_ = 2;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
type_ = s;
break;
}
case 42: {
mdg.engine.proto.Reports.Trace.CachePolicy.Builder subBuilder = null;
if (cachePolicy_ != null) {
subBuilder = cachePolicy_.toBuilder();
}
cachePolicy_ = input.readMessage(mdg.engine.proto.Reports.Trace.CachePolicy.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(cachePolicy_);
cachePolicy_ = subBuilder.buildPartial();
}
break;
}
case 64: {
startTime_ = input.readUInt64();
break;
}
case 72: {
endTime_ = input.readUInt64();
break;
}
case 90: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
error_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
error_.add(
input.readMessage(mdg.engine.proto.Reports.Trace.Error.parser(), extensionRegistry));
break;
}
case 98: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
child_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
child_.add(
input.readMessage(mdg.engine.proto.Reports.Trace.Node.parser(), extensionRegistry));
break;
}
case 106: {
java.lang.String s = input.readStringRequireUtf8();
parentType_ = s;
break;
}
case 114: {
java.lang.String s = input.readStringRequireUtf8();
originalFieldName_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
error_ = java.util.Collections.unmodifiableList(error_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
child_ = java.util.Collections.unmodifiableList(child_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
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.GeneratedMessageV3.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 idCase_ = 0;
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;
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;
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;
private volatile java.lang.Object parentType_;
/**
*
* The field's parent type; e.g. "User" for User.email:String!
*
*
* string parent_type = 13;
* @return The parentType.
*/
@java.lang.Override
public java.lang.String getParentType() {
java.lang.Object ref = parentType_;
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();
parentType_ = s;
return s;
}
}
/**
*
* 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 cachePolicy_ != null;
}
/**
* .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 getCachePolicy();
}
public static final int START_TIME_FIELD_NUMBER = 8;
private long startTime_;
/**
*
* 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_;
/**
*
* 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;
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;
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.GeneratedMessageV3.writeString(output, 1, id_);
}
if (idCase_ == 2) {
output.writeUInt32(
2, (int)((java.lang.Integer) id_));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, type_);
}
if (cachePolicy_ != null) {
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.GeneratedMessageV3.isStringEmpty(parentType_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 13, parentType_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(originalFieldName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 14, originalFieldName_);
}
unknownFields.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.GeneratedMessageV3.computeStringSize(1, id_);
}
if (idCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(
2, (int)((java.lang.Integer) id_));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, type_);
}
if (cachePolicy_ != null) {
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.GeneratedMessageV3.isStringEmpty(parentType_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, parentType_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(originalFieldName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, originalFieldName_);
}
size += unknownFields.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 (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.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.GeneratedMessageV3
.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.GeneratedMessageV3
.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.GeneratedMessageV3
.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.GeneratedMessageV3
.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.GeneratedMessageV3
.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.GeneratedMessageV3
.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getErrorFieldBuilder();
getChildFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
originalFieldName_ = "";
type_ = "";
parentType_ = "";
if (cachePolicyBuilder_ == null) {
cachePolicy_ = null;
} else {
cachePolicy_ = null;
cachePolicyBuilder_ = null;
}
startTime_ = 0L;
endTime_ = 0L;
if (errorBuilder_ == null) {
error_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
errorBuilder_.clear();
}
if (childBuilder_ == null) {
child_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
childBuilder_.clear();
}
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);
int from_bitField0_ = bitField0_;
if (idCase_ == 1) {
result.id_ = id_;
}
if (idCase_ == 2) {
result.id_ = id_;
}
result.originalFieldName_ = originalFieldName_;
result.type_ = type_;
result.parentType_ = parentType_;
if (cachePolicyBuilder_ == null) {
result.cachePolicy_ = cachePolicy_;
} else {
result.cachePolicy_ = cachePolicyBuilder_.build();
}
result.startTime_ = startTime_;
result.endTime_ = endTime_;
if (errorBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
error_ = java.util.Collections.unmodifiableList(error_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.error_ = error_;
} else {
result.error_ = errorBuilder_.build();
}
if (childBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
child_ = java.util.Collections.unmodifiableList(child_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.child_ = child_;
} else {
result.child_ = childBuilder_.build();
}
result.idCase_ = idCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof 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_;
onChanged();
}
if (!other.getType().isEmpty()) {
type_ = other.type_;
onChanged();
}
if (!other.getParentType().isEmpty()) {
parentType_ = other.parentType_;
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_ & ~0x00000001);
} else {
ensureErrorIsMutable();
error_.addAll(other.error_);
}
onChanged();
}
} else {
if (!other.error_.isEmpty()) {
if (errorBuilder_.isEmpty()) {
errorBuilder_.dispose();
errorBuilder_ = null;
error_ = other.error_;
bitField0_ = (bitField0_ & ~0x00000001);
errorBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getErrorFieldBuilder() : null;
} else {
errorBuilder_.addAllMessages(other.error_);
}
}
}
if (childBuilder_ == null) {
if (!other.child_.isEmpty()) {
if (child_.isEmpty()) {
child_ = other.child_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureChildIsMutable();
child_.addAll(other.child_);
}
onChanged();
}
} else {
if (!other.child_.isEmpty()) {
if (childBuilder_.isEmpty()) {
childBuilder_.dispose();
childBuilder_ = null;
child_ = other.child_;
bitField0_ = (bitField0_ & ~0x00000002);
childBuilder_ =
com.google.protobuf.GeneratedMessageV3.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.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
mdg.engine.proto.Reports.Trace.Node parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (mdg.engine.proto.Reports.Trace.Node) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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;
onChanged();
return this;
}
/**
* string original_field_name = 14;
* @return This builder for chaining.
*/
public Builder clearOriginalFieldName() {
originalFieldName_ = getDefaultInstance().getOriginalFieldName();
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;
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;
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();
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;
onChanged();
return this;
}
private java.lang.Object parentType_ = "";
/**
*
* The field's parent type; e.g. "User" for User.email:String!
*
*
* string parent_type = 13;
* @return The parentType.
*/
public java.lang.String getParentType() {
java.lang.Object ref = parentType_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
parentType_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The field's parent type; e.g. "User" for User.email:String!
*
*
* string parent_type = 13;
* @return The bytes for parentType.
*/
public com.google.protobuf.ByteString
getParentTypeBytes() {
java.lang.Object ref = parentType_;
if (ref instanceof 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;
}
}
/**
*
* The field's parent type; e.g. "User" for User.email:String!
*
*
* string parent_type = 13;
* @param value The parentType to set.
* @return This builder for chaining.
*/
public Builder setParentType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
parentType_ = value;
onChanged();
return this;
}
/**
*
* The field's parent type; e.g. "User" for User.email:String!
*
*
* string parent_type = 13;
* @return This builder for chaining.
*/
public Builder clearParentType() {
parentType_ = getDefaultInstance().getParentType();
onChanged();
return this;
}
/**
*
* The field's parent type; e.g. "User" for User.email:String!
*
*
* string parent_type = 13;
* @param value The bytes for parentType to set.
* @return This builder for chaining.
*/
public Builder setParentTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
parentType_ = value;
onChanged();
return this;
}
private mdg.engine.proto.Reports.Trace.CachePolicy cachePolicy_;
private com.google.protobuf.SingleFieldBuilderV3<
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 = 5;
* @return Whether the cachePolicy field is set.
*/
public boolean hasCachePolicy() {
return cachePolicyBuilder_ != null || cachePolicy_ != null;
}
/**
* .mdg.engine.proto.Trace.CachePolicy cache_policy = 5;
* @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 = 5;
*/
public Builder setCachePolicy(mdg.engine.proto.Reports.Trace.CachePolicy value) {
if (cachePolicyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
cachePolicy_ = value;
onChanged();
} else {
cachePolicyBuilder_.setMessage(value);
}
return this;
}
/**
* .mdg.engine.proto.Trace.CachePolicy cache_policy = 5;
*/
public Builder setCachePolicy(
mdg.engine.proto.Reports.Trace.CachePolicy.Builder builderForValue) {
if (cachePolicyBuilder_ == null) {
cachePolicy_ = builderForValue.build();
onChanged();
} else {
cachePolicyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .mdg.engine.proto.Trace.CachePolicy cache_policy = 5;
*/
public Builder mergeCachePolicy(mdg.engine.proto.Reports.Trace.CachePolicy value) {
if (cachePolicyBuilder_ == null) {
if (cachePolicy_ != null) {
cachePolicy_ =
mdg.engine.proto.Reports.Trace.CachePolicy.newBuilder(cachePolicy_).mergeFrom(value).buildPartial();
} else {
cachePolicy_ = value;
}
onChanged();
} else {
cachePolicyBuilder_.mergeFrom(value);
}
return this;
}
/**
* .mdg.engine.proto.Trace.CachePolicy cache_policy = 5;
*/
public Builder clearCachePolicy() {
if (cachePolicyBuilder_ == null) {
cachePolicy_ = null;
onChanged();
} else {
cachePolicy_ = null;
cachePolicyBuilder_ = null;
}
return this;
}
/**
* .mdg.engine.proto.Trace.CachePolicy cache_policy = 5;
*/
public mdg.engine.proto.Reports.Trace.CachePolicy.Builder getCachePolicyBuilder() {
onChanged();
return getCachePolicyFieldBuilder().getBuilder();
}
/**
* .mdg.engine.proto.Trace.CachePolicy cache_policy = 5;
*/
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 = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
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.SingleFieldBuilderV3<
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 long startTime_ ;
/**
*
* relative to the trace's start_time, in ns
*
*
* uint64 start_time = 8;
* @return The startTime.
*/
@java.lang.Override
public long getStartTime() {
return startTime_;
}
/**
*
* relative to the trace's start_time, in ns
*
*
* uint64 start_time = 8;
* @param value The startTime to set.
* @return This builder for chaining.
*/
public Builder setStartTime(long value) {
startTime_ = value;
onChanged();
return this;
}
/**
*
* relative to the trace's start_time, in ns
*
*
* uint64 start_time = 8;
* @return This builder for chaining.
*/
public Builder clearStartTime() {
startTime_ = 0L;
onChanged();
return this;
}
private long endTime_ ;
/**
*
* relative to the trace's start_time, in ns
*
*
* uint64 end_time = 9;
* @return The endTime.
*/
@java.lang.Override
public long getEndTime() {
return endTime_;
}
/**
*
* relative to the trace's start_time, in ns
*
*
* uint64 end_time = 9;
* @param value The endTime to set.
* @return This builder for chaining.
*/
public Builder setEndTime(long value) {
endTime_ = value;
onChanged();
return this;
}
/**
*
* relative to the trace's start_time, in ns
*
*
* uint64 end_time = 9;
* @return This builder for chaining.
*/
public Builder clearEndTime() {
endTime_ = 0L;
onChanged();
return this;
}
private java.util.List error_ =
java.util.Collections.emptyList();
private void ensureErrorIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
error_ = new java.util.ArrayList(error_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
mdg.engine.proto.Reports.Trace.Error, mdg.engine.proto.Reports.Trace.Error.Builder, mdg.engine.proto.Reports.Trace.ErrorOrBuilder> errorBuilder_;
/**
* repeated .mdg.engine.proto.Trace.Error error = 11;
*/
public java.util.List getErrorList() {
if (errorBuilder_ == null) {
return java.util.Collections.unmodifiableList(error_);
} else {
return errorBuilder_.getMessageList();
}
}
/**
* repeated .mdg.engine.proto.Trace.Error error = 11;
*/
public int getErrorCount() {
if (errorBuilder_ == null) {
return error_.size();
} else {
return errorBuilder_.getCount();
}
}
/**
* repeated .mdg.engine.proto.Trace.Error error = 11;
*/
public mdg.engine.proto.Reports.Trace.Error getError(int index) {
if (errorBuilder_ == null) {
return error_.get(index);
} else {
return errorBuilder_.getMessage(index);
}
}
/**
* repeated .mdg.engine.proto.Trace.Error error = 11;
*/
public Builder setError(
int index, mdg.engine.proto.Reports.Trace.Error value) {
if (errorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureErrorIsMutable();
error_.set(index, value);
onChanged();
} else {
errorBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.Error error = 11;
*/
public Builder setError(
int index, mdg.engine.proto.Reports.Trace.Error.Builder builderForValue) {
if (errorBuilder_ == null) {
ensureErrorIsMutable();
error_.set(index, builderForValue.build());
onChanged();
} else {
errorBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.Error error = 11;
*/
public Builder addError(mdg.engine.proto.Reports.Trace.Error value) {
if (errorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureErrorIsMutable();
error_.add(value);
onChanged();
} else {
errorBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.Error error = 11;
*/
public Builder addError(
int index, mdg.engine.proto.Reports.Trace.Error value) {
if (errorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureErrorIsMutable();
error_.add(index, value);
onChanged();
} else {
errorBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.Error error = 11;
*/
public Builder addError(
mdg.engine.proto.Reports.Trace.Error.Builder builderForValue) {
if (errorBuilder_ == null) {
ensureErrorIsMutable();
error_.add(builderForValue.build());
onChanged();
} else {
errorBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.Error error = 11;
*/
public Builder addError(
int index, mdg.engine.proto.Reports.Trace.Error.Builder builderForValue) {
if (errorBuilder_ == null) {
ensureErrorIsMutable();
error_.add(index, builderForValue.build());
onChanged();
} else {
errorBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.Error error = 11;
*/
public Builder addAllError(
java.lang.Iterable extends mdg.engine.proto.Reports.Trace.Error> values) {
if (errorBuilder_ == null) {
ensureErrorIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, error_);
onChanged();
} else {
errorBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.Error error = 11;
*/
public Builder clearError() {
if (errorBuilder_ == null) {
error_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
errorBuilder_.clear();
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.Error error = 11;
*/
public Builder removeError(int index) {
if (errorBuilder_ == null) {
ensureErrorIsMutable();
error_.remove(index);
onChanged();
} else {
errorBuilder_.remove(index);
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.Error error = 11;
*/
public mdg.engine.proto.Reports.Trace.Error.Builder getErrorBuilder(
int index) {
return getErrorFieldBuilder().getBuilder(index);
}
/**
* repeated .mdg.engine.proto.Trace.Error error = 11;
*/
public mdg.engine.proto.Reports.Trace.ErrorOrBuilder getErrorOrBuilder(
int index) {
if (errorBuilder_ == null) {
return error_.get(index); } else {
return errorBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .mdg.engine.proto.Trace.Error error = 11;
*/
public java.util.List extends mdg.engine.proto.Reports.Trace.ErrorOrBuilder>
getErrorOrBuilderList() {
if (errorBuilder_ != null) {
return errorBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(error_);
}
}
/**
* repeated .mdg.engine.proto.Trace.Error error = 11;
*/
public mdg.engine.proto.Reports.Trace.Error.Builder addErrorBuilder() {
return getErrorFieldBuilder().addBuilder(
mdg.engine.proto.Reports.Trace.Error.getDefaultInstance());
}
/**
* repeated .mdg.engine.proto.Trace.Error error = 11;
*/
public mdg.engine.proto.Reports.Trace.Error.Builder addErrorBuilder(
int index) {
return getErrorFieldBuilder().addBuilder(
index, mdg.engine.proto.Reports.Trace.Error.getDefaultInstance());
}
/**
* repeated .mdg.engine.proto.Trace.Error error = 11;
*/
public java.util.List
getErrorBuilderList() {
return getErrorFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
mdg.engine.proto.Reports.Trace.Error, mdg.engine.proto.Reports.Trace.Error.Builder, mdg.engine.proto.Reports.Trace.ErrorOrBuilder>
getErrorFieldBuilder() {
if (errorBuilder_ == null) {
errorBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
mdg.engine.proto.Reports.Trace.Error, mdg.engine.proto.Reports.Trace.Error.Builder, mdg.engine.proto.Reports.Trace.ErrorOrBuilder>(
error_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
error_ = null;
}
return errorBuilder_;
}
private java.util.List child_ =
java.util.Collections.emptyList();
private void ensureChildIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
child_ = new java.util.ArrayList(child_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
mdg.engine.proto.Reports.Trace.Node, mdg.engine.proto.Reports.Trace.Node.Builder, mdg.engine.proto.Reports.Trace.NodeOrBuilder> childBuilder_;
/**
* repeated .mdg.engine.proto.Trace.Node child = 12;
*/
public java.util.List getChildList() {
if (childBuilder_ == null) {
return java.util.Collections.unmodifiableList(child_);
} else {
return childBuilder_.getMessageList();
}
}
/**
* repeated .mdg.engine.proto.Trace.Node child = 12;
*/
public int getChildCount() {
if (childBuilder_ == null) {
return child_.size();
} else {
return childBuilder_.getCount();
}
}
/**
* repeated .mdg.engine.proto.Trace.Node child = 12;
*/
public mdg.engine.proto.Reports.Trace.Node getChild(int index) {
if (childBuilder_ == null) {
return child_.get(index);
} else {
return childBuilder_.getMessage(index);
}
}
/**
* repeated .mdg.engine.proto.Trace.Node child = 12;
*/
public Builder setChild(
int index, mdg.engine.proto.Reports.Trace.Node value) {
if (childBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChildIsMutable();
child_.set(index, value);
onChanged();
} else {
childBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.Node child = 12;
*/
public Builder setChild(
int index, mdg.engine.proto.Reports.Trace.Node.Builder builderForValue) {
if (childBuilder_ == null) {
ensureChildIsMutable();
child_.set(index, builderForValue.build());
onChanged();
} else {
childBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.Node child = 12;
*/
public Builder addChild(mdg.engine.proto.Reports.Trace.Node value) {
if (childBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChildIsMutable();
child_.add(value);
onChanged();
} else {
childBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.Node child = 12;
*/
public Builder addChild(
int index, mdg.engine.proto.Reports.Trace.Node value) {
if (childBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChildIsMutable();
child_.add(index, value);
onChanged();
} else {
childBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.Node child = 12;
*/
public Builder addChild(
mdg.engine.proto.Reports.Trace.Node.Builder builderForValue) {
if (childBuilder_ == null) {
ensureChildIsMutable();
child_.add(builderForValue.build());
onChanged();
} else {
childBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.Node child = 12;
*/
public Builder addChild(
int index, mdg.engine.proto.Reports.Trace.Node.Builder builderForValue) {
if (childBuilder_ == null) {
ensureChildIsMutable();
child_.add(index, builderForValue.build());
onChanged();
} else {
childBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.Node child = 12;
*/
public Builder addAllChild(
java.lang.Iterable extends mdg.engine.proto.Reports.Trace.Node> values) {
if (childBuilder_ == null) {
ensureChildIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, child_);
onChanged();
} else {
childBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.Node child = 12;
*/
public Builder clearChild() {
if (childBuilder_ == null) {
child_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
childBuilder_.clear();
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.Node child = 12;
*/
public Builder removeChild(int index) {
if (childBuilder_ == null) {
ensureChildIsMutable();
child_.remove(index);
onChanged();
} else {
childBuilder_.remove(index);
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.Node child = 12;
*/
public mdg.engine.proto.Reports.Trace.Node.Builder getChildBuilder(
int index) {
return getChildFieldBuilder().getBuilder(index);
}
/**
* repeated .mdg.engine.proto.Trace.Node child = 12;
*/
public mdg.engine.proto.Reports.Trace.NodeOrBuilder getChildOrBuilder(
int index) {
if (childBuilder_ == null) {
return child_.get(index); } else {
return childBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .mdg.engine.proto.Trace.Node child = 12;
*/
public java.util.List extends mdg.engine.proto.Reports.Trace.NodeOrBuilder>
getChildOrBuilderList() {
if (childBuilder_ != null) {
return childBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(child_);
}
}
/**
* repeated .mdg.engine.proto.Trace.Node child = 12;
*/
public mdg.engine.proto.Reports.Trace.Node.Builder addChildBuilder() {
return getChildFieldBuilder().addBuilder(
mdg.engine.proto.Reports.Trace.Node.getDefaultInstance());
}
/**
* repeated .mdg.engine.proto.Trace.Node child = 12;
*/
public mdg.engine.proto.Reports.Trace.Node.Builder addChildBuilder(
int index) {
return getChildFieldBuilder().addBuilder(
index, mdg.engine.proto.Reports.Trace.Node.getDefaultInstance());
}
/**
* repeated .mdg.engine.proto.Trace.Node child = 12;
*/
public java.util.List
getChildBuilderList() {
return getChildFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
mdg.engine.proto.Reports.Trace.Node, mdg.engine.proto.Reports.Trace.Node.Builder, mdg.engine.proto.Reports.Trace.NodeOrBuilder>
getChildFieldBuilder() {
if (childBuilder_ == null) {
childBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
mdg.engine.proto.Reports.Trace.Node, mdg.engine.proto.Reports.Trace.Node.Builder, mdg.engine.proto.Reports.Trace.NodeOrBuilder>(
child_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
child_ = null;
}
return childBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:mdg.engine.proto.Trace.Node)
}
// @@protoc_insertion_point(class_scope:mdg.engine.proto.Trace.Node)
private static final mdg.engine.proto.Reports.Trace.Node DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new mdg.engine.proto.Reports.Trace.Node();
}
public static mdg.engine.proto.Reports.Trace.Node getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Node parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Node(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.Node getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueryPlanNodeOrBuilder extends
// @@protoc_insertion_point(interface_extends:mdg.engine.proto.Trace.QueryPlanNode)
com.google.protobuf.MessageOrBuilder {
/**
* .mdg.engine.proto.Trace.QueryPlanNode.SequenceNode sequence = 1;
* @return Whether the sequence field is set.
*/
boolean hasSequence();
/**
* .mdg.engine.proto.Trace.QueryPlanNode.SequenceNode sequence = 1;
* @return The sequence.
*/
mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode getSequence();
/**
* .mdg.engine.proto.Trace.QueryPlanNode.SequenceNode sequence = 1;
*/
mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNodeOrBuilder getSequenceOrBuilder();
/**
* .mdg.engine.proto.Trace.QueryPlanNode.ParallelNode parallel = 2;
* @return Whether the parallel field is set.
*/
boolean hasParallel();
/**
* .mdg.engine.proto.Trace.QueryPlanNode.ParallelNode parallel = 2;
* @return The parallel.
*/
mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode getParallel();
/**
* .mdg.engine.proto.Trace.QueryPlanNode.ParallelNode parallel = 2;
*/
mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNodeOrBuilder getParallelOrBuilder();
/**
* .mdg.engine.proto.Trace.QueryPlanNode.FetchNode fetch = 3;
* @return Whether the fetch field is set.
*/
boolean hasFetch();
/**
* .mdg.engine.proto.Trace.QueryPlanNode.FetchNode fetch = 3;
* @return The fetch.
*/
mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode getFetch();
/**
* .mdg.engine.proto.Trace.QueryPlanNode.FetchNode fetch = 3;
*/
mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNodeOrBuilder getFetchOrBuilder();
/**
* .mdg.engine.proto.Trace.QueryPlanNode.FlattenNode flatten = 4;
* @return Whether the flatten field is set.
*/
boolean hasFlatten();
/**
* .mdg.engine.proto.Trace.QueryPlanNode.FlattenNode flatten = 4;
* @return The flatten.
*/
mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode getFlatten();
/**
* .mdg.engine.proto.Trace.QueryPlanNode.FlattenNode flatten = 4;
*/
mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNodeOrBuilder getFlattenOrBuilder();
public mdg.engine.proto.Reports.Trace.QueryPlanNode.NodeCase getNodeCase();
}
/**
*
* 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.
*
*
* Protobuf type {@code mdg.engine.proto.Trace.QueryPlanNode}
*/
public static final class QueryPlanNode extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:mdg.engine.proto.Trace.QueryPlanNode)
QueryPlanNodeOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryPlanNode.newBuilder() to construct.
private QueryPlanNode(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryPlanNode() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueryPlanNode();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QueryPlanNode(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode.Builder subBuilder = null;
if (nodeCase_ == 1) {
subBuilder = ((mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode) node_).toBuilder();
}
node_ =
input.readMessage(mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode) node_);
node_ = subBuilder.buildPartial();
}
nodeCase_ = 1;
break;
}
case 18: {
mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode.Builder subBuilder = null;
if (nodeCase_ == 2) {
subBuilder = ((mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode) node_).toBuilder();
}
node_ =
input.readMessage(mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode) node_);
node_ = subBuilder.buildPartial();
}
nodeCase_ = 2;
break;
}
case 26: {
mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode.Builder subBuilder = null;
if (nodeCase_ == 3) {
subBuilder = ((mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode) node_).toBuilder();
}
node_ =
input.readMessage(mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode) node_);
node_ = subBuilder.buildPartial();
}
nodeCase_ = 3;
break;
}
case 34: {
mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode.Builder subBuilder = null;
if (nodeCase_ == 4) {
subBuilder = ((mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode) node_).toBuilder();
}
node_ =
input.readMessage(mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode) node_);
node_ = subBuilder.buildPartial();
}
nodeCase_ = 4;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_QueryPlanNode_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_QueryPlanNode_fieldAccessorTable
.ensureFieldAccessorsInitialized(
mdg.engine.proto.Reports.Trace.QueryPlanNode.class, mdg.engine.proto.Reports.Trace.QueryPlanNode.Builder.class);
}
public interface SequenceNodeOrBuilder extends
// @@protoc_insertion_point(interface_extends:mdg.engine.proto.Trace.QueryPlanNode.SequenceNode)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
java.util.List
getNodesList();
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
mdg.engine.proto.Reports.Trace.QueryPlanNode getNodes(int index);
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
int getNodesCount();
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
java.util.List extends mdg.engine.proto.Reports.Trace.QueryPlanNodeOrBuilder>
getNodesOrBuilderList();
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
mdg.engine.proto.Reports.Trace.QueryPlanNodeOrBuilder getNodesOrBuilder(
int index);
}
/**
*
* This represents a set of nodes to be executed sequentially by the Gateway executor
*
*
* Protobuf type {@code mdg.engine.proto.Trace.QueryPlanNode.SequenceNode}
*/
public static final class SequenceNode extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:mdg.engine.proto.Trace.QueryPlanNode.SequenceNode)
SequenceNodeOrBuilder {
private static final long serialVersionUID = 0L;
// Use SequenceNode.newBuilder() to construct.
private SequenceNode(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SequenceNode() {
nodes_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SequenceNode();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SequenceNode(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
nodes_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
nodes_.add(
input.readMessage(mdg.engine.proto.Reports.Trace.QueryPlanNode.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
nodes_ = java.util.Collections.unmodifiableList(nodes_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_QueryPlanNode_SequenceNode_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_QueryPlanNode_SequenceNode_fieldAccessorTable
.ensureFieldAccessorsInitialized(
mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode.class, mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode.Builder.class);
}
public static final int NODES_FIELD_NUMBER = 1;
private java.util.List nodes_;
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
@java.lang.Override
public java.util.List getNodesList() {
return nodes_;
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
@java.lang.Override
public java.util.List extends mdg.engine.proto.Reports.Trace.QueryPlanNodeOrBuilder>
getNodesOrBuilderList() {
return nodes_;
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
@java.lang.Override
public int getNodesCount() {
return nodes_.size();
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNode getNodes(int index) {
return nodes_.get(index);
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNodeOrBuilder getNodesOrBuilder(
int index) {
return nodes_.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 {
for (int i = 0; i < nodes_.size(); i++) {
output.writeMessage(1, nodes_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < nodes_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, nodes_.get(i));
}
size += unknownFields.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.SequenceNode)) {
return super.equals(obj);
}
mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode other = (mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode) obj;
if (!getNodesList()
.equals(other.getNodesList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getNodesCount() > 0) {
hash = (37 * hash) + NODES_FIELD_NUMBER;
hash = (53 * hash) + getNodesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode 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.SequenceNode parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode 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.SequenceNode parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode 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.SequenceNode parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.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.SequenceNode 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.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* This represents a set of nodes to be executed sequentially by the Gateway executor
*
*
* Protobuf type {@code mdg.engine.proto.Trace.QueryPlanNode.SequenceNode}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:mdg.engine.proto.Trace.QueryPlanNode.SequenceNode)
mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNodeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_QueryPlanNode_SequenceNode_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_QueryPlanNode_SequenceNode_fieldAccessorTable
.ensureFieldAccessorsInitialized(
mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode.class, mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode.Builder.class);
}
// Construct using mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getNodesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (nodesBuilder_ == null) {
nodes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
nodesBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_QueryPlanNode_SequenceNode_descriptor;
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode getDefaultInstanceForType() {
return mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode.getDefaultInstance();
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode build() {
mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode buildPartial() {
mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode result = new mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode(this);
int from_bitField0_ = bitField0_;
if (nodesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
nodes_ = java.util.Collections.unmodifiableList(nodes_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.nodes_ = nodes_;
} else {
result.nodes_ = nodesBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode) {
return mergeFrom((mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode other) {
if (other == mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode.getDefaultInstance()) return this;
if (nodesBuilder_ == null) {
if (!other.nodes_.isEmpty()) {
if (nodes_.isEmpty()) {
nodes_ = other.nodes_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureNodesIsMutable();
nodes_.addAll(other.nodes_);
}
onChanged();
}
} else {
if (!other.nodes_.isEmpty()) {
if (nodesBuilder_.isEmpty()) {
nodesBuilder_.dispose();
nodesBuilder_ = null;
nodes_ = other.nodes_;
bitField0_ = (bitField0_ & ~0x00000001);
nodesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getNodesFieldBuilder() : null;
} else {
nodesBuilder_.addAllMessages(other.nodes_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List nodes_ =
java.util.Collections.emptyList();
private void ensureNodesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
nodes_ = new java.util.ArrayList(nodes_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
mdg.engine.proto.Reports.Trace.QueryPlanNode, mdg.engine.proto.Reports.Trace.QueryPlanNode.Builder, mdg.engine.proto.Reports.Trace.QueryPlanNodeOrBuilder> nodesBuilder_;
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
public java.util.List getNodesList() {
if (nodesBuilder_ == null) {
return java.util.Collections.unmodifiableList(nodes_);
} else {
return nodesBuilder_.getMessageList();
}
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
public int getNodesCount() {
if (nodesBuilder_ == null) {
return nodes_.size();
} else {
return nodesBuilder_.getCount();
}
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
public mdg.engine.proto.Reports.Trace.QueryPlanNode getNodes(int index) {
if (nodesBuilder_ == null) {
return nodes_.get(index);
} else {
return nodesBuilder_.getMessage(index);
}
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
public Builder setNodes(
int index, mdg.engine.proto.Reports.Trace.QueryPlanNode value) {
if (nodesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodesIsMutable();
nodes_.set(index, value);
onChanged();
} else {
nodesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
public Builder setNodes(
int index, mdg.engine.proto.Reports.Trace.QueryPlanNode.Builder builderForValue) {
if (nodesBuilder_ == null) {
ensureNodesIsMutable();
nodes_.set(index, builderForValue.build());
onChanged();
} else {
nodesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
public Builder addNodes(mdg.engine.proto.Reports.Trace.QueryPlanNode value) {
if (nodesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodesIsMutable();
nodes_.add(value);
onChanged();
} else {
nodesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
public Builder addNodes(
int index, mdg.engine.proto.Reports.Trace.QueryPlanNode value) {
if (nodesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodesIsMutable();
nodes_.add(index, value);
onChanged();
} else {
nodesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
public Builder addNodes(
mdg.engine.proto.Reports.Trace.QueryPlanNode.Builder builderForValue) {
if (nodesBuilder_ == null) {
ensureNodesIsMutable();
nodes_.add(builderForValue.build());
onChanged();
} else {
nodesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
public Builder addNodes(
int index, mdg.engine.proto.Reports.Trace.QueryPlanNode.Builder builderForValue) {
if (nodesBuilder_ == null) {
ensureNodesIsMutable();
nodes_.add(index, builderForValue.build());
onChanged();
} else {
nodesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
public Builder addAllNodes(
java.lang.Iterable extends mdg.engine.proto.Reports.Trace.QueryPlanNode> values) {
if (nodesBuilder_ == null) {
ensureNodesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, nodes_);
onChanged();
} else {
nodesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
public Builder clearNodes() {
if (nodesBuilder_ == null) {
nodes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
nodesBuilder_.clear();
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
public Builder removeNodes(int index) {
if (nodesBuilder_ == null) {
ensureNodesIsMutable();
nodes_.remove(index);
onChanged();
} else {
nodesBuilder_.remove(index);
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
public mdg.engine.proto.Reports.Trace.QueryPlanNode.Builder getNodesBuilder(
int index) {
return getNodesFieldBuilder().getBuilder(index);
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
public mdg.engine.proto.Reports.Trace.QueryPlanNodeOrBuilder getNodesOrBuilder(
int index) {
if (nodesBuilder_ == null) {
return nodes_.get(index); } else {
return nodesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
public java.util.List extends mdg.engine.proto.Reports.Trace.QueryPlanNodeOrBuilder>
getNodesOrBuilderList() {
if (nodesBuilder_ != null) {
return nodesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(nodes_);
}
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
public mdg.engine.proto.Reports.Trace.QueryPlanNode.Builder addNodesBuilder() {
return getNodesFieldBuilder().addBuilder(
mdg.engine.proto.Reports.Trace.QueryPlanNode.getDefaultInstance());
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
public mdg.engine.proto.Reports.Trace.QueryPlanNode.Builder addNodesBuilder(
int index) {
return getNodesFieldBuilder().addBuilder(
index, mdg.engine.proto.Reports.Trace.QueryPlanNode.getDefaultInstance());
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
public java.util.List
getNodesBuilderList() {
return getNodesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
mdg.engine.proto.Reports.Trace.QueryPlanNode, mdg.engine.proto.Reports.Trace.QueryPlanNode.Builder, mdg.engine.proto.Reports.Trace.QueryPlanNodeOrBuilder>
getNodesFieldBuilder() {
if (nodesBuilder_ == null) {
nodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
mdg.engine.proto.Reports.Trace.QueryPlanNode, mdg.engine.proto.Reports.Trace.QueryPlanNode.Builder, mdg.engine.proto.Reports.Trace.QueryPlanNodeOrBuilder>(
nodes_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
nodes_ = null;
}
return nodesBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:mdg.engine.proto.Trace.QueryPlanNode.SequenceNode)
}
// @@protoc_insertion_point(class_scope:mdg.engine.proto.Trace.QueryPlanNode.SequenceNode)
private static final mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode();
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SequenceNode parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SequenceNode(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ParallelNodeOrBuilder extends
// @@protoc_insertion_point(interface_extends:mdg.engine.proto.Trace.QueryPlanNode.ParallelNode)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
java.util.List
getNodesList();
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
mdg.engine.proto.Reports.Trace.QueryPlanNode getNodes(int index);
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
int getNodesCount();
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
java.util.List extends mdg.engine.proto.Reports.Trace.QueryPlanNodeOrBuilder>
getNodesOrBuilderList();
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
mdg.engine.proto.Reports.Trace.QueryPlanNodeOrBuilder getNodesOrBuilder(
int index);
}
/**
*
* This represents a set of nodes to be executed in parallel by the Gateway executor
*
*
* Protobuf type {@code mdg.engine.proto.Trace.QueryPlanNode.ParallelNode}
*/
public static final class ParallelNode extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:mdg.engine.proto.Trace.QueryPlanNode.ParallelNode)
ParallelNodeOrBuilder {
private static final long serialVersionUID = 0L;
// Use ParallelNode.newBuilder() to construct.
private ParallelNode(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ParallelNode() {
nodes_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ParallelNode();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ParallelNode(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
nodes_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
nodes_.add(
input.readMessage(mdg.engine.proto.Reports.Trace.QueryPlanNode.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
nodes_ = java.util.Collections.unmodifiableList(nodes_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_QueryPlanNode_ParallelNode_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_QueryPlanNode_ParallelNode_fieldAccessorTable
.ensureFieldAccessorsInitialized(
mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode.class, mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode.Builder.class);
}
public static final int NODES_FIELD_NUMBER = 1;
private java.util.List nodes_;
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
@java.lang.Override
public java.util.List getNodesList() {
return nodes_;
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
@java.lang.Override
public java.util.List extends mdg.engine.proto.Reports.Trace.QueryPlanNodeOrBuilder>
getNodesOrBuilderList() {
return nodes_;
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
@java.lang.Override
public int getNodesCount() {
return nodes_.size();
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNode getNodes(int index) {
return nodes_.get(index);
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNodeOrBuilder getNodesOrBuilder(
int index) {
return nodes_.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 {
for (int i = 0; i < nodes_.size(); i++) {
output.writeMessage(1, nodes_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < nodes_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, nodes_.get(i));
}
size += unknownFields.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.ParallelNode)) {
return super.equals(obj);
}
mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode other = (mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode) obj;
if (!getNodesList()
.equals(other.getNodesList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getNodesCount() > 0) {
hash = (37 * hash) + NODES_FIELD_NUMBER;
hash = (53 * hash) + getNodesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode 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.ParallelNode parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode 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.ParallelNode parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode 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.ParallelNode parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.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.ParallelNode 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.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* This represents a set of nodes to be executed in parallel by the Gateway executor
*
*
* Protobuf type {@code mdg.engine.proto.Trace.QueryPlanNode.ParallelNode}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:mdg.engine.proto.Trace.QueryPlanNode.ParallelNode)
mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNodeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_QueryPlanNode_ParallelNode_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_QueryPlanNode_ParallelNode_fieldAccessorTable
.ensureFieldAccessorsInitialized(
mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode.class, mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode.Builder.class);
}
// Construct using mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getNodesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (nodesBuilder_ == null) {
nodes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
nodesBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_QueryPlanNode_ParallelNode_descriptor;
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode getDefaultInstanceForType() {
return mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode.getDefaultInstance();
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode build() {
mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode buildPartial() {
mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode result = new mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode(this);
int from_bitField0_ = bitField0_;
if (nodesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
nodes_ = java.util.Collections.unmodifiableList(nodes_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.nodes_ = nodes_;
} else {
result.nodes_ = nodesBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode) {
return mergeFrom((mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode other) {
if (other == mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode.getDefaultInstance()) return this;
if (nodesBuilder_ == null) {
if (!other.nodes_.isEmpty()) {
if (nodes_.isEmpty()) {
nodes_ = other.nodes_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureNodesIsMutable();
nodes_.addAll(other.nodes_);
}
onChanged();
}
} else {
if (!other.nodes_.isEmpty()) {
if (nodesBuilder_.isEmpty()) {
nodesBuilder_.dispose();
nodesBuilder_ = null;
nodes_ = other.nodes_;
bitField0_ = (bitField0_ & ~0x00000001);
nodesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getNodesFieldBuilder() : null;
} else {
nodesBuilder_.addAllMessages(other.nodes_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List nodes_ =
java.util.Collections.emptyList();
private void ensureNodesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
nodes_ = new java.util.ArrayList(nodes_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
mdg.engine.proto.Reports.Trace.QueryPlanNode, mdg.engine.proto.Reports.Trace.QueryPlanNode.Builder, mdg.engine.proto.Reports.Trace.QueryPlanNodeOrBuilder> nodesBuilder_;
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
public java.util.List getNodesList() {
if (nodesBuilder_ == null) {
return java.util.Collections.unmodifiableList(nodes_);
} else {
return nodesBuilder_.getMessageList();
}
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
public int getNodesCount() {
if (nodesBuilder_ == null) {
return nodes_.size();
} else {
return nodesBuilder_.getCount();
}
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
public mdg.engine.proto.Reports.Trace.QueryPlanNode getNodes(int index) {
if (nodesBuilder_ == null) {
return nodes_.get(index);
} else {
return nodesBuilder_.getMessage(index);
}
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
public Builder setNodes(
int index, mdg.engine.proto.Reports.Trace.QueryPlanNode value) {
if (nodesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodesIsMutable();
nodes_.set(index, value);
onChanged();
} else {
nodesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
public Builder setNodes(
int index, mdg.engine.proto.Reports.Trace.QueryPlanNode.Builder builderForValue) {
if (nodesBuilder_ == null) {
ensureNodesIsMutable();
nodes_.set(index, builderForValue.build());
onChanged();
} else {
nodesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
public Builder addNodes(mdg.engine.proto.Reports.Trace.QueryPlanNode value) {
if (nodesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodesIsMutable();
nodes_.add(value);
onChanged();
} else {
nodesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
public Builder addNodes(
int index, mdg.engine.proto.Reports.Trace.QueryPlanNode value) {
if (nodesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodesIsMutable();
nodes_.add(index, value);
onChanged();
} else {
nodesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
public Builder addNodes(
mdg.engine.proto.Reports.Trace.QueryPlanNode.Builder builderForValue) {
if (nodesBuilder_ == null) {
ensureNodesIsMutable();
nodes_.add(builderForValue.build());
onChanged();
} else {
nodesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
public Builder addNodes(
int index, mdg.engine.proto.Reports.Trace.QueryPlanNode.Builder builderForValue) {
if (nodesBuilder_ == null) {
ensureNodesIsMutable();
nodes_.add(index, builderForValue.build());
onChanged();
} else {
nodesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
public Builder addAllNodes(
java.lang.Iterable extends mdg.engine.proto.Reports.Trace.QueryPlanNode> values) {
if (nodesBuilder_ == null) {
ensureNodesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, nodes_);
onChanged();
} else {
nodesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
public Builder clearNodes() {
if (nodesBuilder_ == null) {
nodes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
nodesBuilder_.clear();
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
public Builder removeNodes(int index) {
if (nodesBuilder_ == null) {
ensureNodesIsMutable();
nodes_.remove(index);
onChanged();
} else {
nodesBuilder_.remove(index);
}
return this;
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
public mdg.engine.proto.Reports.Trace.QueryPlanNode.Builder getNodesBuilder(
int index) {
return getNodesFieldBuilder().getBuilder(index);
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
public mdg.engine.proto.Reports.Trace.QueryPlanNodeOrBuilder getNodesOrBuilder(
int index) {
if (nodesBuilder_ == null) {
return nodes_.get(index); } else {
return nodesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
public java.util.List extends mdg.engine.proto.Reports.Trace.QueryPlanNodeOrBuilder>
getNodesOrBuilderList() {
if (nodesBuilder_ != null) {
return nodesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(nodes_);
}
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
public mdg.engine.proto.Reports.Trace.QueryPlanNode.Builder addNodesBuilder() {
return getNodesFieldBuilder().addBuilder(
mdg.engine.proto.Reports.Trace.QueryPlanNode.getDefaultInstance());
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
public mdg.engine.proto.Reports.Trace.QueryPlanNode.Builder addNodesBuilder(
int index) {
return getNodesFieldBuilder().addBuilder(
index, mdg.engine.proto.Reports.Trace.QueryPlanNode.getDefaultInstance());
}
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode nodes = 1;
*/
public java.util.List
getNodesBuilderList() {
return getNodesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
mdg.engine.proto.Reports.Trace.QueryPlanNode, mdg.engine.proto.Reports.Trace.QueryPlanNode.Builder, mdg.engine.proto.Reports.Trace.QueryPlanNodeOrBuilder>
getNodesFieldBuilder() {
if (nodesBuilder_ == null) {
nodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
mdg.engine.proto.Reports.Trace.QueryPlanNode, mdg.engine.proto.Reports.Trace.QueryPlanNode.Builder, mdg.engine.proto.Reports.Trace.QueryPlanNodeOrBuilder>(
nodes_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
nodes_ = null;
}
return nodesBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:mdg.engine.proto.Trace.QueryPlanNode.ParallelNode)
}
// @@protoc_insertion_point(class_scope:mdg.engine.proto.Trace.QueryPlanNode.ParallelNode)
private static final mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode();
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ParallelNode parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ParallelNode(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FetchNodeOrBuilder extends
// @@protoc_insertion_point(interface_extends:mdg.engine.proto.Trace.QueryPlanNode.FetchNode)
com.google.protobuf.MessageOrBuilder {
/**
*
* 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 serviceName.
*/
java.lang.String getServiceName();
/**
*
* 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.
*
*
* .mdg.engine.proto.Trace trace = 3;
* @return The trace.
*/
mdg.engine.proto.Reports.Trace getTrace();
/**
*
* 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;
*/
mdg.engine.proto.Reports.TraceOrBuilder getTraceOrBuilder();
/**
*
* relative to the outer trace's start_time, in ns, measured in the gateway.
*
*
* uint64 sent_time_offset = 4;
* @return The sentTimeOffset.
*/
long getSentTimeOffset();
/**
*
* 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.
*/
boolean hasSentTime();
/**
*
* Wallclock times measured in the gateway for when this operation was
* sent and received.
*
*
* .google.protobuf.Timestamp sent_time = 5;
* @return The sentTime.
*/
com.google.protobuf.Timestamp getSentTime();
/**
*
* Wallclock times measured in the gateway for when this operation was
* sent and received.
*
*
* .google.protobuf.Timestamp sent_time = 5;
*/
com.google.protobuf.TimestampOrBuilder getSentTimeOrBuilder();
/**
* .google.protobuf.Timestamp received_time = 6;
* @return Whether the receivedTime field is set.
*/
boolean hasReceivedTime();
/**
* .google.protobuf.Timestamp received_time = 6;
* @return The receivedTime.
*/
com.google.protobuf.Timestamp getReceivedTime();
/**
* .google.protobuf.Timestamp received_time = 6;
*/
com.google.protobuf.TimestampOrBuilder getReceivedTimeOrBuilder();
}
/**
*
* 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.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:mdg.engine.proto.Trace.QueryPlanNode.FetchNode)
FetchNodeOrBuilder {
private static final long serialVersionUID = 0L;
// Use FetchNode.newBuilder() to construct.
private FetchNode(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FetchNode() {
serviceName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FetchNode();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FetchNode(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
serviceName_ = s;
break;
}
case 16: {
traceParsingFailed_ = input.readBool();
break;
}
case 26: {
mdg.engine.proto.Reports.Trace.Builder subBuilder = null;
if (trace_ != null) {
subBuilder = trace_.toBuilder();
}
trace_ = input.readMessage(mdg.engine.proto.Reports.Trace.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(trace_);
trace_ = subBuilder.buildPartial();
}
break;
}
case 32: {
sentTimeOffset_ = input.readUInt64();
break;
}
case 42: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (sentTime_ != null) {
subBuilder = sentTime_.toBuilder();
}
sentTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(sentTime_);
sentTime_ = subBuilder.buildPartial();
}
break;
}
case 50: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (receivedTime_ != null) {
subBuilder = receivedTime_.toBuilder();
}
receivedTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(receivedTime_);
receivedTime_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_QueryPlanNode_FetchNode_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.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);
}
public static final int SERVICENAME_FIELD_NUMBER = 1;
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.
*
*
* string serviceName = 1;
* @return The serviceName.
*/
@java.lang.Override
public java.lang.String getServiceName() {
java.lang.Object ref = serviceName_;
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();
serviceName_ = s;
return s;
}
}
/**
*
* 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_;
/**
* 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 trace_ != null;
}
/**
*
* 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 The trace.
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace getTrace() {
return trace_ == null ? mdg.engine.proto.Reports.Trace.getDefaultInstance() : 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;
*/
@java.lang.Override
public mdg.engine.proto.Reports.TraceOrBuilder getTraceOrBuilder() {
return getTrace();
}
public static final int SENT_TIME_OFFSET_FIELD_NUMBER = 4;
private long sentTimeOffset_;
/**
*
* 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 sentTime_ != null;
}
/**
*
* Wallclock times measured in the gateway for when this operation was
* sent and received.
*
*
* .google.protobuf.Timestamp sent_time = 5;
* @return The sentTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getSentTime() {
return sentTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : sentTime_;
}
/**
*
* 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 getSentTime();
}
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 receivedTime_ != null;
}
/**
* .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 getReceivedTime();
}
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.GeneratedMessageV3.isStringEmpty(serviceName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceName_);
}
if (traceParsingFailed_ != false) {
output.writeBool(2, traceParsingFailed_);
}
if (trace_ != null) {
output.writeMessage(3, getTrace());
}
if (sentTimeOffset_ != 0L) {
output.writeUInt64(4, sentTimeOffset_);
}
if (sentTime_ != null) {
output.writeMessage(5, getSentTime());
}
if (receivedTime_ != null) {
output.writeMessage(6, getReceivedTime());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceName_);
}
if (traceParsingFailed_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, traceParsingFailed_);
}
if (trace_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getTrace());
}
if (sentTimeOffset_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(4, sentTimeOffset_);
}
if (sentTime_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getSentTime());
}
if (receivedTime_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getReceivedTime());
}
size += unknownFields.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 (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.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.GeneratedMessageV3
.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.GeneratedMessageV3
.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.GeneratedMessageV3
.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.GeneratedMessageV3
.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.GeneratedMessageV3
.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.GeneratedMessageV3
.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
serviceName_ = "";
traceParsingFailed_ = false;
if (traceBuilder_ == null) {
trace_ = null;
} else {
trace_ = null;
traceBuilder_ = null;
}
sentTimeOffset_ = 0L;
if (sentTimeBuilder_ == null) {
sentTime_ = null;
} else {
sentTime_ = null;
sentTimeBuilder_ = null;
}
if (receivedTimeBuilder_ == null) {
receivedTime_ = null;
} else {
receivedTime_ = null;
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);
result.serviceName_ = serviceName_;
result.traceParsingFailed_ = traceParsingFailed_;
if (traceBuilder_ == null) {
result.trace_ = trace_;
} else {
result.trace_ = traceBuilder_.build();
}
result.sentTimeOffset_ = sentTimeOffset_;
if (sentTimeBuilder_ == null) {
result.sentTime_ = sentTime_;
} else {
result.sentTime_ = sentTimeBuilder_.build();
}
if (receivedTimeBuilder_ == null) {
result.receivedTime_ = receivedTime_;
} else {
result.receivedTime_ = receivedTimeBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof 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_;
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.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
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.
*
*
* string serviceName = 1;
* @return The serviceName.
*/
public java.lang.String getServiceName() {
java.lang.Object ref = serviceName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
serviceName_ = s;
return s;
} else {
return (java.lang.String) 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;
* @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;
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.
*
*
* string serviceName = 1;
* @return This builder for chaining.
*/
public Builder clearServiceName() {
serviceName_ = getDefaultInstance().getServiceName();
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.
*
*
* 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;
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;
onChanged();
return this;
}
/**
* bool traceParsingFailed = 2;
* @return This builder for chaining.
*/
public Builder clearTraceParsingFailed() {
traceParsingFailed_ = false;
onChanged();
return this;
}
private mdg.engine.proto.Reports.Trace trace_;
private com.google.protobuf.SingleFieldBuilderV3<
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 traceBuilder_ != null || trace_ != null;
}
/**
*
* 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 The trace.
*/
public mdg.engine.proto.Reports.Trace getTrace() {
if (traceBuilder_ == null) {
return trace_ == null ? mdg.engine.proto.Reports.Trace.getDefaultInstance() : trace_;
} else {
return traceBuilder_.getMessage();
}
}
/**
*
* 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;
*/
public Builder setTrace(mdg.engine.proto.Reports.Trace value) {
if (traceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
trace_ = value;
onChanged();
} else {
traceBuilder_.setMessage(value);
}
return this;
}
/**
*
* 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;
*/
public Builder setTrace(
mdg.engine.proto.Reports.Trace.Builder builderForValue) {
if (traceBuilder_ == null) {
trace_ = builderForValue.build();
onChanged();
} else {
traceBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* 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;
*/
public Builder mergeTrace(mdg.engine.proto.Reports.Trace value) {
if (traceBuilder_ == null) {
if (trace_ != null) {
trace_ =
mdg.engine.proto.Reports.Trace.newBuilder(trace_).mergeFrom(value).buildPartial();
} else {
trace_ = value;
}
onChanged();
} else {
traceBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* 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;
*/
public Builder clearTrace() {
if (traceBuilder_ == null) {
trace_ = null;
onChanged();
} else {
trace_ = null;
traceBuilder_ = null;
}
return this;
}
/**
*
* 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;
*/
public mdg.engine.proto.Reports.Trace.Builder getTraceBuilder() {
onChanged();
return getTraceFieldBuilder().getBuilder();
}
/**
*
* 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;
*/
public mdg.engine.proto.Reports.TraceOrBuilder getTraceOrBuilder() {
if (traceBuilder_ != null) {
return traceBuilder_.getMessageOrBuilder();
} else {
return trace_ == null ?
mdg.engine.proto.Reports.Trace.getDefaultInstance() : 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;
*/
private com.google.protobuf.SingleFieldBuilderV3<
mdg.engine.proto.Reports.Trace, mdg.engine.proto.Reports.Trace.Builder, mdg.engine.proto.Reports.TraceOrBuilder>
getTraceFieldBuilder() {
if (traceBuilder_ == null) {
traceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
mdg.engine.proto.Reports.Trace, mdg.engine.proto.Reports.Trace.Builder, mdg.engine.proto.Reports.TraceOrBuilder>(
getTrace(),
getParentForChildren(),
isClean());
trace_ = null;
}
return traceBuilder_;
}
private long sentTimeOffset_ ;
/**
*
* 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_;
}
/**
*
* relative to the outer trace's start_time, in ns, measured in the gateway.
*
*
* uint64 sent_time_offset = 4;
* @param value The sentTimeOffset to set.
* @return This builder for chaining.
*/
public Builder setSentTimeOffset(long value) {
sentTimeOffset_ = value;
onChanged();
return this;
}
/**
*
* relative to the outer trace's start_time, in ns, measured in the gateway.
*
*
* uint64 sent_time_offset = 4;
* @return This builder for chaining.
*/
public Builder clearSentTimeOffset() {
sentTimeOffset_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.Timestamp sentTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> sentTimeBuilder_;
/**
*
* 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.
*/
public boolean hasSentTime() {
return sentTimeBuilder_ != null || sentTime_ != null;
}
/**
*
* Wallclock times measured in the gateway for when this operation was
* sent and received.
*
*
* .google.protobuf.Timestamp sent_time = 5;
* @return The sentTime.
*/
public com.google.protobuf.Timestamp getSentTime() {
if (sentTimeBuilder_ == null) {
return sentTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : sentTime_;
} else {
return sentTimeBuilder_.getMessage();
}
}
/**
*
* Wallclock times measured in the gateway for when this operation was
* sent and received.
*
*
* .google.protobuf.Timestamp sent_time = 5;
*/
public Builder setSentTime(com.google.protobuf.Timestamp value) {
if (sentTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sentTime_ = value;
onChanged();
} else {
sentTimeBuilder_.setMessage(value);
}
return this;
}
/**
*
* Wallclock times measured in the gateway for when this operation was
* sent and received.
*
*
* .google.protobuf.Timestamp sent_time = 5;
*/
public Builder setSentTime(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (sentTimeBuilder_ == null) {
sentTime_ = builderForValue.build();
onChanged();
} else {
sentTimeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Wallclock times measured in the gateway for when this operation was
* sent and received.
*
*
* .google.protobuf.Timestamp sent_time = 5;
*/
public Builder mergeSentTime(com.google.protobuf.Timestamp value) {
if (sentTimeBuilder_ == null) {
if (sentTime_ != null) {
sentTime_ =
com.google.protobuf.Timestamp.newBuilder(sentTime_).mergeFrom(value).buildPartial();
} else {
sentTime_ = value;
}
onChanged();
} else {
sentTimeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Wallclock times measured in the gateway for when this operation was
* sent and received.
*
*
* .google.protobuf.Timestamp sent_time = 5;
*/
public Builder clearSentTime() {
if (sentTimeBuilder_ == null) {
sentTime_ = null;
onChanged();
} else {
sentTime_ = null;
sentTimeBuilder_ = null;
}
return this;
}
/**
*
* Wallclock times measured in the gateway for when this operation was
* sent and received.
*
*
* .google.protobuf.Timestamp sent_time = 5;
*/
public com.google.protobuf.Timestamp.Builder getSentTimeBuilder() {
onChanged();
return getSentTimeFieldBuilder().getBuilder();
}
/**
*
* Wallclock times measured in the gateway for when this operation was
* sent and received.
*
*
* .google.protobuf.Timestamp sent_time = 5;
*/
public com.google.protobuf.TimestampOrBuilder getSentTimeOrBuilder() {
if (sentTimeBuilder_ != null) {
return sentTimeBuilder_.getMessageOrBuilder();
} else {
return sentTime_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : sentTime_;
}
}
/**
*
* Wallclock times measured in the gateway for when this operation was
* sent and received.
*
*
* .google.protobuf.Timestamp sent_time = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getSentTimeFieldBuilder() {
if (sentTimeBuilder_ == null) {
sentTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getSentTime(),
getParentForChildren(),
isClean());
sentTime_ = null;
}
return sentTimeBuilder_;
}
private com.google.protobuf.Timestamp receivedTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> receivedTimeBuilder_;
/**
* .google.protobuf.Timestamp received_time = 6;
* @return Whether the receivedTime field is set.
*/
public boolean hasReceivedTime() {
return receivedTimeBuilder_ != null || receivedTime_ != null;
}
/**
* .google.protobuf.Timestamp received_time = 6;
* @return The receivedTime.
*/
public com.google.protobuf.Timestamp getReceivedTime() {
if (receivedTimeBuilder_ == null) {
return receivedTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : receivedTime_;
} else {
return receivedTimeBuilder_.getMessage();
}
}
/**
* .google.protobuf.Timestamp received_time = 6;
*/
public Builder setReceivedTime(com.google.protobuf.Timestamp value) {
if (receivedTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
receivedTime_ = value;
onChanged();
} else {
receivedTimeBuilder_.setMessage(value);
}
return this;
}
/**
* .google.protobuf.Timestamp received_time = 6;
*/
public Builder setReceivedTime(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (receivedTimeBuilder_ == null) {
receivedTime_ = builderForValue.build();
onChanged();
} else {
receivedTimeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .google.protobuf.Timestamp received_time = 6;
*/
public Builder mergeReceivedTime(com.google.protobuf.Timestamp value) {
if (receivedTimeBuilder_ == null) {
if (receivedTime_ != null) {
receivedTime_ =
com.google.protobuf.Timestamp.newBuilder(receivedTime_).mergeFrom(value).buildPartial();
} else {
receivedTime_ = value;
}
onChanged();
} else {
receivedTimeBuilder_.mergeFrom(value);
}
return this;
}
/**
* .google.protobuf.Timestamp received_time = 6;
*/
public Builder clearReceivedTime() {
if (receivedTimeBuilder_ == null) {
receivedTime_ = null;
onChanged();
} else {
receivedTime_ = null;
receivedTimeBuilder_ = null;
}
return this;
}
/**
* .google.protobuf.Timestamp received_time = 6;
*/
public com.google.protobuf.Timestamp.Builder getReceivedTimeBuilder() {
onChanged();
return getReceivedTimeFieldBuilder().getBuilder();
}
/**
* .google.protobuf.Timestamp received_time = 6;
*/
public com.google.protobuf.TimestampOrBuilder getReceivedTimeOrBuilder() {
if (receivedTimeBuilder_ != null) {
return receivedTimeBuilder_.getMessageOrBuilder();
} else {
return receivedTime_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : receivedTime_;
}
}
/**
* .google.protobuf.Timestamp received_time = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getReceivedTimeFieldBuilder() {
if (receivedTimeBuilder_ == null) {
receivedTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getReceivedTime(),
getParentForChildren(),
isClean());
receivedTime_ = null;
}
return receivedTimeBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:mdg.engine.proto.Trace.QueryPlanNode.FetchNode)
}
// @@protoc_insertion_point(class_scope:mdg.engine.proto.Trace.QueryPlanNode.FetchNode)
private static final mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode();
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FetchNode parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FetchNode(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FlattenNodeOrBuilder extends
// @@protoc_insertion_point(interface_extends:mdg.engine.proto.Trace.QueryPlanNode.FlattenNode)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode.ResponsePathElement response_path = 1;
*/
java.util.List
getResponsePathList();
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode.ResponsePathElement response_path = 1;
*/
mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement getResponsePath(int index);
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode.ResponsePathElement response_path = 1;
*/
int getResponsePathCount();
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode.ResponsePathElement response_path = 1;
*/
java.util.List extends mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElementOrBuilder>
getResponsePathOrBuilderList();
/**
* repeated .mdg.engine.proto.Trace.QueryPlanNode.ResponsePathElement response_path = 1;
*/
mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElementOrBuilder getResponsePathOrBuilder(
int index);
/**
* .mdg.engine.proto.Trace.QueryPlanNode node = 2;
* @return Whether the node field is set.
*/
boolean hasNode();
/**
* .mdg.engine.proto.Trace.QueryPlanNode node = 2;
* @return The node.
*/
mdg.engine.proto.Reports.Trace.QueryPlanNode getNode();
/**
* .mdg.engine.proto.Trace.QueryPlanNode node = 2;
*/
mdg.engine.proto.Reports.Trace.QueryPlanNodeOrBuilder getNodeOrBuilder();
}
/**
*
* 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.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:mdg.engine.proto.Trace.QueryPlanNode.FlattenNode)
FlattenNodeOrBuilder {
private static final long serialVersionUID = 0L;
// Use FlattenNode.newBuilder() to construct.
private FlattenNode(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FlattenNode() {
responsePath_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FlattenNode();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FlattenNode(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
responsePath_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
responsePath_.add(
input.readMessage(mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement.parser(), extensionRegistry));
break;
}
case 18: {
mdg.engine.proto.Reports.Trace.QueryPlanNode.Builder subBuilder = null;
if (node_ != null) {
subBuilder = node_.toBuilder();
}
node_ = input.readMessage(mdg.engine.proto.Reports.Trace.QueryPlanNode.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(node_);
node_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
responsePath_ = java.util.Collections.unmodifiableList(responsePath_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
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.GeneratedMessageV3.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);
}
public static final int RESPONSE_PATH_FIELD_NUMBER = 1;
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 node_ != null;
}
/**
* .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 getNode();
}
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 (node_ != null) {
output.writeMessage(2, getNode());
}
unknownFields.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 (node_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getNode());
}
size += unknownFields.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 (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.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.GeneratedMessageV3
.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.GeneratedMessageV3
.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.GeneratedMessageV3
.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.GeneratedMessageV3
.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.GeneratedMessageV3
.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.GeneratedMessageV3
.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getResponsePathFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (responsePathBuilder_ == null) {
responsePath_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
responsePathBuilder_.clear();
}
if (nodeBuilder_ == null) {
node_ = null;
} else {
node_ = null;
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);
int from_bitField0_ = bitField0_;
if (responsePathBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
responsePath_ = java.util.Collections.unmodifiableList(responsePath_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.responsePath_ = responsePath_;
} else {
result.responsePath_ = responsePathBuilder_.build();
}
if (nodeBuilder_ == null) {
result.node_ = node_;
} else {
result.node_ = nodeBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof 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.GeneratedMessageV3.alwaysUseFieldBuilders ?
getResponsePathFieldBuilder() : null;
} else {
responsePathBuilder_.addAllMessages(other.responsePath_);
}
}
}
if (other.hasNode()) {
mergeNode(other.getNode());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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.RepeatedFieldBuilderV3<
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.RepeatedFieldBuilderV3<
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.RepeatedFieldBuilderV3<
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.SingleFieldBuilderV3<
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 nodeBuilder_ != null || node_ != null;
}
/**
* .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;
onChanged();
} else {
nodeBuilder_.setMessage(value);
}
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();
onChanged();
} else {
nodeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .mdg.engine.proto.Trace.QueryPlanNode node = 2;
*/
public Builder mergeNode(mdg.engine.proto.Reports.Trace.QueryPlanNode value) {
if (nodeBuilder_ == null) {
if (node_ != null) {
node_ =
mdg.engine.proto.Reports.Trace.QueryPlanNode.newBuilder(node_).mergeFrom(value).buildPartial();
} else {
node_ = value;
}
onChanged();
} else {
nodeBuilder_.mergeFrom(value);
}
return this;
}
/**
* .mdg.engine.proto.Trace.QueryPlanNode node = 2;
*/
public Builder clearNode() {
if (nodeBuilder_ == null) {
node_ = null;
onChanged();
} else {
node_ = null;
nodeBuilder_ = null;
}
return this;
}
/**
* .mdg.engine.proto.Trace.QueryPlanNode node = 2;
*/
public mdg.engine.proto.Reports.Trace.QueryPlanNode.Builder getNodeBuilder() {
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.SingleFieldBuilderV3<
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.SingleFieldBuilderV3<
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_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope: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 {
return new FlattenNode(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public 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();
public 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.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:mdg.engine.proto.Trace.QueryPlanNode.ResponsePathElement)
ResponsePathElementOrBuilder {
private static final long serialVersionUID = 0L;
// Use ResponsePathElement.newBuilder() to construct.
private ResponsePathElement(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ResponsePathElement() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ResponsePathElement();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ResponsePathElement(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
idCase_ = 1;
id_ = s;
break;
}
case 16: {
id_ = input.readUInt32();
idCase_ = 2;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_QueryPlanNode_ResponsePathElement_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.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;
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.GeneratedMessageV3.writeString(output, 1, id_);
}
if (idCase_ == 2) {
output.writeUInt32(
2, (int)((java.lang.Integer) id_));
}
unknownFields.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.GeneratedMessageV3.computeStringSize(1, id_);
}
if (idCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(
2, (int)((java.lang.Integer) id_));
}
size += unknownFields.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 (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.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.GeneratedMessageV3
.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.GeneratedMessageV3
.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.GeneratedMessageV3
.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.GeneratedMessageV3
.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.GeneratedMessageV3
.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.GeneratedMessageV3
.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
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 (idCase_ == 1) {
result.id_ = id_;
}
if (idCase_ == 2) {
result.id_ = id_;
}
result.idCase_ = idCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof 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.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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;
}
/**
* 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;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope: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 {
return new ResponsePathElement(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNode.ResponsePathElement getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int nodeCase_ = 0;
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_);
}
unknownFields.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 += unknownFields.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 (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.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.GeneratedMessageV3
.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.GeneratedMessageV3
.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.GeneratedMessageV3
.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.GeneratedMessageV3
.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.GeneratedMessageV3
.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.GeneratedMessageV3
.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.GeneratedMessageV3.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.
*
*
* Protobuf type {@code mdg.engine.proto.Trace.QueryPlanNode}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:mdg.engine.proto.Trace.QueryPlanNode)
mdg.engine.proto.Reports.Trace.QueryPlanNodeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_QueryPlanNode_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_Trace_QueryPlanNode_fieldAccessorTable
.ensureFieldAccessorsInitialized(
mdg.engine.proto.Reports.Trace.QueryPlanNode.class, mdg.engine.proto.Reports.Trace.QueryPlanNode.Builder.class);
}
// Construct using mdg.engine.proto.Reports.Trace.QueryPlanNode.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
nodeCase_ = 0;
node_ = 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_descriptor;
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNode getDefaultInstanceForType() {
return mdg.engine.proto.Reports.Trace.QueryPlanNode.getDefaultInstance();
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNode build() {
mdg.engine.proto.Reports.Trace.QueryPlanNode result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNode buildPartial() {
mdg.engine.proto.Reports.Trace.QueryPlanNode result = new mdg.engine.proto.Reports.Trace.QueryPlanNode(this);
if (nodeCase_ == 1) {
if (sequenceBuilder_ == null) {
result.node_ = node_;
} else {
result.node_ = sequenceBuilder_.build();
}
}
if (nodeCase_ == 2) {
if (parallelBuilder_ == null) {
result.node_ = node_;
} else {
result.node_ = parallelBuilder_.build();
}
}
if (nodeCase_ == 3) {
if (fetchBuilder_ == null) {
result.node_ = node_;
} else {
result.node_ = fetchBuilder_.build();
}
}
if (nodeCase_ == 4) {
if (flattenBuilder_ == null) {
result.node_ = node_;
} else {
result.node_ = flattenBuilder_.build();
}
}
result.nodeCase_ = nodeCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof mdg.engine.proto.Reports.Trace.QueryPlanNode) {
return mergeFrom((mdg.engine.proto.Reports.Trace.QueryPlanNode)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(mdg.engine.proto.Reports.Trace.QueryPlanNode other) {
if (other == mdg.engine.proto.Reports.Trace.QueryPlanNode.getDefaultInstance()) return this;
switch (other.getNodeCase()) {
case SEQUENCE: {
mergeSequence(other.getSequence());
break;
}
case PARALLEL: {
mergeParallel(other.getParallel());
break;
}
case FETCH: {
mergeFetch(other.getFetch());
break;
}
case FLATTEN: {
mergeFlatten(other.getFlatten());
break;
}
case NODE_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
mdg.engine.proto.Reports.Trace.QueryPlanNode parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (mdg.engine.proto.Reports.Trace.QueryPlanNode) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int nodeCase_ = 0;
private java.lang.Object node_;
public NodeCase
getNodeCase() {
return NodeCase.forNumber(
nodeCase_);
}
public Builder clearNode() {
nodeCase_ = 0;
node_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode, mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode.Builder, mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNodeOrBuilder> sequenceBuilder_;
/**
* .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 (sequenceBuilder_ == null) {
if (nodeCase_ == 1) {
return (mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode) node_;
}
return mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode.getDefaultInstance();
} else {
if (nodeCase_ == 1) {
return sequenceBuilder_.getMessage();
}
return mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode.getDefaultInstance();
}
}
/**
* .mdg.engine.proto.Trace.QueryPlanNode.SequenceNode sequence = 1;
*/
public Builder setSequence(mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode value) {
if (sequenceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
node_ = value;
onChanged();
} else {
sequenceBuilder_.setMessage(value);
}
nodeCase_ = 1;
return this;
}
/**
* .mdg.engine.proto.Trace.QueryPlanNode.SequenceNode sequence = 1;
*/
public Builder setSequence(
mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode.Builder builderForValue) {
if (sequenceBuilder_ == null) {
node_ = builderForValue.build();
onChanged();
} else {
sequenceBuilder_.setMessage(builderForValue.build());
}
nodeCase_ = 1;
return this;
}
/**
* .mdg.engine.proto.Trace.QueryPlanNode.SequenceNode sequence = 1;
*/
public Builder mergeSequence(mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode value) {
if (sequenceBuilder_ == null) {
if (nodeCase_ == 1 &&
node_ != mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode.getDefaultInstance()) {
node_ = mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode.newBuilder((mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode) node_)
.mergeFrom(value).buildPartial();
} else {
node_ = value;
}
onChanged();
} else {
if (nodeCase_ == 1) {
sequenceBuilder_.mergeFrom(value);
} else {
sequenceBuilder_.setMessage(value);
}
}
nodeCase_ = 1;
return this;
}
/**
* .mdg.engine.proto.Trace.QueryPlanNode.SequenceNode sequence = 1;
*/
public Builder clearSequence() {
if (sequenceBuilder_ == null) {
if (nodeCase_ == 1) {
nodeCase_ = 0;
node_ = null;
onChanged();
}
} else {
if (nodeCase_ == 1) {
nodeCase_ = 0;
node_ = null;
}
sequenceBuilder_.clear();
}
return this;
}
/**
* .mdg.engine.proto.Trace.QueryPlanNode.SequenceNode sequence = 1;
*/
public mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode.Builder getSequenceBuilder() {
return getSequenceFieldBuilder().getBuilder();
}
/**
* .mdg.engine.proto.Trace.QueryPlanNode.SequenceNode sequence = 1;
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNodeOrBuilder getSequenceOrBuilder() {
if ((nodeCase_ == 1) && (sequenceBuilder_ != null)) {
return sequenceBuilder_.getMessageOrBuilder();
} else {
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;
*/
private com.google.protobuf.SingleFieldBuilderV3<
mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode, mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode.Builder, mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNodeOrBuilder>
getSequenceFieldBuilder() {
if (sequenceBuilder_ == null) {
if (!(nodeCase_ == 1)) {
node_ = mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode.getDefaultInstance();
}
sequenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode, mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode.Builder, mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNodeOrBuilder>(
(mdg.engine.proto.Reports.Trace.QueryPlanNode.SequenceNode) node_,
getParentForChildren(),
isClean());
node_ = null;
}
nodeCase_ = 1;
onChanged();;
return sequenceBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode, mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode.Builder, mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNodeOrBuilder> parallelBuilder_;
/**
* .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 (parallelBuilder_ == null) {
if (nodeCase_ == 2) {
return (mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode) node_;
}
return mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode.getDefaultInstance();
} else {
if (nodeCase_ == 2) {
return parallelBuilder_.getMessage();
}
return mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode.getDefaultInstance();
}
}
/**
* .mdg.engine.proto.Trace.QueryPlanNode.ParallelNode parallel = 2;
*/
public Builder setParallel(mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode value) {
if (parallelBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
node_ = value;
onChanged();
} else {
parallelBuilder_.setMessage(value);
}
nodeCase_ = 2;
return this;
}
/**
* .mdg.engine.proto.Trace.QueryPlanNode.ParallelNode parallel = 2;
*/
public Builder setParallel(
mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode.Builder builderForValue) {
if (parallelBuilder_ == null) {
node_ = builderForValue.build();
onChanged();
} else {
parallelBuilder_.setMessage(builderForValue.build());
}
nodeCase_ = 2;
return this;
}
/**
* .mdg.engine.proto.Trace.QueryPlanNode.ParallelNode parallel = 2;
*/
public Builder mergeParallel(mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode value) {
if (parallelBuilder_ == null) {
if (nodeCase_ == 2 &&
node_ != mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode.getDefaultInstance()) {
node_ = mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode.newBuilder((mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode) node_)
.mergeFrom(value).buildPartial();
} else {
node_ = value;
}
onChanged();
} else {
if (nodeCase_ == 2) {
parallelBuilder_.mergeFrom(value);
} else {
parallelBuilder_.setMessage(value);
}
}
nodeCase_ = 2;
return this;
}
/**
* .mdg.engine.proto.Trace.QueryPlanNode.ParallelNode parallel = 2;
*/
public Builder clearParallel() {
if (parallelBuilder_ == null) {
if (nodeCase_ == 2) {
nodeCase_ = 0;
node_ = null;
onChanged();
}
} else {
if (nodeCase_ == 2) {
nodeCase_ = 0;
node_ = null;
}
parallelBuilder_.clear();
}
return this;
}
/**
* .mdg.engine.proto.Trace.QueryPlanNode.ParallelNode parallel = 2;
*/
public mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode.Builder getParallelBuilder() {
return getParallelFieldBuilder().getBuilder();
}
/**
* .mdg.engine.proto.Trace.QueryPlanNode.ParallelNode parallel = 2;
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNodeOrBuilder getParallelOrBuilder() {
if ((nodeCase_ == 2) && (parallelBuilder_ != null)) {
return parallelBuilder_.getMessageOrBuilder();
} else {
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;
*/
private com.google.protobuf.SingleFieldBuilderV3<
mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode, mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode.Builder, mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNodeOrBuilder>
getParallelFieldBuilder() {
if (parallelBuilder_ == null) {
if (!(nodeCase_ == 2)) {
node_ = mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode.getDefaultInstance();
}
parallelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode, mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode.Builder, mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNodeOrBuilder>(
(mdg.engine.proto.Reports.Trace.QueryPlanNode.ParallelNode) node_,
getParentForChildren(),
isClean());
node_ = null;
}
nodeCase_ = 2;
onChanged();;
return parallelBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode, mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode.Builder, mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNodeOrBuilder> fetchBuilder_;
/**
* .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 (fetchBuilder_ == null) {
if (nodeCase_ == 3) {
return (mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode) node_;
}
return mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode.getDefaultInstance();
} else {
if (nodeCase_ == 3) {
return fetchBuilder_.getMessage();
}
return mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode.getDefaultInstance();
}
}
/**
* .mdg.engine.proto.Trace.QueryPlanNode.FetchNode fetch = 3;
*/
public Builder setFetch(mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode value) {
if (fetchBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
node_ = value;
onChanged();
} else {
fetchBuilder_.setMessage(value);
}
nodeCase_ = 3;
return this;
}
/**
* .mdg.engine.proto.Trace.QueryPlanNode.FetchNode fetch = 3;
*/
public Builder setFetch(
mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode.Builder builderForValue) {
if (fetchBuilder_ == null) {
node_ = builderForValue.build();
onChanged();
} else {
fetchBuilder_.setMessage(builderForValue.build());
}
nodeCase_ = 3;
return this;
}
/**
* .mdg.engine.proto.Trace.QueryPlanNode.FetchNode fetch = 3;
*/
public Builder mergeFetch(mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode value) {
if (fetchBuilder_ == null) {
if (nodeCase_ == 3 &&
node_ != mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode.getDefaultInstance()) {
node_ = mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode.newBuilder((mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode) node_)
.mergeFrom(value).buildPartial();
} else {
node_ = value;
}
onChanged();
} else {
if (nodeCase_ == 3) {
fetchBuilder_.mergeFrom(value);
} else {
fetchBuilder_.setMessage(value);
}
}
nodeCase_ = 3;
return this;
}
/**
* .mdg.engine.proto.Trace.QueryPlanNode.FetchNode fetch = 3;
*/
public Builder clearFetch() {
if (fetchBuilder_ == null) {
if (nodeCase_ == 3) {
nodeCase_ = 0;
node_ = null;
onChanged();
}
} else {
if (nodeCase_ == 3) {
nodeCase_ = 0;
node_ = null;
}
fetchBuilder_.clear();
}
return this;
}
/**
* .mdg.engine.proto.Trace.QueryPlanNode.FetchNode fetch = 3;
*/
public mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode.Builder getFetchBuilder() {
return getFetchFieldBuilder().getBuilder();
}
/**
* .mdg.engine.proto.Trace.QueryPlanNode.FetchNode fetch = 3;
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNodeOrBuilder getFetchOrBuilder() {
if ((nodeCase_ == 3) && (fetchBuilder_ != null)) {
return fetchBuilder_.getMessageOrBuilder();
} else {
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;
*/
private com.google.protobuf.SingleFieldBuilderV3<
mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode, mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode.Builder, mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNodeOrBuilder>
getFetchFieldBuilder() {
if (fetchBuilder_ == null) {
if (!(nodeCase_ == 3)) {
node_ = mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode.getDefaultInstance();
}
fetchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode, mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode.Builder, mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNodeOrBuilder>(
(mdg.engine.proto.Reports.Trace.QueryPlanNode.FetchNode) node_,
getParentForChildren(),
isClean());
node_ = null;
}
nodeCase_ = 3;
onChanged();;
return fetchBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode, mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode.Builder, mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNodeOrBuilder> flattenBuilder_;
/**
* .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 (flattenBuilder_ == null) {
if (nodeCase_ == 4) {
return (mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode) node_;
}
return mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode.getDefaultInstance();
} else {
if (nodeCase_ == 4) {
return flattenBuilder_.getMessage();
}
return mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode.getDefaultInstance();
}
}
/**
* .mdg.engine.proto.Trace.QueryPlanNode.FlattenNode flatten = 4;
*/
public Builder setFlatten(mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode value) {
if (flattenBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
node_ = value;
onChanged();
} else {
flattenBuilder_.setMessage(value);
}
nodeCase_ = 4;
return this;
}
/**
* .mdg.engine.proto.Trace.QueryPlanNode.FlattenNode flatten = 4;
*/
public Builder setFlatten(
mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode.Builder builderForValue) {
if (flattenBuilder_ == null) {
node_ = builderForValue.build();
onChanged();
} else {
flattenBuilder_.setMessage(builderForValue.build());
}
nodeCase_ = 4;
return this;
}
/**
* .mdg.engine.proto.Trace.QueryPlanNode.FlattenNode flatten = 4;
*/
public Builder mergeFlatten(mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode value) {
if (flattenBuilder_ == null) {
if (nodeCase_ == 4 &&
node_ != mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode.getDefaultInstance()) {
node_ = mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode.newBuilder((mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode) node_)
.mergeFrom(value).buildPartial();
} else {
node_ = value;
}
onChanged();
} else {
if (nodeCase_ == 4) {
flattenBuilder_.mergeFrom(value);
} else {
flattenBuilder_.setMessage(value);
}
}
nodeCase_ = 4;
return this;
}
/**
* .mdg.engine.proto.Trace.QueryPlanNode.FlattenNode flatten = 4;
*/
public Builder clearFlatten() {
if (flattenBuilder_ == null) {
if (nodeCase_ == 4) {
nodeCase_ = 0;
node_ = null;
onChanged();
}
} else {
if (nodeCase_ == 4) {
nodeCase_ = 0;
node_ = null;
}
flattenBuilder_.clear();
}
return this;
}
/**
* .mdg.engine.proto.Trace.QueryPlanNode.FlattenNode flatten = 4;
*/
public mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode.Builder getFlattenBuilder() {
return getFlattenFieldBuilder().getBuilder();
}
/**
* .mdg.engine.proto.Trace.QueryPlanNode.FlattenNode flatten = 4;
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNodeOrBuilder getFlattenOrBuilder() {
if ((nodeCase_ == 4) && (flattenBuilder_ != null)) {
return flattenBuilder_.getMessageOrBuilder();
} else {
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;
*/
private com.google.protobuf.SingleFieldBuilderV3<
mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode, mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode.Builder, mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNodeOrBuilder>
getFlattenFieldBuilder() {
if (flattenBuilder_ == null) {
if (!(nodeCase_ == 4)) {
node_ = mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode.getDefaultInstance();
}
flattenBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode, mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode.Builder, mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNodeOrBuilder>(
(mdg.engine.proto.Reports.Trace.QueryPlanNode.FlattenNode) node_,
getParentForChildren(),
isClean());
node_ = null;
}
nodeCase_ = 4;
onChanged();;
return flattenBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:mdg.engine.proto.Trace.QueryPlanNode)
}
// @@protoc_insertion_point(class_scope:mdg.engine.proto.Trace.QueryPlanNode)
private static final mdg.engine.proto.Reports.Trace.QueryPlanNode DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new mdg.engine.proto.Reports.Trace.QueryPlanNode();
}
public static mdg.engine.proto.Reports.Trace.QueryPlanNode getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryPlanNode parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QueryPlanNode(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNode getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int START_TIME_FIELD_NUMBER = 4;
private com.google.protobuf.Timestamp startTime_;
/**
*
* Wallclock time when the trace began.
*
*
* .google.protobuf.Timestamp start_time = 4;
* @return Whether the startTime field is set.
*/
@java.lang.Override
public boolean hasStartTime() {
return startTime_ != null;
}
/**
*
* Wallclock time when the trace began.
*
*
* .google.protobuf.Timestamp start_time = 4;
* @return The startTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getStartTime() {
return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
}
/**
*
* Wallclock time when the trace began.
*
*
* .google.protobuf.Timestamp start_time = 4;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
return getStartTime();
}
public static final int END_TIME_FIELD_NUMBER = 3;
private com.google.protobuf.Timestamp endTime_;
/**
*
* Wallclock time when the trace ended.
*
*
* .google.protobuf.Timestamp end_time = 3;
* @return Whether the endTime field is set.
*/
@java.lang.Override
public boolean hasEndTime() {
return endTime_ != null;
}
/**
*
* Wallclock time when the trace ended.
*
*
* .google.protobuf.Timestamp end_time = 3;
* @return The endTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getEndTime() {
return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
}
/**
*
* Wallclock time when the trace ended.
*
*
* .google.protobuf.Timestamp end_time = 3;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
return getEndTime();
}
public static final int DURATION_NS_FIELD_NUMBER = 11;
private long durationNs_;
/**
*
* High precision duration of the trace; may not equal end_time-start_time
* (eg, if your machine's clock changed during the trace).
*
*
* uint64 duration_ns = 11;
* @return The durationNs.
*/
@java.lang.Override
public long getDurationNs() {
return durationNs_;
}
public static final int ROOT_FIELD_NUMBER = 14;
private mdg.engine.proto.Reports.Trace.Node root_;
/**
*
* A tree containing information about all resolvers run directly by this
* service, including errors.
*
*
* .mdg.engine.proto.Trace.Node root = 14;
* @return Whether the root field is set.
*/
@java.lang.Override
public boolean hasRoot() {
return root_ != null;
}
/**
*
* A tree containing information about all resolvers run directly by this
* service, including errors.
*
*
* .mdg.engine.proto.Trace.Node root = 14;
* @return The root.
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.Node getRoot() {
return root_ == null ? mdg.engine.proto.Reports.Trace.Node.getDefaultInstance() : root_;
}
/**
*
* 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 getRoot();
}
public static final int SIGNATURE_FIELD_NUMBER = 19;
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.
*
*
* string signature = 19;
* @return The signature.
*/
@java.lang.Override
public java.lang.String getSignature() {
java.lang.Object ref = signature_;
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();
signature_ = s;
return s;
}
}
/**
*
* 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 details_ != null;
}
/**
* .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 getDetails();
}
public static final int CLIENT_NAME_FIELD_NUMBER = 7;
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.
*
*
* string client_name = 7;
* @return The clientName.
*/
@java.lang.Override
public java.lang.String getClientName() {
java.lang.Object ref = clientName_;
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();
clientName_ = s;
return s;
}
}
/**
*
* 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;
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;
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;
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 http_ != null;
}
/**
* .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 getHttp();
}
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 cachePolicy_ != null;
}
/**
* .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 getCachePolicy();
}
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 queryPlan_ != null;
}
/**
*
* 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 The queryPlan.
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNode getQueryPlan() {
return queryPlan_ == null ? mdg.engine.proto.Reports.Trace.QueryPlanNode.getDefaultInstance() : 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;
*/
@java.lang.Override
public mdg.engine.proto.Reports.Trace.QueryPlanNodeOrBuilder getQueryPlanOrBuilder() {
return getQueryPlan();
}
public static final int FULL_QUERY_CACHE_HIT_FIELD_NUMBER = 20;
private boolean fullQueryCacheHit_;
/**
*
* 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_;
/**
*
* 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_;
/**
*
* 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_;
/**
*
* 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_;
/**
*
* 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 originReportedStartTime_ != null;
}
/**
*
* --------------------------------------------------------------
* Fields below this line are only set by the old Go engineproxy.
*
*
* .google.protobuf.Timestamp origin_reported_start_time = 15;
* @return The originReportedStartTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getOriginReportedStartTime() {
return originReportedStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : originReportedStartTime_;
}
/**
*
* --------------------------------------------------------------
* 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 getOriginReportedStartTime();
}
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 originReportedEndTime_ != null;
}
/**
* .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 getOriginReportedEndTime();
}
public static final int ORIGIN_REPORTED_DURATION_NS_FIELD_NUMBER = 17;
private long originReportedDurationNs_;
/**
* 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;
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.
*
*
* string legacy_signature_needs_resigning = 5;
* @return The legacySignatureNeedsResigning.
*/
@java.lang.Override
public java.lang.String getLegacySignatureNeedsResigning() {
java.lang.Object ref = legacySignatureNeedsResigning_;
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();
legacySignatureNeedsResigning_ = s;
return s;
}
}
/**
*
* 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 (endTime_ != null) {
output.writeMessage(3, getEndTime());
}
if (startTime_ != null) {
output.writeMessage(4, getStartTime());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(legacySignatureNeedsResigning_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, legacySignatureNeedsResigning_);
}
if (details_ != null) {
output.writeMessage(6, getDetails());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, clientName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientVersion_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, clientVersion_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientAddress_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, clientAddress_);
}
if (http_ != null) {
output.writeMessage(10, getHttp());
}
if (durationNs_ != 0L) {
output.writeUInt64(11, durationNs_);
}
if (root_ != null) {
output.writeMessage(14, getRoot());
}
if (originReportedStartTime_ != null) {
output.writeMessage(15, getOriginReportedStartTime());
}
if (originReportedEndTime_ != null) {
output.writeMessage(16, getOriginReportedEndTime());
}
if (originReportedDurationNs_ != 0L) {
output.writeUInt64(17, originReportedDurationNs_);
}
if (cachePolicy_ != null) {
output.writeMessage(18, getCachePolicy());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(signature_)) {
com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(clientReferenceId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 23, clientReferenceId_);
}
if (registeredOperation_ != false) {
output.writeBool(24, registeredOperation_);
}
if (forbiddenOperation_ != false) {
output.writeBool(25, forbiddenOperation_);
}
if (queryPlan_ != null) {
output.writeMessage(26, getQueryPlan());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (endTime_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getEndTime());
}
if (startTime_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getStartTime());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(legacySignatureNeedsResigning_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, legacySignatureNeedsResigning_);
}
if (details_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getDetails());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, clientName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientVersion_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, clientVersion_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientAddress_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, clientAddress_);
}
if (http_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getHttp());
}
if (durationNs_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(11, durationNs_);
}
if (root_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, getRoot());
}
if (originReportedStartTime_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, getOriginReportedStartTime());
}
if (originReportedEndTime_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(16, getOriginReportedEndTime());
}
if (originReportedDurationNs_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(17, originReportedDurationNs_);
}
if (cachePolicy_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(18, getCachePolicy());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(signature_)) {
size += com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(clientReferenceId_)) {
size += com.google.protobuf.GeneratedMessageV3.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 (queryPlan_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(26, getQueryPlan());
}
size += unknownFields.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 (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.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.GeneratedMessageV3
.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.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static mdg.engine.proto.Reports.Trace parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.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.GeneratedMessageV3
.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.GeneratedMessageV3
.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.GeneratedMessageV3
.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (startTimeBuilder_ == null) {
startTime_ = null;
} else {
startTime_ = null;
startTimeBuilder_ = null;
}
if (endTimeBuilder_ == null) {
endTime_ = null;
} else {
endTime_ = null;
endTimeBuilder_ = null;
}
durationNs_ = 0L;
if (rootBuilder_ == null) {
root_ = null;
} else {
root_ = null;
rootBuilder_ = null;
}
signature_ = "";
if (detailsBuilder_ == null) {
details_ = null;
} else {
details_ = null;
detailsBuilder_ = null;
}
clientName_ = "";
clientVersion_ = "";
clientAddress_ = "";
clientReferenceId_ = "";
if (httpBuilder_ == null) {
http_ = null;
} else {
http_ = null;
httpBuilder_ = null;
}
if (cachePolicyBuilder_ == null) {
cachePolicy_ = null;
} else {
cachePolicy_ = null;
cachePolicyBuilder_ = null;
}
if (queryPlanBuilder_ == null) {
queryPlan_ = null;
} else {
queryPlan_ = null;
queryPlanBuilder_ = null;
}
fullQueryCacheHit_ = false;
persistedQueryHit_ = false;
persistedQueryRegister_ = false;
registeredOperation_ = false;
forbiddenOperation_ = false;
if (originReportedStartTimeBuilder_ == null) {
originReportedStartTime_ = null;
} else {
originReportedStartTime_ = null;
originReportedStartTimeBuilder_ = null;
}
if (originReportedEndTimeBuilder_ == null) {
originReportedEndTime_ = null;
} else {
originReportedEndTime_ = null;
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 (startTimeBuilder_ == null) {
result.startTime_ = startTime_;
} else {
result.startTime_ = startTimeBuilder_.build();
}
if (endTimeBuilder_ == null) {
result.endTime_ = endTime_;
} else {
result.endTime_ = endTimeBuilder_.build();
}
result.durationNs_ = durationNs_;
if (rootBuilder_ == null) {
result.root_ = root_;
} else {
result.root_ = rootBuilder_.build();
}
result.signature_ = signature_;
if (detailsBuilder_ == null) {
result.details_ = details_;
} else {
result.details_ = detailsBuilder_.build();
}
result.clientName_ = clientName_;
result.clientVersion_ = clientVersion_;
result.clientAddress_ = clientAddress_;
result.clientReferenceId_ = clientReferenceId_;
if (httpBuilder_ == null) {
result.http_ = http_;
} else {
result.http_ = httpBuilder_.build();
}
if (cachePolicyBuilder_ == null) {
result.cachePolicy_ = cachePolicy_;
} else {
result.cachePolicy_ = cachePolicyBuilder_.build();
}
if (queryPlanBuilder_ == null) {
result.queryPlan_ = queryPlan_;
} else {
result.queryPlan_ = queryPlanBuilder_.build();
}
result.fullQueryCacheHit_ = fullQueryCacheHit_;
result.persistedQueryHit_ = persistedQueryHit_;
result.persistedQueryRegister_ = persistedQueryRegister_;
result.registeredOperation_ = registeredOperation_;
result.forbiddenOperation_ = forbiddenOperation_;
if (originReportedStartTimeBuilder_ == null) {
result.originReportedStartTime_ = originReportedStartTime_;
} else {
result.originReportedStartTime_ = originReportedStartTimeBuilder_.build();
}
if (originReportedEndTimeBuilder_ == null) {
result.originReportedEndTime_ = originReportedEndTime_;
} else {
result.originReportedEndTime_ = originReportedEndTimeBuilder_.build();
}
result.originReportedDurationNs_ = originReportedDurationNs_;
result.legacySignatureNeedsResigning_ = legacySignatureNeedsResigning_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof 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_;
onChanged();
}
if (other.hasDetails()) {
mergeDetails(other.getDetails());
}
if (!other.getClientName().isEmpty()) {
clientName_ = other.clientName_;
onChanged();
}
if (!other.getClientVersion().isEmpty()) {
clientVersion_ = other.clientVersion_;
onChanged();
}
if (!other.getClientAddress().isEmpty()) {
clientAddress_ = other.clientAddress_;
onChanged();
}
if (!other.getClientReferenceId().isEmpty()) {
clientReferenceId_ = other.clientReferenceId_;
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_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
mdg.engine.proto.Reports.Trace parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (mdg.engine.proto.Reports.Trace) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.Timestamp startTime_;
private com.google.protobuf.SingleFieldBuilderV3<
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 startTimeBuilder_ != null || startTime_ != null;
}
/**
*
* Wallclock time when the trace began.
*
*
* .google.protobuf.Timestamp start_time = 4;
* @return The startTime.
*/
public com.google.protobuf.Timestamp getStartTime() {
if (startTimeBuilder_ == null) {
return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
} else {
return startTimeBuilder_.getMessage();
}
}
/**
*
* Wallclock time when the trace began.
*
*
* .google.protobuf.Timestamp start_time = 4;
*/
public Builder setStartTime(com.google.protobuf.Timestamp value) {
if (startTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
startTime_ = value;
onChanged();
} else {
startTimeBuilder_.setMessage(value);
}
return this;
}
/**
*
* Wallclock time when the trace began.
*
*
* .google.protobuf.Timestamp start_time = 4;
*/
public Builder setStartTime(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (startTimeBuilder_ == null) {
startTime_ = builderForValue.build();
onChanged();
} else {
startTimeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Wallclock time when the trace began.
*
*
* .google.protobuf.Timestamp start_time = 4;
*/
public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
if (startTimeBuilder_ == null) {
if (startTime_ != null) {
startTime_ =
com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial();
} else {
startTime_ = value;
}
onChanged();
} else {
startTimeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Wallclock time when the trace began.
*
*
* .google.protobuf.Timestamp start_time = 4;
*/
public Builder clearStartTime() {
if (startTimeBuilder_ == null) {
startTime_ = null;
onChanged();
} else {
startTime_ = null;
startTimeBuilder_ = null;
}
return this;
}
/**
*
* Wallclock time when the trace began.
*
*
* .google.protobuf.Timestamp start_time = 4;
*/
public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
onChanged();
return getStartTimeFieldBuilder().getBuilder();
}
/**
*
* Wallclock time when the trace began.
*
*
* .google.protobuf.Timestamp start_time = 4;
*/
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
if (startTimeBuilder_ != null) {
return startTimeBuilder_.getMessageOrBuilder();
} else {
return startTime_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
}
}
/**
*
* Wallclock time when the trace began.
*
*
* .google.protobuf.Timestamp start_time = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getStartTimeFieldBuilder() {
if (startTimeBuilder_ == null) {
startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getStartTime(),
getParentForChildren(),
isClean());
startTime_ = null;
}
return startTimeBuilder_;
}
private com.google.protobuf.Timestamp endTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_;
/**
*
* Wallclock time when the trace ended.
*
*
* .google.protobuf.Timestamp end_time = 3;
* @return Whether the endTime field is set.
*/
public boolean hasEndTime() {
return endTimeBuilder_ != null || endTime_ != null;
}
/**
*
* Wallclock time when the trace ended.
*
*
* .google.protobuf.Timestamp end_time = 3;
* @return The endTime.
*/
public com.google.protobuf.Timestamp getEndTime() {
if (endTimeBuilder_ == null) {
return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
} else {
return endTimeBuilder_.getMessage();
}
}
/**
*
* Wallclock time when the trace ended.
*
*
* .google.protobuf.Timestamp end_time = 3;
*/
public Builder setEndTime(com.google.protobuf.Timestamp value) {
if (endTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
endTime_ = value;
onChanged();
} else {
endTimeBuilder_.setMessage(value);
}
return this;
}
/**
*
* Wallclock time when the trace ended.
*
*
* .google.protobuf.Timestamp end_time = 3;
*/
public Builder setEndTime(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (endTimeBuilder_ == null) {
endTime_ = builderForValue.build();
onChanged();
} else {
endTimeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Wallclock time when the trace ended.
*
*
* .google.protobuf.Timestamp end_time = 3;
*/
public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
if (endTimeBuilder_ == null) {
if (endTime_ != null) {
endTime_ =
com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
} else {
endTime_ = value;
}
onChanged();
} else {
endTimeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Wallclock time when the trace ended.
*
*
* .google.protobuf.Timestamp end_time = 3;
*/
public Builder clearEndTime() {
if (endTimeBuilder_ == null) {
endTime_ = null;
onChanged();
} else {
endTime_ = null;
endTimeBuilder_ = null;
}
return this;
}
/**
*
* Wallclock time when the trace ended.
*
*
* .google.protobuf.Timestamp end_time = 3;
*/
public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
onChanged();
return getEndTimeFieldBuilder().getBuilder();
}
/**
*
* Wallclock time when the trace ended.
*
*
* .google.protobuf.Timestamp end_time = 3;
*/
public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
if (endTimeBuilder_ != null) {
return endTimeBuilder_.getMessageOrBuilder();
} else {
return endTime_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
}
}
/**
*
* Wallclock time when the trace ended.
*
*
* .google.protobuf.Timestamp end_time = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getEndTimeFieldBuilder() {
if (endTimeBuilder_ == null) {
endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getEndTime(),
getParentForChildren(),
isClean());
endTime_ = null;
}
return endTimeBuilder_;
}
private long durationNs_ ;
/**
*
* High precision duration of the trace; may not equal end_time-start_time
* (eg, if your machine's clock changed during the trace).
*
*
* uint64 duration_ns = 11;
* @return The durationNs.
*/
@java.lang.Override
public long getDurationNs() {
return durationNs_;
}
/**
*
* High precision duration of the trace; may not equal end_time-start_time
* (eg, if your machine's clock changed during the trace).
*
*
* uint64 duration_ns = 11;
* @param value The durationNs to set.
* @return This builder for chaining.
*/
public Builder setDurationNs(long value) {
durationNs_ = value;
onChanged();
return this;
}
/**
*
* High precision duration of the trace; may not equal end_time-start_time
* (eg, if your machine's clock changed during the trace).
*
*
* uint64 duration_ns = 11;
* @return This builder for chaining.
*/
public Builder clearDurationNs() {
durationNs_ = 0L;
onChanged();
return this;
}
private mdg.engine.proto.Reports.Trace.Node root_;
private com.google.protobuf.SingleFieldBuilderV3<
mdg.engine.proto.Reports.Trace.Node, mdg.engine.proto.Reports.Trace.Node.Builder, mdg.engine.proto.Reports.Trace.NodeOrBuilder> rootBuilder_;
/**
*
* A tree containing information about all resolvers run directly by this
* service, including errors.
*
*
* .mdg.engine.proto.Trace.Node root = 14;
* @return Whether the root field is set.
*/
public boolean hasRoot() {
return rootBuilder_ != null || root_ != null;
}
/**
*
* A tree containing information about all resolvers run directly by this
* service, including errors.
*
*
* .mdg.engine.proto.Trace.Node root = 14;
* @return The root.
*/
public mdg.engine.proto.Reports.Trace.Node getRoot() {
if (rootBuilder_ == null) {
return root_ == null ? mdg.engine.proto.Reports.Trace.Node.getDefaultInstance() : root_;
} else {
return rootBuilder_.getMessage();
}
}
/**
*
* A tree containing information about all resolvers run directly by this
* service, including errors.
*
*
* .mdg.engine.proto.Trace.Node root = 14;
*/
public Builder setRoot(mdg.engine.proto.Reports.Trace.Node value) {
if (rootBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
root_ = value;
onChanged();
} else {
rootBuilder_.setMessage(value);
}
return this;
}
/**
*
* A tree containing information about all resolvers run directly by this
* service, including errors.
*
*
* .mdg.engine.proto.Trace.Node root = 14;
*/
public Builder setRoot(
mdg.engine.proto.Reports.Trace.Node.Builder builderForValue) {
if (rootBuilder_ == null) {
root_ = builderForValue.build();
onChanged();
} else {
rootBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* A tree containing information about all resolvers run directly by this
* service, including errors.
*
*
* .mdg.engine.proto.Trace.Node root = 14;
*/
public Builder mergeRoot(mdg.engine.proto.Reports.Trace.Node value) {
if (rootBuilder_ == null) {
if (root_ != null) {
root_ =
mdg.engine.proto.Reports.Trace.Node.newBuilder(root_).mergeFrom(value).buildPartial();
} else {
root_ = value;
}
onChanged();
} else {
rootBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* A tree containing information about all resolvers run directly by this
* service, including errors.
*
*
* .mdg.engine.proto.Trace.Node root = 14;
*/
public Builder clearRoot() {
if (rootBuilder_ == null) {
root_ = null;
onChanged();
} else {
root_ = null;
rootBuilder_ = null;
}
return this;
}
/**
*
* A tree containing information about all resolvers run directly by this
* service, including errors.
*
*
* .mdg.engine.proto.Trace.Node root = 14;
*/
public mdg.engine.proto.Reports.Trace.Node.Builder getRootBuilder() {
onChanged();
return getRootFieldBuilder().getBuilder();
}
/**
*
* A tree containing information about all resolvers run directly by this
* service, including errors.
*
*
* .mdg.engine.proto.Trace.Node root = 14;
*/
public mdg.engine.proto.Reports.Trace.NodeOrBuilder getRootOrBuilder() {
if (rootBuilder_ != null) {
return rootBuilder_.getMessageOrBuilder();
} else {
return root_ == null ?
mdg.engine.proto.Reports.Trace.Node.getDefaultInstance() : root_;
}
}
/**
*
* A tree containing information about all resolvers run directly by this
* service, including errors.
*
*
* .mdg.engine.proto.Trace.Node root = 14;
*/
private com.google.protobuf.SingleFieldBuilderV3<
mdg.engine.proto.Reports.Trace.Node, mdg.engine.proto.Reports.Trace.Node.Builder, mdg.engine.proto.Reports.Trace.NodeOrBuilder>
getRootFieldBuilder() {
if (rootBuilder_ == null) {
rootBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
mdg.engine.proto.Reports.Trace.Node, mdg.engine.proto.Reports.Trace.Node.Builder, mdg.engine.proto.Reports.Trace.NodeOrBuilder>(
getRoot(),
getParentForChildren(),
isClean());
root_ = null;
}
return rootBuilder_;
}
private 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.
*
*
* string signature = 19;
* @return The signature.
*/
public java.lang.String getSignature() {
java.lang.Object ref = signature_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
signature_ = s;
return s;
} else {
return (java.lang.String) 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;
* @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;
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.
*
*
* string signature = 19;
* @return This builder for chaining.
*/
public Builder clearSignature() {
signature_ = getDefaultInstance().getSignature();
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.
*
*
* string signature = 19;
* @param value The bytes for signature to set.
* @return This builder for chaining.
*/
public Builder setSignatureBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
signature_ = value;
onChanged();
return this;
}
private mdg.engine.proto.Reports.Trace.Details details_;
private com.google.protobuf.SingleFieldBuilderV3<
mdg.engine.proto.Reports.Trace.Details, mdg.engine.proto.Reports.Trace.Details.Builder, mdg.engine.proto.Reports.Trace.DetailsOrBuilder> detailsBuilder_;
/**
* .mdg.engine.proto.Trace.Details details = 6;
* @return Whether the details field is set.
*/
public boolean hasDetails() {
return detailsBuilder_ != null || details_ != null;
}
/**
* .mdg.engine.proto.Trace.Details details = 6;
* @return The details.
*/
public mdg.engine.proto.Reports.Trace.Details getDetails() {
if (detailsBuilder_ == null) {
return details_ == null ? mdg.engine.proto.Reports.Trace.Details.getDefaultInstance() : details_;
} else {
return detailsBuilder_.getMessage();
}
}
/**
* .mdg.engine.proto.Trace.Details details = 6;
*/
public Builder setDetails(mdg.engine.proto.Reports.Trace.Details value) {
if (detailsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
details_ = value;
onChanged();
} else {
detailsBuilder_.setMessage(value);
}
return this;
}
/**
* .mdg.engine.proto.Trace.Details details = 6;
*/
public Builder setDetails(
mdg.engine.proto.Reports.Trace.Details.Builder builderForValue) {
if (detailsBuilder_ == null) {
details_ = builderForValue.build();
onChanged();
} else {
detailsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .mdg.engine.proto.Trace.Details details = 6;
*/
public Builder mergeDetails(mdg.engine.proto.Reports.Trace.Details value) {
if (detailsBuilder_ == null) {
if (details_ != null) {
details_ =
mdg.engine.proto.Reports.Trace.Details.newBuilder(details_).mergeFrom(value).buildPartial();
} else {
details_ = value;
}
onChanged();
} else {
detailsBuilder_.mergeFrom(value);
}
return this;
}
/**
* .mdg.engine.proto.Trace.Details details = 6;
*/
public Builder clearDetails() {
if (detailsBuilder_ == null) {
details_ = null;
onChanged();
} else {
details_ = null;
detailsBuilder_ = null;
}
return this;
}
/**
* .mdg.engine.proto.Trace.Details details = 6;
*/
public mdg.engine.proto.Reports.Trace.Details.Builder getDetailsBuilder() {
onChanged();
return getDetailsFieldBuilder().getBuilder();
}
/**
* .mdg.engine.proto.Trace.Details details = 6;
*/
public mdg.engine.proto.Reports.Trace.DetailsOrBuilder getDetailsOrBuilder() {
if (detailsBuilder_ != null) {
return detailsBuilder_.getMessageOrBuilder();
} else {
return details_ == null ?
mdg.engine.proto.Reports.Trace.Details.getDefaultInstance() : details_;
}
}
/**
* .mdg.engine.proto.Trace.Details details = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
mdg.engine.proto.Reports.Trace.Details, mdg.engine.proto.Reports.Trace.Details.Builder, mdg.engine.proto.Reports.Trace.DetailsOrBuilder>
getDetailsFieldBuilder() {
if (detailsBuilder_ == null) {
detailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
mdg.engine.proto.Reports.Trace.Details, mdg.engine.proto.Reports.Trace.Details.Builder, mdg.engine.proto.Reports.Trace.DetailsOrBuilder>(
getDetails(),
getParentForChildren(),
isClean());
details_ = null;
}
return detailsBuilder_;
}
private 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.
*
*
* string client_name = 7;
* @return The clientName.
*/
public java.lang.String getClientName() {
java.lang.Object ref = clientName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
clientName_ = s;
return s;
} else {
return (java.lang.String) 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;
* @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;
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.
*
*
* string client_name = 7;
* @return This builder for chaining.
*/
public Builder clearClientName() {
clientName_ = getDefaultInstance().getClientName();
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.
*
*
* 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;
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;
onChanged();
return this;
}
/**
* string client_version = 8;
* @return This builder for chaining.
*/
public Builder clearClientVersion() {
clientVersion_ = getDefaultInstance().getClientVersion();
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;
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;
onChanged();
return this;
}
/**
* string client_address = 9;
* @return This builder for chaining.
*/
public Builder clearClientAddress() {
clientAddress_ = getDefaultInstance().getClientAddress();
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;
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;
onChanged();
return this;
}
/**
* string client_reference_id = 23;
* @return This builder for chaining.
*/
public Builder clearClientReferenceId() {
clientReferenceId_ = getDefaultInstance().getClientReferenceId();
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;
onChanged();
return this;
}
private mdg.engine.proto.Reports.Trace.HTTP http_;
private com.google.protobuf.SingleFieldBuilderV3<
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 httpBuilder_ != null || http_ != null;
}
/**
* .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;
onChanged();
} else {
httpBuilder_.setMessage(value);
}
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();
onChanged();
} else {
httpBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .mdg.engine.proto.Trace.HTTP http = 10;
*/
public Builder mergeHttp(mdg.engine.proto.Reports.Trace.HTTP value) {
if (httpBuilder_ == null) {
if (http_ != null) {
http_ =
mdg.engine.proto.Reports.Trace.HTTP.newBuilder(http_).mergeFrom(value).buildPartial();
} else {
http_ = value;
}
onChanged();
} else {
httpBuilder_.mergeFrom(value);
}
return this;
}
/**
* .mdg.engine.proto.Trace.HTTP http = 10;
*/
public Builder clearHttp() {
if (httpBuilder_ == null) {
http_ = null;
onChanged();
} else {
http_ = null;
httpBuilder_ = null;
}
return this;
}
/**
* .mdg.engine.proto.Trace.HTTP http = 10;
*/
public mdg.engine.proto.Reports.Trace.HTTP.Builder getHttpBuilder() {
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.SingleFieldBuilderV3<
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.SingleFieldBuilderV3<
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.SingleFieldBuilderV3<
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 cachePolicyBuilder_ != null || cachePolicy_ != null;
}
/**
* .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;
onChanged();
} else {
cachePolicyBuilder_.setMessage(value);
}
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();
onChanged();
} else {
cachePolicyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .mdg.engine.proto.Trace.CachePolicy cache_policy = 18;
*/
public Builder mergeCachePolicy(mdg.engine.proto.Reports.Trace.CachePolicy value) {
if (cachePolicyBuilder_ == null) {
if (cachePolicy_ != null) {
cachePolicy_ =
mdg.engine.proto.Reports.Trace.CachePolicy.newBuilder(cachePolicy_).mergeFrom(value).buildPartial();
} else {
cachePolicy_ = value;
}
onChanged();
} else {
cachePolicyBuilder_.mergeFrom(value);
}
return this;
}
/**
* .mdg.engine.proto.Trace.CachePolicy cache_policy = 18;
*/
public Builder clearCachePolicy() {
if (cachePolicyBuilder_ == null) {
cachePolicy_ = null;
onChanged();
} else {
cachePolicy_ = null;
cachePolicyBuilder_ = null;
}
return this;
}
/**
* .mdg.engine.proto.Trace.CachePolicy cache_policy = 18;
*/
public mdg.engine.proto.Reports.Trace.CachePolicy.Builder getCachePolicyBuilder() {
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.SingleFieldBuilderV3<
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.SingleFieldBuilderV3<
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.SingleFieldBuilderV3<
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 queryPlanBuilder_ != null || queryPlan_ != null;
}
/**
*
* 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 The queryPlan.
*/
public mdg.engine.proto.Reports.Trace.QueryPlanNode getQueryPlan() {
if (queryPlanBuilder_ == null) {
return queryPlan_ == null ? mdg.engine.proto.Reports.Trace.QueryPlanNode.getDefaultInstance() : queryPlan_;
} else {
return queryPlanBuilder_.getMessage();
}
}
/**
*
* 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;
*/
public Builder setQueryPlan(mdg.engine.proto.Reports.Trace.QueryPlanNode value) {
if (queryPlanBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
queryPlan_ = value;
onChanged();
} else {
queryPlanBuilder_.setMessage(value);
}
return this;
}
/**
*
* 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;
*/
public Builder setQueryPlan(
mdg.engine.proto.Reports.Trace.QueryPlanNode.Builder builderForValue) {
if (queryPlanBuilder_ == null) {
queryPlan_ = builderForValue.build();
onChanged();
} else {
queryPlanBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* 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;
*/
public Builder mergeQueryPlan(mdg.engine.proto.Reports.Trace.QueryPlanNode value) {
if (queryPlanBuilder_ == null) {
if (queryPlan_ != null) {
queryPlan_ =
mdg.engine.proto.Reports.Trace.QueryPlanNode.newBuilder(queryPlan_).mergeFrom(value).buildPartial();
} else {
queryPlan_ = value;
}
onChanged();
} else {
queryPlanBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* 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;
*/
public Builder clearQueryPlan() {
if (queryPlanBuilder_ == null) {
queryPlan_ = null;
onChanged();
} else {
queryPlan_ = null;
queryPlanBuilder_ = null;
}
return this;
}
/**
*
* 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;
*/
public mdg.engine.proto.Reports.Trace.QueryPlanNode.Builder getQueryPlanBuilder() {
onChanged();
return getQueryPlanFieldBuilder().getBuilder();
}
/**
*
* 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;
*/
public mdg.engine.proto.Reports.Trace.QueryPlanNodeOrBuilder getQueryPlanOrBuilder() {
if (queryPlanBuilder_ != null) {
return queryPlanBuilder_.getMessageOrBuilder();
} else {
return queryPlan_ == null ?
mdg.engine.proto.Reports.Trace.QueryPlanNode.getDefaultInstance() : 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;
*/
private com.google.protobuf.SingleFieldBuilderV3<
mdg.engine.proto.Reports.Trace.QueryPlanNode, mdg.engine.proto.Reports.Trace.QueryPlanNode.Builder, mdg.engine.proto.Reports.Trace.QueryPlanNodeOrBuilder>
getQueryPlanFieldBuilder() {
if (queryPlanBuilder_ == null) {
queryPlanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
mdg.engine.proto.Reports.Trace.QueryPlanNode, mdg.engine.proto.Reports.Trace.QueryPlanNode.Builder, mdg.engine.proto.Reports.Trace.QueryPlanNodeOrBuilder>(
getQueryPlan(),
getParentForChildren(),
isClean());
queryPlan_ = null;
}
return queryPlanBuilder_;
}
private boolean fullQueryCacheHit_ ;
/**
*
* 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_;
}
/**
*
* 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;
* @param value The fullQueryCacheHit to set.
* @return This builder for chaining.
*/
public Builder setFullQueryCacheHit(boolean value) {
fullQueryCacheHit_ = value;
onChanged();
return this;
}
/**
*
* 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 This builder for chaining.
*/
public Builder clearFullQueryCacheHit() {
fullQueryCacheHit_ = false;
onChanged();
return this;
}
private boolean persistedQueryHit_ ;
/**
*
* 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_;
}
/**
*
* Was this query specified successfully as a persisted query hash?
*
*
* bool persisted_query_hit = 21;
* @param value The persistedQueryHit to set.
* @return This builder for chaining.
*/
public Builder setPersistedQueryHit(boolean value) {
persistedQueryHit_ = value;
onChanged();
return this;
}
/**
*
* Was this query specified successfully as a persisted query hash?
*
*
* bool persisted_query_hit = 21;
* @return This builder for chaining.
*/
public Builder clearPersistedQueryHit() {
persistedQueryHit_ = false;
onChanged();
return this;
}
private boolean persistedQueryRegister_ ;
/**
*
* 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_;
}
/**
*
* 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;
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.)
*
*
* bool persisted_query_register = 22;
* @return This builder for chaining.
*/
public Builder clearPersistedQueryRegister() {
persistedQueryRegister_ = false;
onChanged();
return this;
}
private boolean registeredOperation_ ;
/**
*
* 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_;
}
/**
*
* Was this operation registered and a part of the safelist?
*
*
* bool registered_operation = 24;
* @param value The registeredOperation to set.
* @return This builder for chaining.
*/
public Builder setRegisteredOperation(boolean value) {
registeredOperation_ = value;
onChanged();
return this;
}
/**
*
* Was this operation registered and a part of the safelist?
*
*
* bool registered_operation = 24;
* @return This builder for chaining.
*/
public Builder clearRegisteredOperation() {
registeredOperation_ = false;
onChanged();
return this;
}
private boolean forbiddenOperation_ ;
/**
*
* Was this operation forbidden due to lack of safelisting?
*
*
* bool forbidden_operation = 25;
* @return The forbiddenOperation.
*/
@java.lang.Override
public boolean getForbiddenOperation() {
return forbiddenOperation_;
}
/**
*
* Was this operation forbidden due to lack of safelisting?
*
*
* bool forbidden_operation = 25;
* @param value The forbiddenOperation to set.
* @return This builder for chaining.
*/
public Builder setForbiddenOperation(boolean value) {
forbiddenOperation_ = value;
onChanged();
return this;
}
/**
*
* Was this operation forbidden due to lack of safelisting?
*
*
* bool forbidden_operation = 25;
* @return This builder for chaining.
*/
public Builder clearForbiddenOperation() {
forbiddenOperation_ = false;
onChanged();
return this;
}
private com.google.protobuf.Timestamp originReportedStartTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> originReportedStartTimeBuilder_;
/**
*
* --------------------------------------------------------------
* 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.
*/
public boolean hasOriginReportedStartTime() {
return originReportedStartTimeBuilder_ != null || originReportedStartTime_ != null;
}
/**
*
* --------------------------------------------------------------
* Fields below this line are only set by the old Go engineproxy.
*
*
* .google.protobuf.Timestamp origin_reported_start_time = 15;
* @return The originReportedStartTime.
*/
public com.google.protobuf.Timestamp getOriginReportedStartTime() {
if (originReportedStartTimeBuilder_ == null) {
return originReportedStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : originReportedStartTime_;
} else {
return originReportedStartTimeBuilder_.getMessage();
}
}
/**
*
* --------------------------------------------------------------
* Fields below this line are only set by the old Go engineproxy.
*
*
* .google.protobuf.Timestamp origin_reported_start_time = 15;
*/
public Builder setOriginReportedStartTime(com.google.protobuf.Timestamp value) {
if (originReportedStartTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
originReportedStartTime_ = value;
onChanged();
} else {
originReportedStartTimeBuilder_.setMessage(value);
}
return this;
}
/**
*
* --------------------------------------------------------------
* Fields below this line are only set by the old Go engineproxy.
*
*
* .google.protobuf.Timestamp origin_reported_start_time = 15;
*/
public Builder setOriginReportedStartTime(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (originReportedStartTimeBuilder_ == null) {
originReportedStartTime_ = builderForValue.build();
onChanged();
} else {
originReportedStartTimeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* --------------------------------------------------------------
* Fields below this line are only set by the old Go engineproxy.
*
*
* .google.protobuf.Timestamp origin_reported_start_time = 15;
*/
public Builder mergeOriginReportedStartTime(com.google.protobuf.Timestamp value) {
if (originReportedStartTimeBuilder_ == null) {
if (originReportedStartTime_ != null) {
originReportedStartTime_ =
com.google.protobuf.Timestamp.newBuilder(originReportedStartTime_).mergeFrom(value).buildPartial();
} else {
originReportedStartTime_ = value;
}
onChanged();
} else {
originReportedStartTimeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* --------------------------------------------------------------
* Fields below this line are only set by the old Go engineproxy.
*
*
* .google.protobuf.Timestamp origin_reported_start_time = 15;
*/
public Builder clearOriginReportedStartTime() {
if (originReportedStartTimeBuilder_ == null) {
originReportedStartTime_ = null;
onChanged();
} else {
originReportedStartTime_ = null;
originReportedStartTimeBuilder_ = null;
}
return this;
}
/**
*
* --------------------------------------------------------------
* Fields below this line are only set by the old Go engineproxy.
*
*
* .google.protobuf.Timestamp origin_reported_start_time = 15;
*/
public com.google.protobuf.Timestamp.Builder getOriginReportedStartTimeBuilder() {
onChanged();
return getOriginReportedStartTimeFieldBuilder().getBuilder();
}
/**
*
* --------------------------------------------------------------
* Fields below this line are only set by the old Go engineproxy.
*
*
* .google.protobuf.Timestamp origin_reported_start_time = 15;
*/
public com.google.protobuf.TimestampOrBuilder getOriginReportedStartTimeOrBuilder() {
if (originReportedStartTimeBuilder_ != null) {
return originReportedStartTimeBuilder_.getMessageOrBuilder();
} else {
return originReportedStartTime_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : originReportedStartTime_;
}
}
/**
*
* --------------------------------------------------------------
* Fields below this line are only set by the old Go engineproxy.
*
*
* .google.protobuf.Timestamp origin_reported_start_time = 15;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getOriginReportedStartTimeFieldBuilder() {
if (originReportedStartTimeBuilder_ == null) {
originReportedStartTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getOriginReportedStartTime(),
getParentForChildren(),
isClean());
originReportedStartTime_ = null;
}
return originReportedStartTimeBuilder_;
}
private com.google.protobuf.Timestamp originReportedEndTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> originReportedEndTimeBuilder_;
/**
* .google.protobuf.Timestamp origin_reported_end_time = 16;
* @return Whether the originReportedEndTime field is set.
*/
public boolean hasOriginReportedEndTime() {
return originReportedEndTimeBuilder_ != null || originReportedEndTime_ != null;
}
/**
* .google.protobuf.Timestamp origin_reported_end_time = 16;
* @return The originReportedEndTime.
*/
public com.google.protobuf.Timestamp getOriginReportedEndTime() {
if (originReportedEndTimeBuilder_ == null) {
return originReportedEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : originReportedEndTime_;
} else {
return originReportedEndTimeBuilder_.getMessage();
}
}
/**
* .google.protobuf.Timestamp origin_reported_end_time = 16;
*/
public Builder setOriginReportedEndTime(com.google.protobuf.Timestamp value) {
if (originReportedEndTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
originReportedEndTime_ = value;
onChanged();
} else {
originReportedEndTimeBuilder_.setMessage(value);
}
return this;
}
/**
* .google.protobuf.Timestamp origin_reported_end_time = 16;
*/
public Builder setOriginReportedEndTime(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (originReportedEndTimeBuilder_ == null) {
originReportedEndTime_ = builderForValue.build();
onChanged();
} else {
originReportedEndTimeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .google.protobuf.Timestamp origin_reported_end_time = 16;
*/
public Builder mergeOriginReportedEndTime(com.google.protobuf.Timestamp value) {
if (originReportedEndTimeBuilder_ == null) {
if (originReportedEndTime_ != null) {
originReportedEndTime_ =
com.google.protobuf.Timestamp.newBuilder(originReportedEndTime_).mergeFrom(value).buildPartial();
} else {
originReportedEndTime_ = value;
}
onChanged();
} else {
originReportedEndTimeBuilder_.mergeFrom(value);
}
return this;
}
/**
* .google.protobuf.Timestamp origin_reported_end_time = 16;
*/
public Builder clearOriginReportedEndTime() {
if (originReportedEndTimeBuilder_ == null) {
originReportedEndTime_ = null;
onChanged();
} else {
originReportedEndTime_ = null;
originReportedEndTimeBuilder_ = null;
}
return this;
}
/**
* .google.protobuf.Timestamp origin_reported_end_time = 16;
*/
public com.google.protobuf.Timestamp.Builder getOriginReportedEndTimeBuilder() {
onChanged();
return getOriginReportedEndTimeFieldBuilder().getBuilder();
}
/**
* .google.protobuf.Timestamp origin_reported_end_time = 16;
*/
public com.google.protobuf.TimestampOrBuilder getOriginReportedEndTimeOrBuilder() {
if (originReportedEndTimeBuilder_ != null) {
return originReportedEndTimeBuilder_.getMessageOrBuilder();
} else {
return originReportedEndTime_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : originReportedEndTime_;
}
}
/**
* .google.protobuf.Timestamp origin_reported_end_time = 16;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getOriginReportedEndTimeFieldBuilder() {
if (originReportedEndTimeBuilder_ == null) {
originReportedEndTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getOriginReportedEndTime(),
getParentForChildren(),
isClean());
originReportedEndTime_ = null;
}
return originReportedEndTimeBuilder_;
}
private long originReportedDurationNs_ ;
/**
* uint64 origin_reported_duration_ns = 17;
* @return The originReportedDurationNs.
*/
@java.lang.Override
public long getOriginReportedDurationNs() {
return originReportedDurationNs_;
}
/**
* uint64 origin_reported_duration_ns = 17;
* @param value The originReportedDurationNs to set.
* @return This builder for chaining.
*/
public Builder setOriginReportedDurationNs(long value) {
originReportedDurationNs_ = value;
onChanged();
return this;
}
/**
* uint64 origin_reported_duration_ns = 17;
* @return This builder for chaining.
*/
public Builder clearOriginReportedDurationNs() {
originReportedDurationNs_ = 0L;
onChanged();
return this;
}
private 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.
*
*
* string legacy_signature_needs_resigning = 5;
* @return The legacySignatureNeedsResigning.
*/
public java.lang.String getLegacySignatureNeedsResigning() {
java.lang.Object ref = legacySignatureNeedsResigning_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
legacySignatureNeedsResigning_ = s;
return s;
} else {
return (java.lang.String) 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;
* @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;
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.
*
*
* string legacy_signature_needs_resigning = 5;
* @return This builder for chaining.
*/
public Builder clearLegacySignatureNeedsResigning() {
legacySignatureNeedsResigning_ = getDefaultInstance().getLegacySignatureNeedsResigning();
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.
*
*
* 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;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope: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 {
return new Trace(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public 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();
/**
*
* eg "host-01.example.com"
*
*
* string hostname = 5;
* @return The hostname.
*/
java.lang.String getHostname();
/**
*
* eg "host-01.example.com"
*
*
* string hostname = 5;
* @return The bytes for hostname.
*/
com.google.protobuf.ByteString
getHostnameBytes();
/**
*
* eg "engineproxy 0.1.0"
*
*
* string agent_version = 6;
* @return The agentVersion.
*/
java.lang.String getAgentVersion();
/**
*
* eg "engineproxy 0.1.0"
*
*
* string agent_version = 6;
* @return The bytes for agentVersion.
*/
com.google.protobuf.ByteString
getAgentVersionBytes();
/**
*
* eg "prod-4279-20160804T065423Z-5-g3cf0aa8" (taken from `git describe --tags`)
*
*
* string service_version = 7;
* @return The serviceVersion.
*/
java.lang.String getServiceVersion();
/**
*
* eg "prod-4279-20160804T065423Z-5-g3cf0aa8" (taken from `git describe --tags`)
*
*
* string service_version = 7;
* @return The bytes for serviceVersion.
*/
com.google.protobuf.ByteString
getServiceVersionBytes();
/**
*
* eg "node v4.6.0"
*
*
* string runtime_version = 8;
* @return The runtimeVersion.
*/
java.lang.String getRuntimeVersion();
/**
*
* eg "node v4.6.0"
*
*
* string runtime_version = 8;
* @return The bytes for runtimeVersion.
*/
com.google.protobuf.ByteString
getRuntimeVersionBytes();
/**
*
* eg "Linux box 4.6.5-1-ec2 #1 SMP Mon Aug 1 02:31:38 PDT 2016 x86_64 GNU/Linux"
*
*
* string uname = 9;
* @return The uname.
*/
java.lang.String getUname();
/**
*
* eg "Linux box 4.6.5-1-ec2 #1 SMP Mon Aug 1 02:31:38 PDT 2016 x86_64 GNU/Linux"
*
*
* string uname = 9;
* @return The bytes for uname.
*/
com.google.protobuf.ByteString
getUnameBytes();
/**
*
* eg "current", "prod"
*
*
* string schema_tag = 10;
* @return The schemaTag.
*/
java.lang.String getSchemaTag();
/**
*
* eg "current", "prod"
*
*
* string schema_tag = 10;
* @return The bytes for schemaTag.
*/
com.google.protobuf.ByteString
getSchemaTagBytes();
/**
*
* The hex representation of the sha512 of the introspection response
*
*
* string schema_hash = 11;
* @return The schemaHash.
*/
java.lang.String getSchemaHash();
/**
*
* 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.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:mdg.engine.proto.ReportHeader)
ReportHeaderOrBuilder {
private static final long serialVersionUID = 0L;
// Use ReportHeader.newBuilder() to construct.
private ReportHeader(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ReportHeader() {
service_ = "";
hostname_ = "";
agentVersion_ = "";
serviceVersion_ = "";
runtimeVersion_ = "";
uname_ = "";
schemaTag_ = "";
schemaHash_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ReportHeader();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ReportHeader(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 26: {
java.lang.String s = input.readStringRequireUtf8();
service_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
hostname_ = s;
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
agentVersion_ = s;
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
serviceVersion_ = s;
break;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
runtimeVersion_ = s;
break;
}
case 74: {
java.lang.String s = input.readStringRequireUtf8();
uname_ = s;
break;
}
case 82: {
java.lang.String s = input.readStringRequireUtf8();
schemaTag_ = s;
break;
}
case 90: {
java.lang.String s = input.readStringRequireUtf8();
schemaHash_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_ReportHeader_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.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;
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;
private volatile java.lang.Object hostname_;
/**
*
* eg "host-01.example.com"
*
*
* string hostname = 5;
* @return The hostname.
*/
@java.lang.Override
public java.lang.String getHostname() {
java.lang.Object ref = hostname_;
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();
hostname_ = s;
return s;
}
}
/**
*
* eg "host-01.example.com"
*
*
* string hostname = 5;
* @return The bytes for hostname.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHostnameBytes() {
java.lang.Object ref = hostname_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostname_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int AGENT_VERSION_FIELD_NUMBER = 6;
private volatile java.lang.Object agentVersion_;
/**
*
* eg "engineproxy 0.1.0"
*
*
* string agent_version = 6;
* @return The agentVersion.
*/
@java.lang.Override
public java.lang.String getAgentVersion() {
java.lang.Object ref = agentVersion_;
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();
agentVersion_ = s;
return s;
}
}
/**
*
* eg "engineproxy 0.1.0"
*
*
* string agent_version = 6;
* @return The bytes for agentVersion.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAgentVersionBytes() {
java.lang.Object ref = agentVersion_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
agentVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SERVICE_VERSION_FIELD_NUMBER = 7;
private volatile java.lang.Object serviceVersion_;
/**
*
* eg "prod-4279-20160804T065423Z-5-g3cf0aa8" (taken from `git describe --tags`)
*
*
* string service_version = 7;
* @return The serviceVersion.
*/
@java.lang.Override
public java.lang.String getServiceVersion() {
java.lang.Object ref = serviceVersion_;
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();
serviceVersion_ = s;
return s;
}
}
/**
*
* eg "prod-4279-20160804T065423Z-5-g3cf0aa8" (taken from `git describe --tags`)
*
*
* string service_version = 7;
* @return The bytes for serviceVersion.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getServiceVersionBytes() {
java.lang.Object ref = serviceVersion_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RUNTIME_VERSION_FIELD_NUMBER = 8;
private volatile java.lang.Object runtimeVersion_;
/**
*
* eg "node v4.6.0"
*
*
* string runtime_version = 8;
* @return The runtimeVersion.
*/
@java.lang.Override
public java.lang.String getRuntimeVersion() {
java.lang.Object ref = runtimeVersion_;
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();
runtimeVersion_ = s;
return s;
}
}
/**
*
* eg "node v4.6.0"
*
*
* string runtime_version = 8;
* @return The bytes for runtimeVersion.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRuntimeVersionBytes() {
java.lang.Object ref = runtimeVersion_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
runtimeVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int UNAME_FIELD_NUMBER = 9;
private volatile java.lang.Object uname_;
/**
*
* eg "Linux box 4.6.5-1-ec2 #1 SMP Mon Aug 1 02:31:38 PDT 2016 x86_64 GNU/Linux"
*
*
* string uname = 9;
* @return The uname.
*/
@java.lang.Override
public java.lang.String getUname() {
java.lang.Object ref = uname_;
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();
uname_ = s;
return s;
}
}
/**
*
* eg "Linux box 4.6.5-1-ec2 #1 SMP Mon Aug 1 02:31:38 PDT 2016 x86_64 GNU/Linux"
*
*
* string uname = 9;
* @return The bytes for uname.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUnameBytes() {
java.lang.Object ref = uname_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uname_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SCHEMA_TAG_FIELD_NUMBER = 10;
private volatile java.lang.Object schemaTag_;
/**
*
* eg "current", "prod"
*
*
* string schema_tag = 10;
* @return The schemaTag.
*/
@java.lang.Override
public java.lang.String getSchemaTag() {
java.lang.Object ref = schemaTag_;
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();
schemaTag_ = s;
return s;
}
}
/**
*
* eg "current", "prod"
*
*
* string schema_tag = 10;
* @return The bytes for schemaTag.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSchemaTagBytes() {
java.lang.Object ref = schemaTag_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
schemaTag_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SCHEMA_HASH_FIELD_NUMBER = 11;
private volatile java.lang.Object schemaHash_;
/**
*
* The hex representation of the sha512 of the introspection response
*
*
* string schema_hash = 11;
* @return The schemaHash.
*/
@java.lang.Override
public java.lang.String getSchemaHash() {
java.lang.Object ref = schemaHash_;
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();
schemaHash_ = s;
return s;
}
}
/**
*
* The hex representation of the sha512 of the introspection response
*
*
* string schema_hash = 11;
* @return The bytes for schemaHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSchemaHashBytes() {
java.lang.Object ref = schemaHash_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
schemaHash_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, service_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, hostname_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agentVersion_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, agentVersion_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceVersion_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, serviceVersion_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(runtimeVersion_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, runtimeVersion_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uname_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, uname_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaTag_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, schemaTag_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaHash_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, schemaHash_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, service_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, hostname_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agentVersion_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, agentVersion_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceVersion_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, serviceVersion_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(runtimeVersion_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, runtimeVersion_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uname_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, uname_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaTag_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, schemaTag_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaHash_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, schemaHash_);
}
size += unknownFields.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.ReportHeader)) {
return super.equals(obj);
}
mdg.engine.proto.Reports.ReportHeader other = (mdg.engine.proto.Reports.ReportHeader) obj;
if (!getService()
.equals(other.getService())) return false;
if (!getHostname()
.equals(other.getHostname())) return false;
if (!getAgentVersion()
.equals(other.getAgentVersion())) return false;
if (!getServiceVersion()
.equals(other.getServiceVersion())) return false;
if (!getRuntimeVersion()
.equals(other.getRuntimeVersion())) return false;
if (!getUname()
.equals(other.getUname())) return false;
if (!getSchemaTag()
.equals(other.getSchemaTag())) return false;
if (!getSchemaHash()
.equals(other.getSchemaHash())) return false;
if (!unknownFields.equals(other.unknownFields)) 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) + SERVICE_FIELD_NUMBER;
hash = (53 * hash) + getService().hashCode();
hash = (37 * hash) + HOSTNAME_FIELD_NUMBER;
hash = (53 * hash) + getHostname().hashCode();
hash = (37 * hash) + AGENT_VERSION_FIELD_NUMBER;
hash = (53 * hash) + getAgentVersion().hashCode();
hash = (37 * hash) + SERVICE_VERSION_FIELD_NUMBER;
hash = (53 * hash) + getServiceVersion().hashCode();
hash = (37 * hash) + RUNTIME_VERSION_FIELD_NUMBER;
hash = (53 * hash) + getRuntimeVersion().hashCode();
hash = (37 * hash) + UNAME_FIELD_NUMBER;
hash = (53 * hash) + getUname().hashCode();
hash = (37 * hash) + SCHEMA_TAG_FIELD_NUMBER;
hash = (53 * hash) + getSchemaTag().hashCode();
hash = (37 * hash) + SCHEMA_HASH_FIELD_NUMBER;
hash = (53 * hash) + getSchemaHash().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static mdg.engine.proto.Reports.ReportHeader parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.ReportHeader 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.ReportHeader parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.ReportHeader 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.ReportHeader parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static mdg.engine.proto.Reports.ReportHeader parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static mdg.engine.proto.Reports.ReportHeader parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.ReportHeader parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static mdg.engine.proto.Reports.ReportHeader parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.ReportHeader parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static mdg.engine.proto.Reports.ReportHeader parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static mdg.engine.proto.Reports.ReportHeader parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.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.ReportHeader 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.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* 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.GeneratedMessageV3.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.GeneratedMessageV3.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() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
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);
result.service_ = service_;
result.hostname_ = hostname_;
result.agentVersion_ = agentVersion_;
result.serviceVersion_ = serviceVersion_;
result.runtimeVersion_ = runtimeVersion_;
result.uname_ = uname_;
result.schemaTag_ = schemaTag_;
result.schemaHash_ = schemaHash_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof 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_;
onChanged();
}
if (!other.getHostname().isEmpty()) {
hostname_ = other.hostname_;
onChanged();
}
if (!other.getAgentVersion().isEmpty()) {
agentVersion_ = other.agentVersion_;
onChanged();
}
if (!other.getServiceVersion().isEmpty()) {
serviceVersion_ = other.serviceVersion_;
onChanged();
}
if (!other.getRuntimeVersion().isEmpty()) {
runtimeVersion_ = other.runtimeVersion_;
onChanged();
}
if (!other.getUname().isEmpty()) {
uname_ = other.uname_;
onChanged();
}
if (!other.getSchemaTag().isEmpty()) {
schemaTag_ = other.schemaTag_;
onChanged();
}
if (!other.getSchemaHash().isEmpty()) {
schemaHash_ = other.schemaHash_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
mdg.engine.proto.Reports.ReportHeader parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (mdg.engine.proto.Reports.ReportHeader) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
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;
onChanged();
return this;
}
/**
* string service = 3;
* @return This builder for chaining.
*/
public Builder clearService() {
service_ = getDefaultInstance().getService();
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;
onChanged();
return this;
}
private java.lang.Object hostname_ = "";
/**
*
* eg "host-01.example.com"
*
*
* string hostname = 5;
* @return The hostname.
*/
public java.lang.String getHostname() {
java.lang.Object ref = hostname_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hostname_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* eg "host-01.example.com"
*
*
* string hostname = 5;
* @return The bytes for hostname.
*/
public com.google.protobuf.ByteString
getHostnameBytes() {
java.lang.Object ref = hostname_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostname_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* eg "host-01.example.com"
*
*
* string hostname = 5;
* @param value The hostname to set.
* @return This builder for chaining.
*/
public Builder setHostname(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
hostname_ = value;
onChanged();
return this;
}
/**
*
* eg "host-01.example.com"
*
*
* string hostname = 5;
* @return This builder for chaining.
*/
public Builder clearHostname() {
hostname_ = getDefaultInstance().getHostname();
onChanged();
return this;
}
/**
*
* eg "host-01.example.com"
*
*
* string hostname = 5;
* @param value The bytes for hostname to set.
* @return This builder for chaining.
*/
public Builder setHostnameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
hostname_ = value;
onChanged();
return this;
}
private java.lang.Object agentVersion_ = "";
/**
*
* eg "engineproxy 0.1.0"
*
*
* string agent_version = 6;
* @return The agentVersion.
*/
public java.lang.String getAgentVersion() {
java.lang.Object ref = agentVersion_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
agentVersion_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* eg "engineproxy 0.1.0"
*
*
* string agent_version = 6;
* @return The bytes for agentVersion.
*/
public com.google.protobuf.ByteString
getAgentVersionBytes() {
java.lang.Object ref = agentVersion_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
agentVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* eg "engineproxy 0.1.0"
*
*
* string agent_version = 6;
* @param value The agentVersion to set.
* @return This builder for chaining.
*/
public Builder setAgentVersion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
agentVersion_ = value;
onChanged();
return this;
}
/**
*
* eg "engineproxy 0.1.0"
*
*
* string agent_version = 6;
* @return This builder for chaining.
*/
public Builder clearAgentVersion() {
agentVersion_ = getDefaultInstance().getAgentVersion();
onChanged();
return this;
}
/**
*
* eg "engineproxy 0.1.0"
*
*
* string agent_version = 6;
* @param value The bytes for agentVersion to set.
* @return This builder for chaining.
*/
public Builder setAgentVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
agentVersion_ = value;
onChanged();
return this;
}
private java.lang.Object serviceVersion_ = "";
/**
*
* eg "prod-4279-20160804T065423Z-5-g3cf0aa8" (taken from `git describe --tags`)
*
*
* string service_version = 7;
* @return The serviceVersion.
*/
public java.lang.String getServiceVersion() {
java.lang.Object ref = serviceVersion_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
serviceVersion_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* eg "prod-4279-20160804T065423Z-5-g3cf0aa8" (taken from `git describe --tags`)
*
*
* string service_version = 7;
* @return The bytes for serviceVersion.
*/
public com.google.protobuf.ByteString
getServiceVersionBytes() {
java.lang.Object ref = serviceVersion_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* eg "prod-4279-20160804T065423Z-5-g3cf0aa8" (taken from `git describe --tags`)
*
*
* string service_version = 7;
* @param value The serviceVersion to set.
* @return This builder for chaining.
*/
public Builder setServiceVersion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
serviceVersion_ = value;
onChanged();
return this;
}
/**
*
* eg "prod-4279-20160804T065423Z-5-g3cf0aa8" (taken from `git describe --tags`)
*
*
* string service_version = 7;
* @return This builder for chaining.
*/
public Builder clearServiceVersion() {
serviceVersion_ = getDefaultInstance().getServiceVersion();
onChanged();
return this;
}
/**
*
* eg "prod-4279-20160804T065423Z-5-g3cf0aa8" (taken from `git describe --tags`)
*
*
* string service_version = 7;
* @param value The bytes for serviceVersion to set.
* @return This builder for chaining.
*/
public Builder setServiceVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
serviceVersion_ = value;
onChanged();
return this;
}
private java.lang.Object runtimeVersion_ = "";
/**
*
* eg "node v4.6.0"
*
*
* string runtime_version = 8;
* @return The runtimeVersion.
*/
public java.lang.String getRuntimeVersion() {
java.lang.Object ref = runtimeVersion_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
runtimeVersion_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* eg "node v4.6.0"
*
*
* string runtime_version = 8;
* @return The bytes for runtimeVersion.
*/
public com.google.protobuf.ByteString
getRuntimeVersionBytes() {
java.lang.Object ref = runtimeVersion_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
runtimeVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* eg "node v4.6.0"
*
*
* string runtime_version = 8;
* @param value The runtimeVersion to set.
* @return This builder for chaining.
*/
public Builder setRuntimeVersion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
runtimeVersion_ = value;
onChanged();
return this;
}
/**
*
* eg "node v4.6.0"
*
*
* string runtime_version = 8;
* @return This builder for chaining.
*/
public Builder clearRuntimeVersion() {
runtimeVersion_ = getDefaultInstance().getRuntimeVersion();
onChanged();
return this;
}
/**
*
* eg "node v4.6.0"
*
*
* string runtime_version = 8;
* @param value The bytes for runtimeVersion to set.
* @return This builder for chaining.
*/
public Builder setRuntimeVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
runtimeVersion_ = value;
onChanged();
return this;
}
private java.lang.Object uname_ = "";
/**
*
* eg "Linux box 4.6.5-1-ec2 #1 SMP Mon Aug 1 02:31:38 PDT 2016 x86_64 GNU/Linux"
*
*
* string uname = 9;
* @return The uname.
*/
public java.lang.String getUname() {
java.lang.Object ref = uname_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
uname_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* eg "Linux box 4.6.5-1-ec2 #1 SMP Mon Aug 1 02:31:38 PDT 2016 x86_64 GNU/Linux"
*
*
* string uname = 9;
* @return The bytes for uname.
*/
public com.google.protobuf.ByteString
getUnameBytes() {
java.lang.Object ref = uname_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uname_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* eg "Linux box 4.6.5-1-ec2 #1 SMP Mon Aug 1 02:31:38 PDT 2016 x86_64 GNU/Linux"
*
*
* string uname = 9;
* @param value The uname to set.
* @return This builder for chaining.
*/
public Builder setUname(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
uname_ = value;
onChanged();
return this;
}
/**
*
* eg "Linux box 4.6.5-1-ec2 #1 SMP Mon Aug 1 02:31:38 PDT 2016 x86_64 GNU/Linux"
*
*
* string uname = 9;
* @return This builder for chaining.
*/
public Builder clearUname() {
uname_ = getDefaultInstance().getUname();
onChanged();
return this;
}
/**
*
* eg "Linux box 4.6.5-1-ec2 #1 SMP Mon Aug 1 02:31:38 PDT 2016 x86_64 GNU/Linux"
*
*
* string uname = 9;
* @param value The bytes for uname to set.
* @return This builder for chaining.
*/
public Builder setUnameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
uname_ = value;
onChanged();
return this;
}
private java.lang.Object schemaTag_ = "";
/**
*
* eg "current", "prod"
*
*
* string schema_tag = 10;
* @return The schemaTag.
*/
public java.lang.String getSchemaTag() {
java.lang.Object ref = schemaTag_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
schemaTag_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* eg "current", "prod"
*
*
* string schema_tag = 10;
* @return The bytes for schemaTag.
*/
public com.google.protobuf.ByteString
getSchemaTagBytes() {
java.lang.Object ref = schemaTag_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
schemaTag_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* eg "current", "prod"
*
*
* string schema_tag = 10;
* @param value The schemaTag to set.
* @return This builder for chaining.
*/
public Builder setSchemaTag(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
schemaTag_ = value;
onChanged();
return this;
}
/**
*
* eg "current", "prod"
*
*
* string schema_tag = 10;
* @return This builder for chaining.
*/
public Builder clearSchemaTag() {
schemaTag_ = getDefaultInstance().getSchemaTag();
onChanged();
return this;
}
/**
*
* eg "current", "prod"
*
*
* string schema_tag = 10;
* @param value The bytes for schemaTag to set.
* @return This builder for chaining.
*/
public Builder setSchemaTagBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
schemaTag_ = value;
onChanged();
return this;
}
private java.lang.Object schemaHash_ = "";
/**
*
* The hex representation of the sha512 of the introspection response
*
*
* string schema_hash = 11;
* @return The schemaHash.
*/
public java.lang.String getSchemaHash() {
java.lang.Object ref = schemaHash_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
schemaHash_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The hex representation of the sha512 of the introspection response
*
*
* string schema_hash = 11;
* @return The bytes for schemaHash.
*/
public com.google.protobuf.ByteString
getSchemaHashBytes() {
java.lang.Object ref = schemaHash_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
schemaHash_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The hex representation of the sha512 of the introspection response
*
*
* string schema_hash = 11;
* @param value The schemaHash to set.
* @return This builder for chaining.
*/
public Builder setSchemaHash(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
schemaHash_ = value;
onChanged();
return this;
}
/**
*
* The hex representation of the sha512 of the introspection response
*
*
* string schema_hash = 11;
* @return This builder for chaining.
*/
public Builder clearSchemaHash() {
schemaHash_ = getDefaultInstance().getSchemaHash();
onChanged();
return this;
}
/**
*
* 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;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope: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 {
return new ReportHeader(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public 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.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:mdg.engine.proto.PathErrorStats)
PathErrorStatsOrBuilder {
private static final long serialVersionUID = 0L;
// Use PathErrorStats.newBuilder() to construct.
private PathErrorStats(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PathErrorStats() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PathErrorStats();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PathErrorStats(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
children_ = com.google.protobuf.MapField.newMapField(
ChildrenDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
children__ = input.readMessage(
ChildrenDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
children_.getMutableMap().put(
children__.getKey(), children__.getValue());
break;
}
case 32: {
errorsCount_ = input.readUInt64();
break;
}
case 40: {
requestsWithErrorsCount_ = input.readUInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_PathErrorStats_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetChildren();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.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());
}
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 mdg.engine.proto.Reports.PathErrorStats getChildrenOrDefault(
java.lang.String key,
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_;
/**
* 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_;
/**
* 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.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetChildren(),
ChildrenDefaultEntryHolder.defaultEntry,
1);
if (errorsCount_ != 0L) {
output.writeUInt64(4, errorsCount_);
}
if (requestsWithErrorsCount_ != 0L) {
output.writeUInt64(5, requestsWithErrorsCount_);
}
unknownFields.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 += unknownFields.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 (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.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.GeneratedMessageV3
.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.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static mdg.engine.proto.Reports.PathErrorStats parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.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.GeneratedMessageV3
.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.GeneratedMessageV3
.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.GeneratedMessageV3
.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.GeneratedMessageV3.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.GeneratedMessageV3.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.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetChildren();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 1:
return internalGetMutableChildren();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.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() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
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);
int from_bitField0_ = bitField0_;
result.children_ = internalGetChildren();
result.children_.makeImmutable();
result.errorsCount_ = errorsCount_;
result.requestsWithErrorsCount_ = requestsWithErrorsCount_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof 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());
if (other.getErrorsCount() != 0L) {
setErrorsCount(other.getErrorsCount());
}
if (other.getRequestsWithErrorsCount() != 0L) {
setRequestsWithErrorsCount(other.getRequestsWithErrorsCount());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
mdg.engine.proto.Reports.PathErrorStats parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (mdg.engine.proto.Reports.PathErrorStats) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
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_;
}
private com.google.protobuf.MapField
internalGetMutableChildren() {
onChanged();;
if (children_ == null) {
children_ = com.google.protobuf.MapField.newMapField(
ChildrenDefaultEntryHolder.defaultEntry);
}
if (!children_.isMutable()) {
children_ = children_.copy();
}
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 mdg.engine.proto.Reports.PathErrorStats getChildrenOrDefault(
java.lang.String key,
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 Builder clearChildren() {
internalGetMutableChildren().getMutableMap()
.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().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableChildren() {
return internalGetMutableChildren().getMutableMap();
}
/**
* 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().getMutableMap()
.put(key, value);
return this;
}
/**
* map<string, .mdg.engine.proto.PathErrorStats> children = 1;
*/
public Builder putAllChildren(
java.util.Map values) {
internalGetMutableChildren().getMutableMap()
.putAll(values);
return this;
}
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;
onChanged();
return this;
}
/**
* uint64 errors_count = 4;
* @return This builder for chaining.
*/
public Builder clearErrorsCount() {
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;
onChanged();
return this;
}
/**
* uint64 requests_with_errors_count = 5;
* @return This builder for chaining.
*/
public Builder clearRequestsWithErrorsCount() {
requestsWithErrorsCount_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope: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 {
return new PathErrorStats(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public 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.
*
*
* map<string, uint64> requests_count_per_version = 3;
*/
int getRequestsCountPerVersionCount();
/**
*
* 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;
*/
boolean containsRequestsCountPerVersion(
java.lang.String key);
/**
* Use {@link #getRequestsCountPerVersionMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getRequestsCountPerVersion();
/**
*
* 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;
*/
java.util.Map
getRequestsCountPerVersionMap();
/**
*
* 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.
*
*
* map<string, uint64> requests_count_per_version = 3;
*/
long getRequestsCountPerVersionOrThrow(
java.lang.String key);
/**
* map<string, uint64> cache_hits_per_version = 4;
*/
int getCacheHitsPerVersionCount();
/**
* map<string, uint64> cache_hits_per_version = 4;
*/
boolean containsCacheHitsPerVersion(
java.lang.String key);
/**
* Use {@link #getCacheHitsPerVersionMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getCacheHitsPerVersion();
/**
* map<string, uint64> cache_hits_per_version = 4;
*/
java.util.Map
getCacheHitsPerVersionMap();
/**
* map<string, uint64> cache_hits_per_version = 4;
*/
long getCacheHitsPerVersionOrDefault(
java.lang.String key,
long defaultValue);
/**
* map<string, uint64> cache_hits_per_version = 4;
*/
long getCacheHitsPerVersionOrThrow(
java.lang.String key);
/**
* map<string, uint64> persisted_query_hits_per_version = 10;
*/
int getPersistedQueryHitsPerVersionCount();
/**
* map<string, uint64> persisted_query_hits_per_version = 10;
*/
boolean containsPersistedQueryHitsPerVersion(
java.lang.String key);
/**
* Use {@link #getPersistedQueryHitsPerVersionMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getPersistedQueryHitsPerVersion();
/**
* map<string, uint64> persisted_query_hits_per_version = 10;
*/
java.util.Map
getPersistedQueryHitsPerVersionMap();
/**
* map<string, uint64> persisted_query_hits_per_version = 10;
*/
long getPersistedQueryHitsPerVersionOrDefault(
java.lang.String key,
long defaultValue);
/**
* map<string, uint64> persisted_query_hits_per_version = 10;
*/
long getPersistedQueryHitsPerVersionOrThrow(
java.lang.String key);
/**
* map<string, uint64> persisted_query_misses_per_version = 11;
*/
int getPersistedQueryMissesPerVersionCount();
/**
* map<string, uint64> persisted_query_misses_per_version = 11;
*/
boolean containsPersistedQueryMissesPerVersion(
java.lang.String key);
/**
* Use {@link #getPersistedQueryMissesPerVersionMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getPersistedQueryMissesPerVersion();
/**
* map<string, uint64> persisted_query_misses_per_version = 11;
*/
java.util.Map
getPersistedQueryMissesPerVersionMap();
/**
* map<string, uint64> persisted_query_misses_per_version = 11;
*/
long getPersistedQueryMissesPerVersionOrDefault(
java.lang.String key,
long defaultValue);
/**
* map<string, uint64> persisted_query_misses_per_version = 11;
*/
long getPersistedQueryMissesPerVersionOrThrow(
java.lang.String key);
/**
* map<string, uint64> registered_operation_count_per_version = 12;
*/
int getRegisteredOperationCountPerVersionCount();
/**
* map<string, uint64> registered_operation_count_per_version = 12;
*/
boolean containsRegisteredOperationCountPerVersion(
java.lang.String key);
/**
* Use {@link #getRegisteredOperationCountPerVersionMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getRegisteredOperationCountPerVersion();
/**
* map<string, uint64> registered_operation_count_per_version = 12;
*/
java.util.Map
getRegisteredOperationCountPerVersionMap();
/**
* map<string, uint64> registered_operation_count_per_version = 12;
*/
long getRegisteredOperationCountPerVersionOrDefault(
java.lang.String key,
long defaultValue);
/**
* map<string, uint64> registered_operation_count_per_version = 12;
*/
long getRegisteredOperationCountPerVersionOrThrow(
java.lang.String key);
/**
* map<string, uint64> forbidden_operation_count_per_version = 13;
*/
int getForbiddenOperationCountPerVersionCount();
/**
* map<string, uint64> forbidden_operation_count_per_version = 13;
*/
boolean containsForbiddenOperationCountPerVersion(
java.lang.String key);
/**
* Use {@link #getForbiddenOperationCountPerVersionMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getForbiddenOperationCountPerVersion();
/**
* map<string, uint64> forbidden_operation_count_per_version = 13;
*/
java.util.Map
getForbiddenOperationCountPerVersionMap();
/**
* map<string, uint64> forbidden_operation_count_per_version = 13;
*/
long getForbiddenOperationCountPerVersionOrDefault(
java.lang.String key,
long defaultValue);
/**
* map<string, uint64> forbidden_operation_count_per_version = 13;
*/
long getForbiddenOperationCountPerVersionOrThrow(
java.lang.String key);
/**
*
* Duration histogram; see docs/histograms.md
*
*
* 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();
/**
*
* TTL histograms for cache misses for the private cache.
*
*
* repeated int64 private_cache_ttl_count = 9;
* @return The count of privateCacheTtlCount.
*/
int getPrivateCacheTtlCountCount();
/**
*
* TTL histograms for cache misses for the private cache.
*
*
* repeated int64 private_cache_ttl_count = 9;
* @param index The index of the element to return.
* @return The privateCacheTtlCount at the given index.
*/
long getPrivateCacheTtlCount(int index);
}
/**
* Protobuf type {@code mdg.engine.proto.ClientNameStats}
*/
public static final class ClientNameStats extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:mdg.engine.proto.ClientNameStats)
ClientNameStatsOrBuilder {
private static final long serialVersionUID = 0L;
// Use ClientNameStats.newBuilder() to construct.
private ClientNameStats(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ClientNameStats() {
latencyCount_ = emptyLongList();
cacheLatencyCount_ = emptyLongList();
publicCacheTtlCount_ = emptyLongList();
privateCacheTtlCount_ = emptyLongList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ClientNameStats();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ClientNameStats(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
latencyCount_ = newLongList();
mutable_bitField0_ |= 0x00000001;
}
latencyCount_.addLong(input.readInt64());
break;
}
case 10: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
latencyCount_ = newLongList();
mutable_bitField0_ |= 0x00000001;
}
while (input.getBytesUntilLimit() > 0) {
latencyCount_.addLong(input.readInt64());
}
input.popLimit(limit);
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
requestsCountPerVersion_ = com.google.protobuf.MapField.newMapField(
RequestsCountPerVersionDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000002;
}
com.google.protobuf.MapEntry
requestsCountPerVersion__ = input.readMessage(
RequestsCountPerVersionDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
requestsCountPerVersion_.getMutableMap().put(
requestsCountPerVersion__.getKey(), requestsCountPerVersion__.getValue());
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
cacheHitsPerVersion_ = com.google.protobuf.MapField.newMapField(
CacheHitsPerVersionDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000004;
}
com.google.protobuf.MapEntry
cacheHitsPerVersion__ = input.readMessage(
CacheHitsPerVersionDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
cacheHitsPerVersion_.getMutableMap().put(
cacheHitsPerVersion__.getKey(), cacheHitsPerVersion__.getValue());
break;
}
case 40: {
if (!((mutable_bitField0_ & 0x00000080) != 0)) {
cacheLatencyCount_ = newLongList();
mutable_bitField0_ |= 0x00000080;
}
cacheLatencyCount_.addLong(input.readInt64());
break;
}
case 42: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000080) != 0) && input.getBytesUntilLimit() > 0) {
cacheLatencyCount_ = newLongList();
mutable_bitField0_ |= 0x00000080;
}
while (input.getBytesUntilLimit() > 0) {
cacheLatencyCount_.addLong(input.readInt64());
}
input.popLimit(limit);
break;
}
case 50: {
mdg.engine.proto.Reports.PathErrorStats.Builder subBuilder = null;
if (rootErrorStats_ != null) {
subBuilder = rootErrorStats_.toBuilder();
}
rootErrorStats_ = input.readMessage(mdg.engine.proto.Reports.PathErrorStats.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(rootErrorStats_);
rootErrorStats_ = subBuilder.buildPartial();
}
break;
}
case 56: {
requestsWithErrorsCount_ = input.readUInt64();
break;
}
case 64: {
if (!((mutable_bitField0_ & 0x00000100) != 0)) {
publicCacheTtlCount_ = newLongList();
mutable_bitField0_ |= 0x00000100;
}
publicCacheTtlCount_.addLong(input.readInt64());
break;
}
case 66: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000100) != 0) && input.getBytesUntilLimit() > 0) {
publicCacheTtlCount_ = newLongList();
mutable_bitField0_ |= 0x00000100;
}
while (input.getBytesUntilLimit() > 0) {
publicCacheTtlCount_.addLong(input.readInt64());
}
input.popLimit(limit);
break;
}
case 72: {
if (!((mutable_bitField0_ & 0x00000200) != 0)) {
privateCacheTtlCount_ = newLongList();
mutable_bitField0_ |= 0x00000200;
}
privateCacheTtlCount_.addLong(input.readInt64());
break;
}
case 74: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000200) != 0) && input.getBytesUntilLimit() > 0) {
privateCacheTtlCount_ = newLongList();
mutable_bitField0_ |= 0x00000200;
}
while (input.getBytesUntilLimit() > 0) {
privateCacheTtlCount_.addLong(input.readInt64());
}
input.popLimit(limit);
break;
}
case 82: {
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
persistedQueryHitsPerVersion_ = com.google.protobuf.MapField.newMapField(
PersistedQueryHitsPerVersionDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000008;
}
com.google.protobuf.MapEntry
persistedQueryHitsPerVersion__ = input.readMessage(
PersistedQueryHitsPerVersionDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
persistedQueryHitsPerVersion_.getMutableMap().put(
persistedQueryHitsPerVersion__.getKey(), persistedQueryHitsPerVersion__.getValue());
break;
}
case 90: {
if (!((mutable_bitField0_ & 0x00000010) != 0)) {
persistedQueryMissesPerVersion_ = com.google.protobuf.MapField.newMapField(
PersistedQueryMissesPerVersionDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000010;
}
com.google.protobuf.MapEntry
persistedQueryMissesPerVersion__ = input.readMessage(
PersistedQueryMissesPerVersionDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
persistedQueryMissesPerVersion_.getMutableMap().put(
persistedQueryMissesPerVersion__.getKey(), persistedQueryMissesPerVersion__.getValue());
break;
}
case 98: {
if (!((mutable_bitField0_ & 0x00000020) != 0)) {
registeredOperationCountPerVersion_ = com.google.protobuf.MapField.newMapField(
RegisteredOperationCountPerVersionDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000020;
}
com.google.protobuf.MapEntry
registeredOperationCountPerVersion__ = input.readMessage(
RegisteredOperationCountPerVersionDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
registeredOperationCountPerVersion_.getMutableMap().put(
registeredOperationCountPerVersion__.getKey(), registeredOperationCountPerVersion__.getValue());
break;
}
case 106: {
if (!((mutable_bitField0_ & 0x00000040) != 0)) {
forbiddenOperationCountPerVersion_ = com.google.protobuf.MapField.newMapField(
ForbiddenOperationCountPerVersionDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000040;
}
com.google.protobuf.MapEntry
forbiddenOperationCountPerVersion__ = input.readMessage(
ForbiddenOperationCountPerVersionDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
forbiddenOperationCountPerVersion_.getMutableMap().put(
forbiddenOperationCountPerVersion__.getKey(), forbiddenOperationCountPerVersion__.getValue());
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
latencyCount_.makeImmutable(); // C
}
if (((mutable_bitField0_ & 0x00000080) != 0)) {
cacheLatencyCount_.makeImmutable(); // C
}
if (((mutable_bitField0_ & 0x00000100) != 0)) {
publicCacheTtlCount_.makeImmutable(); // C
}
if (((mutable_bitField0_ & 0x00000200) != 0)) {
privateCacheTtlCount_.makeImmutable(); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_ClientNameStats_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 3:
return internalGetRequestsCountPerVersion();
case 4:
return internalGetCacheHitsPerVersion();
case 10:
return internalGetPersistedQueryHitsPerVersion();
case 11:
return internalGetPersistedQueryMissesPerVersion();
case 12:
return internalGetRegisteredOperationCountPerVersion();
case 13:
return internalGetForbiddenOperationCountPerVersion();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return mdg.engine.proto.Reports.internal_static_mdg_engine_proto_ClientNameStats_fieldAccessorTable
.ensureFieldAccessorsInitialized(
mdg.engine.proto.Reports.ClientNameStats.class, mdg.engine.proto.Reports.ClientNameStats.Builder.class);
}
public static final int LATENCY_COUNT_FIELD_NUMBER = 1;
private com.google.protobuf.Internal.LongList latencyCount_;
/**
*