public static final class AttributeContext.Response.Builder extends GeneratedMessageV3.Builder<AttributeContext.Response.Builder> implements AttributeContext.ResponseOrBuilder
This message defines attributes for a typical network response. It
generally models semantics of an HTTP response.
Protobuf type google.rpc.context.AttributeContext.Response
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AttributeContext.Response.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public AttributeContext.Response build()
buildPartial()
public AttributeContext.Response buildPartial()
clear()
public AttributeContext.Response.Builder clear()
Overrides
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;
clearCode()
public AttributeContext.Response.Builder clearCode()
The HTTP response status code, such as 200
and 404
.
int64 code = 1;
clearField(Descriptors.FieldDescriptor field)
public AttributeContext.Response.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public AttributeContext.Response.Builder clearHeaders()
clearOneof(Descriptors.OneofDescriptor oneof)
public AttributeContext.Response.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearSize()
public AttributeContext.Response.Builder clearSize()
The HTTP response size in bytes. If unknown, it must be -1.
int64 size = 2;
clearTime()
public AttributeContext.Response.Builder clearTime()
The timestamp when the destination
service sends the last byte of
the response.
.google.protobuf.Timestamp time = 4;
clone()
public AttributeContext.Response.Builder clone()
Overrides
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
|
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;
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;
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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public Map<String,String> getHeaders()
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 | |
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;
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;
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
|
public Map<String,String> getMutableHeaders()
Use alternate mutation accessors instead.
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;
getTimeBuilder()
public Timestamp.Builder getTimeBuilder()
The timestamp when the destination
service sends the last byte of
the response.
.google.protobuf.Timestamp time = 4;
getTimeOrBuilder()
public TimestampOrBuilder getTimeOrBuilder()
The timestamp when the destination
service sends the last byte of
the response.
.google.protobuf.Timestamp time = 4;
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()
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
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;
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AttributeContext.Response.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public AttributeContext.Response.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeFrom(AttributeContext.Response other)
public AttributeContext.Response.Builder mergeFrom(AttributeContext.Response other)
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;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AttributeContext.Response.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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;
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;
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
|
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;
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
|
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 | long
The code to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public AttributeContext.Response.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AttributeContext.Response.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
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 | long
The size to set.
|
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;
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
|
setUnknownFields(UnknownFieldSet unknownFields)
public final AttributeContext.Response.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides