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 class
HttpRequestContext.Builder
HTTP 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 int
METHOD_FIELD_NUMBER
static int
REFERRER_FIELD_NUMBER
static int
REMOTE_IP_FIELD_NUMBER
static int
RESPONSE_STATUS_CODE_FIELD_NUMBER
static int
URL_FIELD_NUMBER
static int
USER_AGENT_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static HttpRequestContext
getDefaultInstance()
HttpRequestContext
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
String
getMethod()
The type of HTTP request, such as `GET`, `POST`, etc.com.google.protobuf.ByteString
getMethodBytes()
The type of HTTP request, such as `GET`, `POST`, etc.com.google.protobuf.Parser<HttpRequestContext>
getParserForType()
String
getReferrer()
The referrer information that is provided with the request.com.google.protobuf.ByteString
getReferrerBytes()
The referrer information that is provided with the request.String
getRemoteIp()
The IP address from which the request originated.com.google.protobuf.ByteString
getRemoteIpBytes()
The IP address from which the request originated.int
getResponseStatusCode()
The HTTP response status code for the request.int
getSerializedSize()
String
getUrl()
The URL of the request.com.google.protobuf.ByteString
getUrlBytes()
The URL of the request.String
getUserAgent()
The user agent information that is provided with the request.com.google.protobuf.ByteString
getUserAgentBytes()
The user agent information that is provided with the request.int
hashCode()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static HttpRequestContext.Builder
newBuilder()
static HttpRequestContext.Builder
newBuilder(HttpRequestContext prototype)
HttpRequestContext.Builder
newBuilderForType()
protected HttpRequestContext.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static HttpRequestContext
parseDelimitedFrom(InputStream input)
static HttpRequestContext
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static HttpRequestContext
parseFrom(byte[] data)
static HttpRequestContext
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static HttpRequestContext
parseFrom(com.google.protobuf.ByteString data)
static HttpRequestContext
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static HttpRequestContext
parseFrom(com.google.protobuf.CodedInputStream input)
static HttpRequestContext
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static HttpRequestContext
parseFrom(InputStream input)
static HttpRequestContext
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static HttpRequestContext
parseFrom(ByteBuffer data)
static HttpRequestContext
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<HttpRequestContext>
parser()
HttpRequestContext.Builder
toBuilder()
void
writeTo(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:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getMethod
public String getMethod()
The type of HTTP request, such as `GET`, `POST`, etc.
string method = 1;
- Specified by:
getMethod
in 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:
getMethodBytes
in interfaceHttpRequestContextOrBuilder
- Returns:
- The bytes for method.
-
getUrl
public String getUrl()
The URL of the request.
string url = 2;
- Specified by:
getUrl
in interfaceHttpRequestContextOrBuilder
- Returns:
- The url.
-
getUrlBytes
public com.google.protobuf.ByteString getUrlBytes()
The URL of the request.
string url = 2;
- Specified by:
getUrlBytes
in 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:
getUserAgent
in 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:
getUserAgentBytes
in interfaceHttpRequestContextOrBuilder
- Returns:
- The bytes for userAgent.
-
getReferrer
public String getReferrer()
The referrer information that is provided with the request.
string referrer = 4;
- Specified by:
getReferrer
in 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:
getReferrerBytes
in 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:
getResponseStatusCode
in 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:
getRemoteIp
in 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:
getRemoteIpBytes
in interfaceHttpRequestContextOrBuilder
- Returns:
- The bytes for remoteIp.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected HttpRequestContext.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public HttpRequestContext getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-