public static final class Reports.ReportHeader extends com.google.protobuf.GeneratedMessageV3 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| Modifier and Type | Class and Description |
|---|---|
static class |
Reports.ReportHeader.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.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
AGENT_VERSION_FIELD_NUMBER |
static int |
HOSTNAME_FIELD_NUMBER |
static int |
RUNTIME_VERSION_FIELD_NUMBER |
static int |
SCHEMA_HASH_FIELD_NUMBER |
static int |
SCHEMA_TAG_FIELD_NUMBER |
static int |
SERVICE_FIELD_NUMBER |
static int |
SERVICE_VERSION_FIELD_NUMBER |
static int |
UNAME_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAgentVersion()
eg "engineproxy 0.1.0"
|
com.google.protobuf.ByteString |
getAgentVersionBytes()
eg "engineproxy 0.1.0"
|
static Reports.ReportHeader |
getDefaultInstance() |
Reports.ReportHeader |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
java.lang.String |
getHostname()
eg "host-01.example.com"
|
com.google.protobuf.ByteString |
getHostnameBytes()
eg "host-01.example.com"
|
com.google.protobuf.Parser<Reports.ReportHeader> |
getParserForType() |
java.lang.String |
getRuntimeVersion()
eg "node v4.6.0"
|
com.google.protobuf.ByteString |
getRuntimeVersionBytes()
eg "node v4.6.0"
|
java.lang.String |
getSchemaHash()
The hex representation of the sha512 of the introspection response
|
com.google.protobuf.ByteString |
getSchemaHashBytes()
The hex representation of the sha512 of the introspection response
|
java.lang.String |
getSchemaTag()
eg "current", "prod"
|
com.google.protobuf.ByteString |
getSchemaTagBytes()
eg "current", "prod"
|
int |
getSerializedSize() |
java.lang.String |
getService()
string service = 3; |
com.google.protobuf.ByteString |
getServiceBytes()
string service = 3; |
java.lang.String |
getServiceVersion()
eg "prod-4279-20160804T065423Z-5-g3cf0aa8" (taken from `git describe --tags`)
|
com.google.protobuf.ByteString |
getServiceVersionBytes()
eg "prod-4279-20160804T065423Z-5-g3cf0aa8" (taken from `git describe --tags`)
|
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"
|
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"
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Reports.ReportHeader.Builder |
newBuilder() |
static Reports.ReportHeader.Builder |
newBuilder(Reports.ReportHeader prototype) |
Reports.ReportHeader.Builder |
newBuilderForType() |
protected Reports.ReportHeader.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected java.lang.Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Reports.ReportHeader |
parseDelimitedFrom(java.io.InputStream input) |
static Reports.ReportHeader |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Reports.ReportHeader |
parseFrom(byte[] data) |
static Reports.ReportHeader |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Reports.ReportHeader |
parseFrom(java.nio.ByteBuffer data) |
static Reports.ReportHeader |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Reports.ReportHeader |
parseFrom(com.google.protobuf.ByteString data) |
static Reports.ReportHeader |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Reports.ReportHeader |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Reports.ReportHeader |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Reports.ReportHeader |
parseFrom(java.io.InputStream input) |
static Reports.ReportHeader |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Reports.ReportHeader> |
parser() |
Reports.ReportHeader.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int SERVICE_FIELD_NUMBER
public static final int HOSTNAME_FIELD_NUMBER
public static final int AGENT_VERSION_FIELD_NUMBER
public static final int SERVICE_VERSION_FIELD_NUMBER
public static final int RUNTIME_VERSION_FIELD_NUMBER
public static final int UNAME_FIELD_NUMBER
public static final int SCHEMA_TAG_FIELD_NUMBER
public static final int SCHEMA_HASH_FIELD_NUMBER
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public java.lang.String getService()
string service = 3;getService in interface Reports.ReportHeaderOrBuilderpublic com.google.protobuf.ByteString getServiceBytes()
string service = 3;getServiceBytes in interface Reports.ReportHeaderOrBuilderpublic java.lang.String getHostname()
eg "host-01.example.com"
string hostname = 5;getHostname in interface Reports.ReportHeaderOrBuilderpublic com.google.protobuf.ByteString getHostnameBytes()
eg "host-01.example.com"
string hostname = 5;getHostnameBytes in interface Reports.ReportHeaderOrBuilderpublic java.lang.String getAgentVersion()
eg "engineproxy 0.1.0"
string agent_version = 6;getAgentVersion in interface Reports.ReportHeaderOrBuilderpublic com.google.protobuf.ByteString getAgentVersionBytes()
eg "engineproxy 0.1.0"
string agent_version = 6;getAgentVersionBytes in interface Reports.ReportHeaderOrBuilderpublic java.lang.String getServiceVersion()
eg "prod-4279-20160804T065423Z-5-g3cf0aa8" (taken from `git describe --tags`)
string service_version = 7;getServiceVersion in interface Reports.ReportHeaderOrBuilderpublic com.google.protobuf.ByteString getServiceVersionBytes()
eg "prod-4279-20160804T065423Z-5-g3cf0aa8" (taken from `git describe --tags`)
string service_version = 7;getServiceVersionBytes in interface Reports.ReportHeaderOrBuilderpublic java.lang.String getRuntimeVersion()
eg "node v4.6.0"
string runtime_version = 8;getRuntimeVersion in interface Reports.ReportHeaderOrBuilderpublic com.google.protobuf.ByteString getRuntimeVersionBytes()
eg "node v4.6.0"
string runtime_version = 8;getRuntimeVersionBytes in interface Reports.ReportHeaderOrBuilderpublic 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;getUname in interface Reports.ReportHeaderOrBuilderpublic 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;getUnameBytes in interface Reports.ReportHeaderOrBuilderpublic java.lang.String getSchemaTag()
eg "current", "prod"
string schema_tag = 10;getSchemaTag in interface Reports.ReportHeaderOrBuilderpublic com.google.protobuf.ByteString getSchemaTagBytes()
eg "current", "prod"
string schema_tag = 10;getSchemaTagBytes in interface Reports.ReportHeaderOrBuilderpublic java.lang.String getSchemaHash()
The hex representation of the sha512 of the introspection response
string schema_hash = 11;getSchemaHash in interface Reports.ReportHeaderOrBuilderpublic com.google.protobuf.ByteString getSchemaHashBytes()
The hex representation of the sha512 of the introspection response
string schema_hash = 11;getSchemaHashBytes in interface Reports.ReportHeaderOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Reports.ReportHeader parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Reports.ReportHeader parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Reports.ReportHeader parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Reports.ReportHeader parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Reports.ReportHeader parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Reports.ReportHeader parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Reports.ReportHeader parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Reports.ReportHeader parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Reports.ReportHeader parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Reports.ReportHeader parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Reports.ReportHeader parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Reports.ReportHeader parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Reports.ReportHeader.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Reports.ReportHeader.Builder newBuilder()
public static Reports.ReportHeader.Builder newBuilder(Reports.ReportHeader prototype)
public Reports.ReportHeader.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Reports.ReportHeader.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Reports.ReportHeader getDefaultInstance()
public static com.google.protobuf.Parser<Reports.ReportHeader> parser()
public com.google.protobuf.Parser<Reports.ReportHeader> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Reports.ReportHeader getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder