Interface AttributeContext.ResponseOrBuilder (2.41.0)

public static interface AttributeContext.ResponseOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsHeaders(String key)

public abstract boolean containsHeaders(String key)

The HTTP response headers. If multiple headers share the same key, they must be merged according to HTTP spec. All header keys must be lowercased, because HTTP header keys are case-insensitive.

map<string, string> headers = 3;

Parameter
Name Description
key String
Returns
Type Description
boolean

getBackendLatency()

public abstract Duration getBackendLatency()

The amount of time it takes the backend service to fully respond to a request. Measured from when the destination service starts to send the request to the backend until when the destination service receives the complete response from the backend.

.google.protobuf.Duration backend_latency = 5;

Returns
Type Description
Duration

The backendLatency.

getBackendLatencyOrBuilder()

public abstract DurationOrBuilder getBackendLatencyOrBuilder()

The amount of time it takes the backend service to fully respond to a request. Measured from when the destination service starts to send the request to the backend until when the destination service receives the complete response from the backend.

.google.protobuf.Duration backend_latency = 5;

Returns
Type Description
DurationOrBuilder

getCode()

public abstract long getCode()

The HTTP response status code, such as 200 and 404.

int64 code = 1;

Returns
Type Description
long

The code.

getHeaders() (deprecated)

public abstract Map<String,String> getHeaders()

Use #getHeadersMap() instead.

Returns
Type Description
Map<String,String>

getHeadersCount()

public abstract int getHeadersCount()

The HTTP response headers. If multiple headers share the same key, they must be merged according to HTTP spec. All header keys must be lowercased, because HTTP header keys are case-insensitive.

map<string, string> headers = 3;

Returns
Type Description
int

getHeadersMap()

public abstract Map<String,String> getHeadersMap()

The HTTP response headers. If multiple headers share the same key, they must be merged according to HTTP spec. All header keys must be lowercased, because HTTP header keys are case-insensitive.

map<string, string> headers = 3;

Returns
Type Description
Map<String,String>

getHeadersOrDefault(String key, String defaultValue)

public abstract String getHeadersOrDefault(String key, String defaultValue)

The HTTP response headers. If multiple headers share the same key, they must be merged according to HTTP spec. All header keys must be lowercased, because HTTP header keys are case-insensitive.

map<string, string> headers = 3;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getHeadersOrThrow(String key)

public abstract String getHeadersOrThrow(String key)

The HTTP response headers. If multiple headers share the same key, they must be merged according to HTTP spec. All header keys must be lowercased, because HTTP header keys are case-insensitive.

map<string, string> headers = 3;

Parameter
Name Description
key String
Returns
Type Description
String

getSize()

public abstract long getSize()

The HTTP response size in bytes. If unknown, it must be -1.

int64 size = 2;

Returns
Type Description
long

The size.

getTime()

public abstract Timestamp getTime()

The timestamp when the destination service sends the last byte of the response.

.google.protobuf.Timestamp time = 4;

Returns
Type Description
Timestamp

The time.

getTimeOrBuilder()

public abstract TimestampOrBuilder getTimeOrBuilder()

The timestamp when the destination service sends the last byte of the response.

.google.protobuf.Timestamp time = 4;

Returns
Type Description
TimestampOrBuilder

hasBackendLatency()

public abstract boolean hasBackendLatency()

The amount of time it takes the backend service to fully respond to a request. Measured from when the destination service starts to send the request to the backend until when the destination service receives the complete response from the backend.

.google.protobuf.Duration backend_latency = 5;

Returns
Type Description
boolean

Whether the backendLatency field is set.

hasTime()

public abstract boolean hasTime()

The timestamp when the destination service sends the last byte of the response.

.google.protobuf.Timestamp time = 4;

Returns
Type Description
boolean

Whether the time field is set.