Class HttpRequestContext
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.devtools.clouderrorreporting.v1beta1.HttpRequestContext
-
- All Implemented Interfaces:
HttpRequestContextOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class HttpRequestContext extends com.google.protobuf.GeneratedMessageV3 implements HttpRequestContextOrBuilder
HTTP request data that is related to a reported error. This data should be provided by the application when reporting an error, unless the error report has been generated automatically from Google App Engine logs.
Protobuf typegoogle.devtools.clouderrorreporting.v1beta1.HttpRequestContext- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHttpRequestContext.BuilderHTTP request data that is related to a reported error.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intMETHOD_FIELD_NUMBERstatic intREFERRER_FIELD_NUMBERstatic intREMOTE_IP_FIELD_NUMBERstatic intRESPONSE_STATUS_CODE_FIELD_NUMBERstatic intURL_FIELD_NUMBERstatic intUSER_AGENT_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static HttpRequestContextgetDefaultInstance()HttpRequestContextgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetMethod()The type of HTTP request, such as `GET`, `POST`, etc.com.google.protobuf.ByteStringgetMethodBytes()The type of HTTP request, such as `GET`, `POST`, etc.com.google.protobuf.Parser<HttpRequestContext>getParserForType()StringgetReferrer()The referrer information that is provided with the request.com.google.protobuf.ByteStringgetReferrerBytes()The referrer information that is provided with the request.StringgetRemoteIp()The IP address from which the request originated.com.google.protobuf.ByteStringgetRemoteIpBytes()The IP address from which the request originated.intgetResponseStatusCode()The HTTP response status code for the request.intgetSerializedSize()StringgetUrl()The URL of the request.com.google.protobuf.ByteStringgetUrlBytes()The URL of the request.StringgetUserAgent()The user agent information that is provided with the request.com.google.protobuf.ByteStringgetUserAgentBytes()The user agent information that is provided with the request.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static HttpRequestContext.BuildernewBuilder()static HttpRequestContext.BuildernewBuilder(HttpRequestContext prototype)HttpRequestContext.BuildernewBuilderForType()protected HttpRequestContext.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static HttpRequestContextparseDelimitedFrom(InputStream input)static HttpRequestContextparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HttpRequestContextparseFrom(byte[] data)static HttpRequestContextparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HttpRequestContextparseFrom(com.google.protobuf.ByteString data)static HttpRequestContextparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HttpRequestContextparseFrom(com.google.protobuf.CodedInputStream input)static HttpRequestContextparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HttpRequestContextparseFrom(InputStream input)static HttpRequestContextparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HttpRequestContextparseFrom(ByteBuffer data)static HttpRequestContextparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<HttpRequestContext>parser()HttpRequestContext.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
METHOD_FIELD_NUMBER
public static final int METHOD_FIELD_NUMBER
- See Also:
- Constant Field Values
-
URL_FIELD_NUMBER
public static final int URL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
USER_AGENT_FIELD_NUMBER
public static final int USER_AGENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REFERRER_FIELD_NUMBER
public static final int REFERRER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESPONSE_STATUS_CODE_FIELD_NUMBER
public static final int RESPONSE_STATUS_CODE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REMOTE_IP_FIELD_NUMBER
public static final int REMOTE_IP_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getMethod
public String getMethod()
The type of HTTP request, such as `GET`, `POST`, etc.
string method = 1;- Specified by:
getMethodin interfaceHttpRequestContextOrBuilder- Returns:
- The method.
-
getMethodBytes
public com.google.protobuf.ByteString getMethodBytes()
The type of HTTP request, such as `GET`, `POST`, etc.
string method = 1;- Specified by:
getMethodBytesin interfaceHttpRequestContextOrBuilder- Returns:
- The bytes for method.
-
getUrl
public String getUrl()
The URL of the request.
string url = 2;- Specified by:
getUrlin interfaceHttpRequestContextOrBuilder- Returns:
- The url.
-
getUrlBytes
public com.google.protobuf.ByteString getUrlBytes()
The URL of the request.
string url = 2;- Specified by:
getUrlBytesin interfaceHttpRequestContextOrBuilder- Returns:
- The bytes for url.
-
getUserAgent
public String getUserAgent()
The user agent information that is provided with the request.
string user_agent = 3;- Specified by:
getUserAgentin interfaceHttpRequestContextOrBuilder- Returns:
- The userAgent.
-
getUserAgentBytes
public com.google.protobuf.ByteString getUserAgentBytes()
The user agent information that is provided with the request.
string user_agent = 3;- Specified by:
getUserAgentBytesin interfaceHttpRequestContextOrBuilder- Returns:
- The bytes for userAgent.
-
getReferrer
public String getReferrer()
The referrer information that is provided with the request.
string referrer = 4;- Specified by:
getReferrerin interfaceHttpRequestContextOrBuilder- Returns:
- The referrer.
-
getReferrerBytes
public com.google.protobuf.ByteString getReferrerBytes()
The referrer information that is provided with the request.
string referrer = 4;- Specified by:
getReferrerBytesin interfaceHttpRequestContextOrBuilder- Returns:
- The bytes for referrer.
-
getResponseStatusCode
public int getResponseStatusCode()
The HTTP response status code for the request.
int32 response_status_code = 5;- Specified by:
getResponseStatusCodein interfaceHttpRequestContextOrBuilder- Returns:
- The responseStatusCode.
-
getRemoteIp
public String getRemoteIp()
The IP address from which the request originated. This can be IPv4, IPv6, or a token which is derived from the IP address, depending on the data that has been provided in the error report.
string remote_ip = 6;- Specified by:
getRemoteIpin interfaceHttpRequestContextOrBuilder- Returns:
- The remoteIp.
-
getRemoteIpBytes
public com.google.protobuf.ByteString getRemoteIpBytes()
The IP address from which the request originated. This can be IPv4, IPv6, or a token which is derived from the IP address, depending on the data that has been provided in the error report.
string remote_ip = 6;- Specified by:
getRemoteIpBytesin interfaceHttpRequestContextOrBuilder- Returns:
- The bytes for remoteIp.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- 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 HttpRequestContext parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpRequestContext parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpRequestContext parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpRequestContext parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpRequestContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpRequestContext parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpRequestContext parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static HttpRequestContext parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static HttpRequestContext parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static HttpRequestContext parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static HttpRequestContext parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static HttpRequestContext parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public HttpRequestContext.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static HttpRequestContext.Builder newBuilder()
-
newBuilder
public static HttpRequestContext.Builder newBuilder(HttpRequestContext prototype)
-
toBuilder
public HttpRequestContext.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected HttpRequestContext.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static HttpRequestContext getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<HttpRequestContext> parser()
-
getParserForType
public com.google.protobuf.Parser<HttpRequestContext> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public HttpRequestContext getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-