public static interface HttpRoute.HttpDirectResponseOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getBytesBody()
public abstract ByteString getBytesBody()Optional. Response body as bytes. Maximum body size is 4096B.
bytes bytes_body = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytesBody. |
getHttpBodyCase()
public abstract HttpRoute.HttpDirectResponse.HttpBodyCase getHttpBodyCase()| Returns | |
|---|---|
| Type | Description |
HttpRoute.HttpDirectResponse.HttpBodyCase |
|
getStatus()
public abstract int getStatus()Required. Status to return as part of HTTP Response. Must be a positive integer.
int32 status = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The status. |
getStringBody()
public abstract String getStringBody()Optional. Response body as a string. Maximum body length is 1024 characters.
string string_body = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The stringBody. |
getStringBodyBytes()
public abstract ByteString getStringBodyBytes()Optional. Response body as a string. Maximum body length is 1024 characters.
string string_body = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for stringBody. |
hasBytesBody()
public abstract boolean hasBytesBody()Optional. Response body as bytes. Maximum body size is 4096B.
bytes bytes_body = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the bytesBody field is set. |
hasStringBody()
public abstract boolean hasStringBody()Optional. Response body as a string. Maximum body length is 1024 characters.
string string_body = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the stringBody field is set. |