- 0.176.0-beta (latest)
- 0.175.0-beta
- 0.174.0-beta
- 0.173.0-beta
- 0.172.0-beta
- 0.170.0-beta
- 0.169.0-beta
- 0.168.0-beta
- 0.167.0-beta
- 0.166.0-beta
- 0.165.0-beta
- 0.164.0-beta
- 0.163.0-beta
- 0.162.0-beta
- 0.161.0-beta
- 0.160.0-beta
- 0.158.0-beta
- 0.157.0-beta
- 0.156.0-beta
- 0.155.0-beta
- 0.154.0-beta
- 0.153.0-beta
- 0.152.0-beta
- 0.151.0-beta
- 0.150.0-beta
- 0.149.0-beta
- 0.148.0-beta
- 0.145.0-beta
- 0.144.0-beta
- 0.143.0-beta
- 0.142.0-beta
- 0.141.0-beta
- 0.140.0-beta
- 0.139.0-beta
- 0.138.0-beta
- 0.137.0-beta
- 0.136.0-beta
- 0.135.0-beta
- 0.134.0-beta
- 0.133.0-beta
- 0.132.0-beta
- 0.130.0-beta
- 0.129.0-beta
- 0.128.0-beta
- 0.127.0-beta
- 0.126.0-beta
- 0.125.0-beta
- 0.124.15-beta
- 0.123.4-beta
- 0.122.23-beta
public static final class HttpRequestContext.Builder extends GeneratedMessageV3.Builder<HttpRequestContext.Builder> 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 type google.devtools.clouderrorreporting.v1beta1.HttpRequestContext
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > HttpRequestContext.BuilderImplements
HttpRequestContextOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public HttpRequestContext.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
HttpRequestContext.Builder |
build()
public HttpRequestContext build()
Returns | |
---|---|
Type | Description |
HttpRequestContext |
buildPartial()
public HttpRequestContext buildPartial()
Returns | |
---|---|
Type | Description |
HttpRequestContext |
clear()
public HttpRequestContext.Builder clear()
Returns | |
---|---|
Type | Description |
HttpRequestContext.Builder |
clearField(Descriptors.FieldDescriptor field)
public HttpRequestContext.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
HttpRequestContext.Builder |
clearMethod()
public HttpRequestContext.Builder clearMethod()
The type of HTTP request, such as GET
, POST
, etc.
string method = 1;
Returns | |
---|---|
Type | Description |
HttpRequestContext.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public HttpRequestContext.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
HttpRequestContext.Builder |
clearReferrer()
public HttpRequestContext.Builder clearReferrer()
The referrer information that is provided with the request.
string referrer = 4;
Returns | |
---|---|
Type | Description |
HttpRequestContext.Builder | This builder for chaining. |
clearRemoteIp()
public HttpRequestContext.Builder clearRemoteIp()
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;
Returns | |
---|---|
Type | Description |
HttpRequestContext.Builder | This builder for chaining. |
clearResponseStatusCode()
public HttpRequestContext.Builder clearResponseStatusCode()
The HTTP response status code for the request.
int32 response_status_code = 5;
Returns | |
---|---|
Type | Description |
HttpRequestContext.Builder | This builder for chaining. |
clearUrl()
public HttpRequestContext.Builder clearUrl()
The URL of the request.
string url = 2;
Returns | |
---|---|
Type | Description |
HttpRequestContext.Builder | This builder for chaining. |
clearUserAgent()
public HttpRequestContext.Builder clearUserAgent()
The user agent information that is provided with the request.
string user_agent = 3;
Returns | |
---|---|
Type | Description |
HttpRequestContext.Builder | This builder for chaining. |
clone()
public HttpRequestContext.Builder clone()
Returns | |
---|---|
Type | Description |
HttpRequestContext.Builder |
getDefaultInstanceForType()
public HttpRequestContext getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
HttpRequestContext |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getMethod()
public String getMethod()
The type of HTTP request, such as GET
, POST
, etc.
string method = 1;
Returns | |
---|---|
Type | Description |
String | The method. |
getMethodBytes()
public ByteString getMethodBytes()
The type of HTTP request, such as GET
, POST
, etc.
string method = 1;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for method. |
getReferrer()
public String getReferrer()
The referrer information that is provided with the request.
string referrer = 4;
Returns | |
---|---|
Type | Description |
String | The referrer. |
getReferrerBytes()
public ByteString getReferrerBytes()
The referrer information that is provided with the request.
string referrer = 4;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for referrer. |
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;
Returns | |
---|---|
Type | Description |
String | The remoteIp. |
getRemoteIpBytes()
public 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;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for remoteIp. |
getResponseStatusCode()
public int getResponseStatusCode()
The HTTP response status code for the request.
int32 response_status_code = 5;
Returns | |
---|---|
Type | Description |
int | The responseStatusCode. |
getUrl()
public String getUrl()
The URL of the request.
string url = 2;
Returns | |
---|---|
Type | Description |
String | The url. |
getUrlBytes()
public ByteString getUrlBytes()
The URL of the request.
string url = 2;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for url. |
getUserAgent()
public String getUserAgent()
The user agent information that is provided with the request.
string user_agent = 3;
Returns | |
---|---|
Type | Description |
String | The userAgent. |
getUserAgentBytes()
public ByteString getUserAgentBytes()
The user agent information that is provided with the request.
string user_agent = 3;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for userAgent. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(HttpRequestContext other)
public HttpRequestContext.Builder mergeFrom(HttpRequestContext other)
Parameter | |
---|---|
Name | Description |
other | HttpRequestContext |
Returns | |
---|---|
Type | Description |
HttpRequestContext.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public HttpRequestContext.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
HttpRequestContext.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public HttpRequestContext.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
HttpRequestContext.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final HttpRequestContext.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
HttpRequestContext.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public HttpRequestContext.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
HttpRequestContext.Builder |
setMethod(String value)
public HttpRequestContext.Builder setMethod(String value)
The type of HTTP request, such as GET
, POST
, etc.
string method = 1;
Parameter | |
---|---|
Name | Description |
value | String The method to set. |
Returns | |
---|---|
Type | Description |
HttpRequestContext.Builder | This builder for chaining. |
setMethodBytes(ByteString value)
public HttpRequestContext.Builder setMethodBytes(ByteString value)
The type of HTTP request, such as GET
, POST
, etc.
string method = 1;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for method to set. |
Returns | |
---|---|
Type | Description |
HttpRequestContext.Builder | This builder for chaining. |
setReferrer(String value)
public HttpRequestContext.Builder setReferrer(String value)
The referrer information that is provided with the request.
string referrer = 4;
Parameter | |
---|---|
Name | Description |
value | String The referrer to set. |
Returns | |
---|---|
Type | Description |
HttpRequestContext.Builder | This builder for chaining. |
setReferrerBytes(ByteString value)
public HttpRequestContext.Builder setReferrerBytes(ByteString value)
The referrer information that is provided with the request.
string referrer = 4;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for referrer to set. |
Returns | |
---|---|
Type | Description |
HttpRequestContext.Builder | This builder for chaining. |
setRemoteIp(String value)
public HttpRequestContext.Builder setRemoteIp(String value)
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;
Parameter | |
---|---|
Name | Description |
value | String The remoteIp to set. |
Returns | |
---|---|
Type | Description |
HttpRequestContext.Builder | This builder for chaining. |
setRemoteIpBytes(ByteString value)
public HttpRequestContext.Builder setRemoteIpBytes(ByteString value)
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;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for remoteIp to set. |
Returns | |
---|---|
Type | Description |
HttpRequestContext.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public HttpRequestContext.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
HttpRequestContext.Builder |
setResponseStatusCode(int value)
public HttpRequestContext.Builder setResponseStatusCode(int value)
The HTTP response status code for the request.
int32 response_status_code = 5;
Parameter | |
---|---|
Name | Description |
value | int The responseStatusCode to set. |
Returns | |
---|---|
Type | Description |
HttpRequestContext.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final HttpRequestContext.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
HttpRequestContext.Builder |
setUrl(String value)
public HttpRequestContext.Builder setUrl(String value)
The URL of the request.
string url = 2;
Parameter | |
---|---|
Name | Description |
value | String The url to set. |
Returns | |
---|---|
Type | Description |
HttpRequestContext.Builder | This builder for chaining. |
setUrlBytes(ByteString value)
public HttpRequestContext.Builder setUrlBytes(ByteString value)
The URL of the request.
string url = 2;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for url to set. |
Returns | |
---|---|
Type | Description |
HttpRequestContext.Builder | This builder for chaining. |
setUserAgent(String value)
public HttpRequestContext.Builder setUserAgent(String value)
The user agent information that is provided with the request.
string user_agent = 3;
Parameter | |
---|---|
Name | Description |
value | String The userAgent to set. |
Returns | |
---|---|
Type | Description |
HttpRequestContext.Builder | This builder for chaining. |
setUserAgentBytes(ByteString value)
public HttpRequestContext.Builder setUserAgentBytes(ByteString value)
The user agent information that is provided with the request.
string user_agent = 3;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for userAgent to set. |
Returns | |
---|---|
Type | Description |
HttpRequestContext.Builder | This builder for chaining. |