Class HttpRequestContext.Builder (0.127.0-beta)

Stay organized with collections Save and categorize content based on your preferences.
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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public HttpRequestContext.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
HttpRequestContext.Builder
Overrides

build()

public HttpRequestContext build()
Returns
TypeDescription
HttpRequestContext

buildPartial()

public HttpRequestContext buildPartial()
Returns
TypeDescription
HttpRequestContext

clear()

public HttpRequestContext.Builder clear()
Returns
TypeDescription
HttpRequestContext.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public HttpRequestContext.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
HttpRequestContext.Builder
Overrides

clearMethod()

public HttpRequestContext.Builder clearMethod()

The type of HTTP request, such as GET, POST, etc.

string method = 1;

Returns
TypeDescription
HttpRequestContext.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public HttpRequestContext.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
HttpRequestContext.Builder
Overrides

clearReferrer()

public HttpRequestContext.Builder clearReferrer()

The referrer information that is provided with the request.

string referrer = 4;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
HttpRequestContext.Builder

This builder for chaining.

clearUrl()

public HttpRequestContext.Builder clearUrl()

The URL of the request.

string url = 2;

Returns
TypeDescription
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
TypeDescription
HttpRequestContext.Builder

This builder for chaining.

clone()

public HttpRequestContext.Builder clone()
Returns
TypeDescription
HttpRequestContext.Builder
Overrides

getDefaultInstanceForType()

public HttpRequestContext getDefaultInstanceForType()
Returns
TypeDescription
HttpRequestContext

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMethod()

public String getMethod()

The type of HTTP request, such as GET, POST, etc.

string method = 1;

Returns
TypeDescription
String

The method.

getMethodBytes()

public ByteString getMethodBytes()

The type of HTTP request, such as GET, POST, etc.

string method = 1;

Returns
TypeDescription
ByteString

The bytes for method.

getReferrer()

public String getReferrer()

The referrer information that is provided with the request.

string referrer = 4;

Returns
TypeDescription
String

The referrer.

getReferrerBytes()

public ByteString getReferrerBytes()

The referrer information that is provided with the request.

string referrer = 4;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for remoteIp.

getResponseStatusCode()

public int getResponseStatusCode()

The HTTP response status code for the request.

int32 response_status_code = 5;

Returns
TypeDescription
int

The responseStatusCode.

getUrl()

public String getUrl()

The URL of the request.

string url = 2;

Returns
TypeDescription
String

The url.

getUrlBytes()

public ByteString getUrlBytes()

The URL of the request.

string url = 2;

Returns
TypeDescription
ByteString

The bytes for url.

getUserAgent()

public String getUserAgent()

The user agent information that is provided with the request.

string user_agent = 3;

Returns
TypeDescription
String

The userAgent.

getUserAgentBytes()

public ByteString getUserAgentBytes()

The user agent information that is provided with the request.

string user_agent = 3;

Returns
TypeDescription
ByteString

The bytes for userAgent.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(HttpRequestContext other)

public HttpRequestContext.Builder mergeFrom(HttpRequestContext other)
Parameter
NameDescription
otherHttpRequestContext
Returns
TypeDescription
HttpRequestContext.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public HttpRequestContext.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HttpRequestContext.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public HttpRequestContext.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
HttpRequestContext.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final HttpRequestContext.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
HttpRequestContext.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public HttpRequestContext.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The method to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for method to set.

Returns
TypeDescription
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
NameDescription
valueString

The referrer to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for referrer to set.

Returns
TypeDescription
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
NameDescription
valueString

The remoteIp to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for remoteIp to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueint

The responseStatusCode to set.

Returns
TypeDescription
HttpRequestContext.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final HttpRequestContext.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
HttpRequestContext.Builder
Overrides

setUrl(String value)

public HttpRequestContext.Builder setUrl(String value)

The URL of the request.

string url = 2;

Parameter
NameDescription
valueString

The url to set.

Returns
TypeDescription
HttpRequestContext.Builder

This builder for chaining.

setUrlBytes(ByteString value)

public HttpRequestContext.Builder setUrlBytes(ByteString value)

The URL of the request.

string url = 2;

Parameter
NameDescription
valueByteString

The bytes for url to set.

Returns
TypeDescription
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
NameDescription
valueString

The userAgent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for userAgent to set.

Returns
TypeDescription
HttpRequestContext.Builder

This builder for chaining.