Package mdg.engine.proto
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe `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.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleaneg "engineproxy 0.1.0"com.google.protobuf.ByteStringeg "engineproxy 0.1.0"static Reports.ReportHeaderstatic final com.google.protobuf.Descriptors.Descriptoreg "host-01.example.com"com.google.protobuf.ByteStringeg "host-01.example.com"com.google.protobuf.Parser<Reports.ReportHeader>eg "node v4.6.0"com.google.protobuf.ByteStringeg "node v4.6.0"The hex representation of the sha512 of the introspection responsecom.google.protobuf.ByteStringThe hex representation of the sha512 of the introspection responseeg "current", "prod"com.google.protobuf.ByteStringeg "current", "prod"intstring service = 3;com.google.protobuf.ByteStringstring service = 3;eg "prod-4279-20160804T065423Z-5-g3cf0aa8" (taken from `git describe --tags`)com.google.protobuf.ByteStringeg "prod-4279-20160804T065423Z-5-g3cf0aa8" (taken from `git describe --tags`)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.ByteStringeg "Linux box 4.6.5-1-ec2 #1 SMP Mon Aug 1 02:31:38 PDT 2016 x86_64 GNU/Linux"inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic Reports.ReportHeader.Builderstatic Reports.ReportHeader.BuildernewBuilder(Reports.ReportHeader prototype) protected Reports.ReportHeader.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static Reports.ReportHeaderparseDelimitedFrom(InputStream input) static Reports.ReportHeaderparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Reports.ReportHeaderparseFrom(byte[] data) static Reports.ReportHeaderparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Reports.ReportHeaderparseFrom(com.google.protobuf.ByteString data) static Reports.ReportHeaderparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Reports.ReportHeaderparseFrom(com.google.protobuf.CodedInputStream input) static Reports.ReportHeaderparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Reports.ReportHeaderparseFrom(InputStream input) static Reports.ReportHeaderparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Reports.ReportHeaderparseFrom(ByteBuffer data) static Reports.ReportHeaderparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Reports.ReportHeader>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getService
string service = 3;- Specified by:
getServicein interfaceReports.ReportHeaderOrBuilder- Returns:
- The service.
-
getServiceBytes
public com.google.protobuf.ByteString getServiceBytes()string service = 3;- Specified by:
getServiceBytesin interfaceReports.ReportHeaderOrBuilder- Returns:
- The bytes for service.
-
getHostname
eg "host-01.example.com"
string hostname = 5;- Specified by:
getHostnamein interfaceReports.ReportHeaderOrBuilder- Returns:
- The hostname.
-
getHostnameBytes
public com.google.protobuf.ByteString getHostnameBytes()eg "host-01.example.com"
string hostname = 5;- Specified by:
getHostnameBytesin interfaceReports.ReportHeaderOrBuilder- Returns:
- The bytes for hostname.
-
getAgentVersion
eg "engineproxy 0.1.0"
string agent_version = 6;- Specified by:
getAgentVersionin interfaceReports.ReportHeaderOrBuilder- Returns:
- The agentVersion.
-
getAgentVersionBytes
public com.google.protobuf.ByteString getAgentVersionBytes()eg "engineproxy 0.1.0"
string agent_version = 6;- Specified by:
getAgentVersionBytesin interfaceReports.ReportHeaderOrBuilder- Returns:
- The bytes for agentVersion.
-
getServiceVersion
eg "prod-4279-20160804T065423Z-5-g3cf0aa8" (taken from `git describe --tags`)
string service_version = 7;- Specified by:
getServiceVersionin interfaceReports.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:
getServiceVersionBytesin interfaceReports.ReportHeaderOrBuilder- Returns:
- The bytes for serviceVersion.
-
getRuntimeVersion
eg "node v4.6.0"
string runtime_version = 8;- Specified by:
getRuntimeVersionin interfaceReports.ReportHeaderOrBuilder- Returns:
- The runtimeVersion.
-
getRuntimeVersionBytes
public com.google.protobuf.ByteString getRuntimeVersionBytes()eg "node v4.6.0"
string runtime_version = 8;- Specified by:
getRuntimeVersionBytesin interfaceReports.ReportHeaderOrBuilder- Returns:
- The bytes for runtimeVersion.
-
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:
getUnamein interfaceReports.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:
getUnameBytesin interfaceReports.ReportHeaderOrBuilder- Returns:
- The bytes for uname.
-
getSchemaTag
eg "current", "prod"
string schema_tag = 10;- Specified by:
getSchemaTagin interfaceReports.ReportHeaderOrBuilder- Returns:
- The schemaTag.
-
getSchemaTagBytes
public com.google.protobuf.ByteString getSchemaTagBytes()eg "current", "prod"
string schema_tag = 10;- Specified by:
getSchemaTagBytesin interfaceReports.ReportHeaderOrBuilder- Returns:
- The bytes for schemaTag.
-
getSchemaHash
The hex representation of the sha512 of the introspection response
string schema_hash = 11;- Specified by:
getSchemaHashin interfaceReports.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:
getSchemaHashBytesin interfaceReports.ReportHeaderOrBuilder- Returns:
- The bytes for schemaHash.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
- Throws:
IOException
-
parseFrom
public static Reports.ReportHeader parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Reports.ReportHeader.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-