Class HttpRequestContext.Builder (0.165.0-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

Static 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
Overrides

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
Overrides

clearField(Descriptors.FieldDescriptor field)

public HttpRequestContext.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
HttpRequestContext.Builder
Overrides

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
Overrides

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
Overrides

getDefaultInstanceForType()

public HttpRequestContext getDefaultInstanceForType()
Returns
Type Description
HttpRequestContext

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public HttpRequestContext.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
HttpRequestContext.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final HttpRequestContext.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
HttpRequestContext.Builder
Overrides

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
Overrides

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
Overrides

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
Overrides

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.