Class Reports.StatsReport

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
mdg.engine.proto.Reports.StatsReport
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, Reports.StatsReportOrBuilder
Enclosing class:
Reports

public static final class Reports.StatsReport extends com.google.protobuf.GeneratedMessage implements Reports.StatsReportOrBuilder
 Top-level message type for the server-side stats endpoint
 
Protobuf type mdg.engine.proto.StatsReport
See Also:
  • Field Details

    • HEADER_FIELD_NUMBER

      public static final int HEADER_FIELD_NUMBER
      See Also:
    • MEM_STATS_FIELD_NUMBER

      public static final int MEM_STATS_FIELD_NUMBER
      See Also:
    • TIME_STATS_FIELD_NUMBER

      public static final int TIME_STATS_FIELD_NUMBER
      See Also:
    • START_TIME_FIELD_NUMBER

      public static final int START_TIME_FIELD_NUMBER
      See Also:
    • END_TIME_FIELD_NUMBER

      public static final int END_TIME_FIELD_NUMBER
      See Also:
    • REALTIME_DURATION_FIELD_NUMBER

      public static final int REALTIME_DURATION_FIELD_NUMBER
      See Also:
    • PER_QUERY_FIELD_NUMBER

      public static final int PER_QUERY_FIELD_NUMBER
      See Also:
    • LEGACY_PER_QUERY_IMPLICIT_OPERATION_NAME_FIELD_NUMBER

      public static final int LEGACY_PER_QUERY_IMPLICIT_OPERATION_NAME_FIELD_NUMBER
      See Also:
    • TYPE_FIELD_NUMBER

      public static final int TYPE_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • hasHeader

      public boolean hasHeader()
       required
       
      .mdg.engine.proto.ReportHeader header = 1;
      Specified by:
      hasHeader in interface Reports.StatsReportOrBuilder
      Returns:
      Whether the header field is set.
    • getHeader

      public Reports.ReportHeader getHeader()
       required
       
      .mdg.engine.proto.ReportHeader header = 1;
      Specified by:
      getHeader in interface Reports.StatsReportOrBuilder
      Returns:
      The header.
    • getHeaderOrBuilder

      public Reports.ReportHeaderOrBuilder getHeaderOrBuilder()
       required
       
      .mdg.engine.proto.ReportHeader header = 1;
      Specified by:
      getHeaderOrBuilder in interface Reports.StatsReportOrBuilder
    • hasMemStats

      public boolean hasMemStats()
       These fields are about properties of the engineproxy and are not generated
       from FullTracesReports.
       
      .mdg.engine.proto.MemStats mem_stats = 2;
      Specified by:
      hasMemStats in interface Reports.StatsReportOrBuilder
      Returns:
      Whether the memStats field is set.
    • getMemStats

      public Reports.MemStats getMemStats()
       These fields are about properties of the engineproxy and are not generated
       from FullTracesReports.
       
      .mdg.engine.proto.MemStats mem_stats = 2;
      Specified by:
      getMemStats in interface Reports.StatsReportOrBuilder
      Returns:
      The memStats.
    • getMemStatsOrBuilder

      public Reports.MemStatsOrBuilder getMemStatsOrBuilder()
       These fields are about properties of the engineproxy and are not generated
       from FullTracesReports.
       
      .mdg.engine.proto.MemStats mem_stats = 2;
      Specified by:
      getMemStatsOrBuilder in interface Reports.StatsReportOrBuilder
    • hasTimeStats

      public boolean hasTimeStats()
      .mdg.engine.proto.TimeStats time_stats = 3;
      Specified by:
      hasTimeStats in interface Reports.StatsReportOrBuilder
      Returns:
      Whether the timeStats field is set.
    • getTimeStats

      public Reports.TimeStats getTimeStats()
      .mdg.engine.proto.TimeStats time_stats = 3;
      Specified by:
      getTimeStats in interface Reports.StatsReportOrBuilder
      Returns:
      The timeStats.
    • getTimeStatsOrBuilder

      public Reports.TimeStatsOrBuilder getTimeStatsOrBuilder()
      .mdg.engine.proto.TimeStats time_stats = 3;
      Specified by:
      getTimeStatsOrBuilder in interface Reports.StatsReportOrBuilder
    • hasStartTime

      public boolean hasStartTime()
       Beginning of the period over which stats are collected.
       
      .google.protobuf.Timestamp start_time = 8;
      Specified by:
      hasStartTime in interface Reports.StatsReportOrBuilder
      Returns:
      Whether the startTime field is set.
    • getStartTime

      public com.google.protobuf.Timestamp getStartTime()
       Beginning of the period over which stats are collected.
       
      .google.protobuf.Timestamp start_time = 8;
      Specified by:
      getStartTime in interface Reports.StatsReportOrBuilder
      Returns:
      The startTime.
    • getStartTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
       Beginning of the period over which stats are collected.
       
      .google.protobuf.Timestamp start_time = 8;
      Specified by:
      getStartTimeOrBuilder in interface Reports.StatsReportOrBuilder
    • hasEndTime

      public boolean hasEndTime()
       End of the period of which stats are collected.
       
      .google.protobuf.Timestamp end_time = 9;
      Specified by:
      hasEndTime in interface Reports.StatsReportOrBuilder
      Returns:
      Whether the endTime field is set.
    • getEndTime

      public com.google.protobuf.Timestamp getEndTime()
       End of the period of which stats are collected.
       
      .google.protobuf.Timestamp end_time = 9;
      Specified by:
      getEndTime in interface Reports.StatsReportOrBuilder
      Returns:
      The endTime.
    • getEndTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
       End of the period of which stats are collected.
       
      .google.protobuf.Timestamp end_time = 9;
      Specified by:
      getEndTimeOrBuilder in interface Reports.StatsReportOrBuilder
    • getRealtimeDuration

      public long getRealtimeDuration()
       Only used to interpret mem_stats and time_stats; not generated from
       FullTracesReports.
       
      uint64 realtime_duration = 10;
      Specified by:
      getRealtimeDuration in interface Reports.StatsReportOrBuilder
      Returns:
      The realtimeDuration.
    • getPerQueryCount

      public int getPerQueryCount()
      Description copied from interface: Reports.StatsReportOrBuilder
       Maps from query descriptor to QueryStats. Required unless
       legacy_per_query_missing_operation_name is set. The keys are strings of the
       form `# operationName\nsignature` (literal hash and space), with
       operationName - if there is no operation name.
       
      map<string, .mdg.engine.proto.QueryStats> per_query = 14;
      Specified by:
      getPerQueryCount in interface Reports.StatsReportOrBuilder
    • containsPerQuery

      public boolean containsPerQuery(String key)
       Maps from query descriptor to QueryStats. Required unless
       legacy_per_query_missing_operation_name is set. The keys are strings of the
       form `# operationName\nsignature` (literal hash and space), with
       operationName - if there is no operation name.
       
      map<string, .mdg.engine.proto.QueryStats> per_query = 14;
      Specified by:
      containsPerQuery in interface Reports.StatsReportOrBuilder
    • getPerQuery

      @Deprecated public Map<String,Reports.QueryStats> getPerQuery()
      Deprecated.
      Use getPerQueryMap() instead.
      Specified by:
      getPerQuery in interface Reports.StatsReportOrBuilder
    • getPerQueryMap

      public Map<String,Reports.QueryStats> getPerQueryMap()
       Maps from query descriptor to QueryStats. Required unless
       legacy_per_query_missing_operation_name is set. The keys are strings of the
       form `# operationName\nsignature` (literal hash and space), with
       operationName - if there is no operation name.
       
      map<string, .mdg.engine.proto.QueryStats> per_query = 14;
      Specified by:
      getPerQueryMap in interface Reports.StatsReportOrBuilder
    • getPerQueryOrDefault

      public Reports.QueryStats getPerQueryOrDefault(String key, Reports.QueryStats defaultValue)
       Maps from query descriptor to QueryStats. Required unless
       legacy_per_query_missing_operation_name is set. The keys are strings of the
       form `# operationName\nsignature` (literal hash and space), with
       operationName - if there is no operation name.
       
      map<string, .mdg.engine.proto.QueryStats> per_query = 14;
      Specified by:
      getPerQueryOrDefault in interface Reports.StatsReportOrBuilder
    • getPerQueryOrThrow

      public Reports.QueryStats getPerQueryOrThrow(String key)
       Maps from query descriptor to QueryStats. Required unless
       legacy_per_query_missing_operation_name is set. The keys are strings of the
       form `# operationName\nsignature` (literal hash and space), with
       operationName - if there is no operation name.
       
      map<string, .mdg.engine.proto.QueryStats> per_query = 14;
      Specified by:
      getPerQueryOrThrow in interface Reports.StatsReportOrBuilder
    • getLegacyPerQueryImplicitOperationNameCount

      public int getLegacyPerQueryImplicitOperationNameCount()
      Description copied from interface: Reports.StatsReportOrBuilder
       Older agents (Go engineproxy) didn't explicitly include the operation name
       in the key of this map, and the server had to parse it out (after a
       re-signing operation which is no longer performed). The key here is just the query
       signature. Deprecated.
       
      map<string, .mdg.engine.proto.QueryStats> legacy_per_query_implicit_operation_name = 12;
      Specified by:
      getLegacyPerQueryImplicitOperationNameCount in interface Reports.StatsReportOrBuilder
    • containsLegacyPerQueryImplicitOperationName

      public boolean containsLegacyPerQueryImplicitOperationName(String key)
       Older agents (Go engineproxy) didn't explicitly include the operation name
       in the key of this map, and the server had to parse it out (after a
       re-signing operation which is no longer performed). The key here is just the query
       signature. Deprecated.
       
      map<string, .mdg.engine.proto.QueryStats> legacy_per_query_implicit_operation_name = 12;
      Specified by:
      containsLegacyPerQueryImplicitOperationName in interface Reports.StatsReportOrBuilder
    • getLegacyPerQueryImplicitOperationName

      @Deprecated public Map<String,Reports.QueryStats> getLegacyPerQueryImplicitOperationName()
      Deprecated.
      Specified by:
      getLegacyPerQueryImplicitOperationName in interface Reports.StatsReportOrBuilder
    • getLegacyPerQueryImplicitOperationNameMap

      public Map<String,Reports.QueryStats> getLegacyPerQueryImplicitOperationNameMap()
       Older agents (Go engineproxy) didn't explicitly include the operation name
       in the key of this map, and the server had to parse it out (after a
       re-signing operation which is no longer performed). The key here is just the query
       signature. Deprecated.
       
      map<string, .mdg.engine.proto.QueryStats> legacy_per_query_implicit_operation_name = 12;
      Specified by:
      getLegacyPerQueryImplicitOperationNameMap in interface Reports.StatsReportOrBuilder
    • getLegacyPerQueryImplicitOperationNameOrDefault

      public Reports.QueryStats getLegacyPerQueryImplicitOperationNameOrDefault(String key, Reports.QueryStats defaultValue)
       Older agents (Go engineproxy) didn't explicitly include the operation name
       in the key of this map, and the server had to parse it out (after a
       re-signing operation which is no longer performed). The key here is just the query
       signature. Deprecated.
       
      map<string, .mdg.engine.proto.QueryStats> legacy_per_query_implicit_operation_name = 12;
      Specified by:
      getLegacyPerQueryImplicitOperationNameOrDefault in interface Reports.StatsReportOrBuilder
    • getLegacyPerQueryImplicitOperationNameOrThrow

      public Reports.QueryStats getLegacyPerQueryImplicitOperationNameOrThrow(String key)
       Older agents (Go engineproxy) didn't explicitly include the operation name
       in the key of this map, and the server had to parse it out (after a
       re-signing operation which is no longer performed). The key here is just the query
       signature. Deprecated.
       
      map<string, .mdg.engine.proto.QueryStats> legacy_per_query_implicit_operation_name = 12;
      Specified by:
      getLegacyPerQueryImplicitOperationNameOrThrow in interface Reports.StatsReportOrBuilder
    • getTypeList

      public List<Reports.Type> getTypeList()
       Deprecated: it was useful in Optics where we had access to the whole schema
       but has not been ever used in Engine.  apollo-engine-reporting will not
       send it.
       
      repeated .mdg.engine.proto.Type type = 13;
      Specified by:
      getTypeList in interface Reports.StatsReportOrBuilder
    • getTypeOrBuilderList

      public List<? extends Reports.TypeOrBuilder> getTypeOrBuilderList()
       Deprecated: it was useful in Optics where we had access to the whole schema
       but has not been ever used in Engine.  apollo-engine-reporting will not
       send it.
       
      repeated .mdg.engine.proto.Type type = 13;
      Specified by:
      getTypeOrBuilderList in interface Reports.StatsReportOrBuilder
    • getTypeCount

      public int getTypeCount()
       Deprecated: it was useful in Optics where we had access to the whole schema
       but has not been ever used in Engine.  apollo-engine-reporting will not
       send it.
       
      repeated .mdg.engine.proto.Type type = 13;
      Specified by:
      getTypeCount in interface Reports.StatsReportOrBuilder
    • getType

      public Reports.Type getType(int index)
       Deprecated: it was useful in Optics where we had access to the whole schema
       but has not been ever used in Engine.  apollo-engine-reporting will not
       send it.
       
      repeated .mdg.engine.proto.Type type = 13;
      Specified by:
      getType in interface Reports.StatsReportOrBuilder
    • getTypeOrBuilder

      public Reports.TypeOrBuilder getTypeOrBuilder(int index)
       Deprecated: it was useful in Optics where we had access to the whole schema
       but has not been ever used in Engine.  apollo-engine-reporting will not
       send it.
       
      repeated .mdg.engine.proto.Type type = 13;
      Specified by:
      getTypeOrBuilder in interface Reports.StatsReportOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Reports.StatsReport parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Reports.StatsReport parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Reports.StatsReport parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Reports.StatsReport parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Reports.StatsReport parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Reports.StatsReport parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Reports.StatsReport parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Reports.StatsReport parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Reports.StatsReport parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Reports.StatsReport parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Reports.StatsReport parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Reports.StatsReport parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Reports.StatsReport.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Reports.StatsReport.Builder newBuilder()
    • newBuilder

      public static Reports.StatsReport.Builder newBuilder(Reports.StatsReport prototype)
    • toBuilder

      public Reports.StatsReport.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Reports.StatsReport.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Reports.StatsReport getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Reports.StatsReport> parser()
    • getParserForType

      public com.google.protobuf.Parser<Reports.StatsReport> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public Reports.StatsReport getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder