- 2.65.0 (latest)
- 2.64.1
- 2.63.2
- 2.62.0
- 2.61.3
- 2.60.0
- 2.59.2
- 2.58.0
- 2.57.0
- 2.56.0
- 2.54.1
- 2.53.0
- 2.52.0
- 2.51.0
- 2.50.1
- 2.49.0
- 2.48.0
- 2.46.0
- 2.45.1
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.1
- 2.38.0
- 2.37.1
- 2.36.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.26.0
- 2.25.1
- 2.24.0
- 2.23.1
- 2.22.1
- 2.21.1
- 2.15.0
- 2.14.3
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.6
- 2.8.4
- 2.7.4
public static final class AttributeContext.Response.Builder extends GeneratedMessage.Builder<AttributeContext.Response.Builder> implements AttributeContext.ResponseOrBuilderThis message defines attributes for a typical network response. It generally models semantics of an HTTP response.
Protobuf type google.rpc.context.AttributeContext.Response
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AttributeContext.Response.BuilderImplements
AttributeContext.ResponseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public AttributeContext.Response build()| Returns | |
|---|---|
| Type | Description |
AttributeContext.Response |
|
buildPartial()
public AttributeContext.Response buildPartial()| Returns | |
|---|---|
| Type | Description |
AttributeContext.Response |
|
clear()
public AttributeContext.Response.Builder clear()| Returns | |
|---|---|
| Type | Description |
AttributeContext.Response.Builder |
|
clearBackendLatency()
public AttributeContext.Response.Builder clearBackendLatency()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 |
AttributeContext.Response.Builder |
|
clearCode()
public AttributeContext.Response.Builder clearCode() The HTTP response status code, such as 200 and 404.
int64 code = 1;
| Returns | |
|---|---|
| Type | Description |
AttributeContext.Response.Builder |
This builder for chaining. |
clearHeaders()
public AttributeContext.Response.Builder clearHeaders()| Returns | |
|---|---|
| Type | Description |
AttributeContext.Response.Builder |
|
clearSize()
public AttributeContext.Response.Builder clearSize()The HTTP response size in bytes. If unknown, it must be -1.
int64 size = 2;
| Returns | |
|---|---|
| Type | Description |
AttributeContext.Response.Builder |
This builder for chaining. |
clearTime()
public AttributeContext.Response.Builder clearTime() The timestamp when the destination service sends the last byte of
the response.
.google.protobuf.Timestamp time = 4;
| Returns | |
|---|---|
| Type | Description |
AttributeContext.Response.Builder |
|
containsHeaders(String key)
public 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 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. |
getBackendLatencyBuilder()
public Duration.Builder getBackendLatencyBuilder()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 |
Builder |
|
getBackendLatencyOrBuilder()
public 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 long getCode() The HTTP response status code, such as 200 and 404.
int64 code = 1;
| Returns | |
|---|---|
| Type | Description |
long |
The code. |
getDefaultInstanceForType()
public AttributeContext.Response getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AttributeContext.Response |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getHeaders() (deprecated)
public Map<String,String> getHeaders()Use #getHeadersMap() instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getHeadersCount()
public 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 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 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 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 |
|
getMutableHeaders() (deprecated)
public Map<String,String> getMutableHeaders()Use alternate mutation accessors instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getSize()
public 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 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. |
getTimeBuilder()
public Timestamp.Builder getTimeBuilder() The timestamp when the destination service sends the last byte of
the response.
.google.protobuf.Timestamp time = 4;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getTimeOrBuilder()
public 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 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 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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeBackendLatency(Duration value)
public AttributeContext.Response.Builder mergeBackendLatency(Duration value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
AttributeContext.Response.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AttributeContext.Response.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AttributeContext.Response.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AttributeContext.Response.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AttributeContext.Response.Builder |
|
mergeFrom(AttributeContext.Response other)
public AttributeContext.Response.Builder mergeFrom(AttributeContext.Response other)| Parameter | |
|---|---|
| Name | Description |
other |
AttributeContext.Response |
| Returns | |
|---|---|
| Type | Description |
AttributeContext.Response.Builder |
|
mergeTime(Timestamp value)
public AttributeContext.Response.Builder mergeTime(Timestamp value) The timestamp when the destination service sends the last byte of
the response.
.google.protobuf.Timestamp time = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
AttributeContext.Response.Builder |
|
putAllHeaders(Map<String,String> values)
public AttributeContext.Response.Builder putAllHeaders(Map<String,String> values)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 |
values |
Map<String,String> |
| Returns | |
|---|---|
| Type | Description |
AttributeContext.Response.Builder |
|
putHeaders(String key, String value)
public AttributeContext.Response.Builder putHeaders(String key, String value)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 |
value |
String |
| Returns | |
|---|---|
| Type | Description |
AttributeContext.Response.Builder |
|
removeHeaders(String key)
public AttributeContext.Response.Builder removeHeaders(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 |
AttributeContext.Response.Builder |
|
setBackendLatency(Duration value)
public AttributeContext.Response.Builder setBackendLatency(Duration value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
Duration |
| Returns | |
|---|---|
| Type | Description |
AttributeContext.Response.Builder |
|
setBackendLatency(Duration.Builder builderForValue)
public AttributeContext.Response.Builder setBackendLatency(Duration.Builder builderForValue)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;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
AttributeContext.Response.Builder |
|
setCode(long value)
public AttributeContext.Response.Builder setCode(long value) The HTTP response status code, such as 200 and 404.
int64 code = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe code to set. |
| Returns | |
|---|---|
| Type | Description |
AttributeContext.Response.Builder |
This builder for chaining. |
setSize(long value)
public AttributeContext.Response.Builder setSize(long value)The HTTP response size in bytes. If unknown, it must be -1.
int64 size = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe size to set. |
| Returns | |
|---|---|
| Type | Description |
AttributeContext.Response.Builder |
This builder for chaining. |
setTime(Timestamp value)
public AttributeContext.Response.Builder setTime(Timestamp value) The timestamp when the destination service sends the last byte of
the response.
.google.protobuf.Timestamp time = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
AttributeContext.Response.Builder |
|
setTime(Timestamp.Builder builderForValue)
public AttributeContext.Response.Builder setTime(Timestamp.Builder builderForValue) The timestamp when the destination service sends the last byte of
the response.
.google.protobuf.Timestamp time = 4;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
AttributeContext.Response.Builder |
|