public sealed class HttpRoute.Types.HttpDirectResponse : IMessage<HttpRoute.Types.HttpDirectResponse>, IEquatable<HttpRoute.Types.HttpDirectResponse>, IDeepCloneable<HttpRoute.Types.HttpDirectResponse>, IBufferMessage, IMessage
Reference documentation and code samples for the Network Services v1 API class HttpRoute.Types.HttpDirectResponse.
Static HTTP response object to be returned.
Implements
IMessageHttpRouteTypesHttpDirectResponse, IEquatableHttpRouteTypesHttpDirectResponse, IDeepCloneableHttpRouteTypesHttpDirectResponse, IBufferMessage, IMessageNamespace
Google.Cloud.NetworkServices.V1Assembly
Google.Cloud.NetworkServices.V1.dll
Constructors
HttpDirectResponse()
public HttpDirectResponse()
HttpDirectResponse(HttpDirectResponse)
public HttpDirectResponse(HttpRoute.Types.HttpDirectResponse other)
Parameter | |
---|---|
Name | Description |
other |
HttpRouteTypesHttpDirectResponse |
Properties
BytesBody
public ByteString BytesBody { get; set; }
Optional. Response body as bytes. Maximum body size is 4096B.
Property Value | |
---|---|
Type | Description |
ByteString |
HasBytesBody
public bool HasBytesBody { get; }
Gets whether the "bytes_body" field is set
Property Value | |
---|---|
Type | Description |
bool |
HasStringBody
public bool HasStringBody { get; }
Gets whether the "string_body" field is set
Property Value | |
---|---|
Type | Description |
bool |
HttpBodyCase
public HttpRoute.Types.HttpDirectResponse.HttpBodyOneofCase HttpBodyCase { get; }
Property Value | |
---|---|
Type | Description |
HttpRouteTypesHttpDirectResponseHttpBodyOneofCase |
Status
public int Status { get; set; }
Required. Status to return as part of HTTP Response. Must be a positive integer.
Property Value | |
---|---|
Type | Description |
int |
StringBody
public string StringBody { get; set; }
Optional. Response body as a string. Maximum body length is 1024 characters.
Property Value | |
---|---|
Type | Description |
string |