2.17.0 (latest) 2.15.0 2.10.0 2.2.0

    public sealed class AttributeContext.Types.Response : IMessage<AttributeContext.Types.Response>, IEquatable<AttributeContext.Types.Response>, IDeepCloneable<AttributeContext.Types.Response>, IBufferMessage, IMessage

This message defines attributes for a typical network response. It
generally models semantics of an HTTP response.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> AttributeContext.Types.Response

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[AttributeContext](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Rpc.Context.AttributeContext.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Rpc.Context.AttributeContext.Types.md.txt)[Response](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Rpc.Context.AttributeContext.Types.Response.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AttributeContext](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Rpc.Context.AttributeContext.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Rpc.Context.AttributeContext.Types.md.txt)[Response](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Rpc.Context.AttributeContext.Types.Response.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[AttributeContext](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Rpc.Context.AttributeContext.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Rpc.Context.AttributeContext.Types.md.txt)[Response](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Rpc.Context.AttributeContext.Types.Response.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals)

## Namespace

[Google.Rpc.Context](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.CommonProtos/latest/Google.Rpc.Context.md.txt)

## Assembly

Google.Api.CommonProtos.dll

## Constructors

### Response()

    public Response()

### Response(Response)

    public Response(AttributeContext.Types.Response other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `AttributeContextTypesResponse` |

## Fields

### BackendLatencyFieldNumber

    public const int BackendLatencyFieldNumber = 5

Field number for the "backend_latency" field.

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### CodeFieldNumber

    public const int CodeFieldNumber = 1

Field number for the "code" field.

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### HeadersFieldNumber

    public const int HeadersFieldNumber = 3

Field number for the "headers" field.

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### SizeFieldNumber

    public const int SizeFieldNumber = 2

Field number for the "size" field.

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### TimeFieldNumber

    public const int TimeFieldNumber = 4

Field number for the "time" field.

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

## Properties

### BackendLatency

    public Duration BackendLatency { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Duration` |   |

### Code

    public long Code { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `long` |   |

### Descriptor

    public static MessageDescriptor Descriptor { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `MessageDescriptor` |   |

### Headers

    public MapField<string, string> Headers { get; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `MapFieldstringstring` |   |

### Parser

    public static MessageParser<AttributeContext.Types.Response> Parser { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `MessageParserAttributeContextTypesResponse` |   |

### Size

    public long Size { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `long` |   |

### Time

    public Timestamp Time { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Timestamp` |   |

## Methods

### CalculateSize()

    public int CalculateSize()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### Clone()

    public AttributeContext.Types.Response Clone()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AttributeContextTypesResponse` |   |

### Equals(Response)

    public bool Equals(AttributeContext.Types.Response other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `AttributeContextTypesResponse` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### Equals(object)

    public override bool Equals(object other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `object` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

**Overrides** [object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object))

### GetHashCode()

    public override int GetHashCode()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

**Overrides** [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode)

### MergeFrom(CodedInputStream)

    public void MergeFrom(CodedInputStream input)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `input` | `CodedInputStream` |

### MergeFrom(Response)

    public void MergeFrom(AttributeContext.Types.Response other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `AttributeContextTypesResponse` |

### ToString()

    public override string ToString()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

**Overrides** [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

### WriteTo(CodedOutputStream)

    public void WriteTo(CodedOutputStream output)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `output` | `CodedOutputStream` |