Class Reports.ReportHeader

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

public static final class Reports.ReportHeader extends com.google.protobuf.GeneratedMessage implements Reports.ReportHeaderOrBuilder
 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 mdg.engine.proto.ReportHeader
See Also:
  • Field Details

    • SERVICE_FIELD_NUMBER

      public static final int SERVICE_FIELD_NUMBER
      See Also:
    • HOSTNAME_FIELD_NUMBER

      public static final int HOSTNAME_FIELD_NUMBER
      See Also:
    • AGENT_VERSION_FIELD_NUMBER

      public static final int AGENT_VERSION_FIELD_NUMBER
      See Also:
    • SERVICE_VERSION_FIELD_NUMBER

      public static final int SERVICE_VERSION_FIELD_NUMBER
      See Also:
    • RUNTIME_VERSION_FIELD_NUMBER

      public static final int RUNTIME_VERSION_FIELD_NUMBER
      See Also:
    • UNAME_FIELD_NUMBER

      public static final int UNAME_FIELD_NUMBER
      See Also:
    • SCHEMA_TAG_FIELD_NUMBER

      public static final int SCHEMA_TAG_FIELD_NUMBER
      See Also:
    • SCHEMA_HASH_FIELD_NUMBER

      public static final int SCHEMA_HASH_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

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

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

      public String getService()
      string service = 3;
      Specified by:
      getService in interface Reports.ReportHeaderOrBuilder
      Returns:
      The service.
    • getServiceBytes

      public com.google.protobuf.ByteString getServiceBytes()
      string service = 3;
      Specified by:
      getServiceBytes in interface Reports.ReportHeaderOrBuilder
      Returns:
      The bytes for service.
    • getHostname

      public String getHostname()
       eg "host-01.example.com"
       
      string hostname = 5;
      Specified by:
      getHostname in interface Reports.ReportHeaderOrBuilder
      Returns:
      The hostname.
    • getHostnameBytes

      public com.google.protobuf.ByteString getHostnameBytes()
       eg "host-01.example.com"
       
      string hostname = 5;
      Specified by:
      getHostnameBytes in interface Reports.ReportHeaderOrBuilder
      Returns:
      The bytes for hostname.
    • getAgentVersion

      public String getAgentVersion()
       eg "engineproxy 0.1.0"
       
      string agent_version = 6;
      Specified by:
      getAgentVersion in interface Reports.ReportHeaderOrBuilder
      Returns:
      The agentVersion.
    • getAgentVersionBytes

      public com.google.protobuf.ByteString getAgentVersionBytes()
       eg "engineproxy 0.1.0"
       
      string agent_version = 6;
      Specified by:
      getAgentVersionBytes in interface Reports.ReportHeaderOrBuilder
      Returns:
      The bytes for agentVersion.
    • getServiceVersion

      public String getServiceVersion()
       eg "prod-4279-20160804T065423Z-5-g3cf0aa8" (taken from `git describe --tags`)
       
      string service_version = 7;
      Specified by:
      getServiceVersion in interface Reports.ReportHeaderOrBuilder
      Returns:
      The serviceVersion.
    • getServiceVersionBytes

      public com.google.protobuf.ByteString getServiceVersionBytes()
       eg "prod-4279-20160804T065423Z-5-g3cf0aa8" (taken from `git describe --tags`)
       
      string service_version = 7;
      Specified by:
      getServiceVersionBytes in interface Reports.ReportHeaderOrBuilder
      Returns:
      The bytes for serviceVersion.
    • getRuntimeVersion

      public String getRuntimeVersion()
       eg "node v4.6.0"
       
      string runtime_version = 8;
      Specified by:
      getRuntimeVersion in interface Reports.ReportHeaderOrBuilder
      Returns:
      The runtimeVersion.
    • getRuntimeVersionBytes

      public com.google.protobuf.ByteString getRuntimeVersionBytes()
       eg "node v4.6.0"
       
      string runtime_version = 8;
      Specified by:
      getRuntimeVersionBytes in interface Reports.ReportHeaderOrBuilder
      Returns:
      The bytes for runtimeVersion.
    • getUname

      public 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;
      Specified by:
      getUname in interface Reports.ReportHeaderOrBuilder
      Returns:
      The uname.
    • getUnameBytes

      public com.google.protobuf.ByteString getUnameBytes()
       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;
      Specified by:
      getUnameBytes in interface Reports.ReportHeaderOrBuilder
      Returns:
      The bytes for uname.
    • getSchemaTag

      public String getSchemaTag()
       eg "current", "prod"
       
      string schema_tag = 10;
      Specified by:
      getSchemaTag in interface Reports.ReportHeaderOrBuilder
      Returns:
      The schemaTag.
    • getSchemaTagBytes

      public com.google.protobuf.ByteString getSchemaTagBytes()
       eg "current", "prod"
       
      string schema_tag = 10;
      Specified by:
      getSchemaTagBytes in interface Reports.ReportHeaderOrBuilder
      Returns:
      The bytes for schemaTag.
    • getSchemaHash

      public String getSchemaHash()
       The hex representation of the sha512 of the introspection response
       
      string schema_hash = 11;
      Specified by:
      getSchemaHash in interface Reports.ReportHeaderOrBuilder
      Returns:
      The schemaHash.
    • getSchemaHashBytes

      public com.google.protobuf.ByteString getSchemaHashBytes()
       The hex representation of the sha512 of the introspection response
       
      string schema_hash = 11;
      Specified by:
      getSchemaHashBytes in interface Reports.ReportHeaderOrBuilder
      Returns:
      The bytes for schemaHash.
    • 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.ReportHeader parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

      public static Reports.ReportHeader 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.ReportHeader parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static Reports.ReportHeader getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<Reports.ReportHeader> 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.ReportHeader getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder