public interface HttpResponseOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getBody()
public abstract ByteString getBody()The HTTP response body. If the body is not expected, it should be empty.
bytes body = 4;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The body. |
getHeaders(int index)
public abstract HttpHeader getHeaders(int index)The HTTP response headers. The ordering of the headers is significant. Multiple headers with the same key may present for the response.
repeated .google.rpc.HttpHeader headers = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
HttpHeader |
|
getHeadersCount()
public abstract int getHeadersCount()The HTTP response headers. The ordering of the headers is significant. Multiple headers with the same key may present for the response.
repeated .google.rpc.HttpHeader headers = 3;
| Returns | |
|---|---|
| Type | Description |
int |
|
getHeadersList()
public abstract List<HttpHeader> getHeadersList()The HTTP response headers. The ordering of the headers is significant. Multiple headers with the same key may present for the response.
repeated .google.rpc.HttpHeader headers = 3;
| Returns | |
|---|---|
| Type | Description |
List<HttpHeader> |
|
getHeadersOrBuilder(int index)
public abstract HttpHeaderOrBuilder getHeadersOrBuilder(int index)The HTTP response headers. The ordering of the headers is significant. Multiple headers with the same key may present for the response.
repeated .google.rpc.HttpHeader headers = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
HttpHeaderOrBuilder |
|
getHeadersOrBuilderList()
public abstract List<? extends HttpHeaderOrBuilder> getHeadersOrBuilderList()The HTTP response headers. The ordering of the headers is significant. Multiple headers with the same key may present for the response.
repeated .google.rpc.HttpHeader headers = 3;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.rpc.HttpHeaderOrBuilder> |
|
getReason()
public abstract String getReason()The HTTP reason phrase, such as "OK" or "Not Found".
string reason = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The reason. |
getReasonBytes()
public abstract ByteString getReasonBytes()The HTTP reason phrase, such as "OK" or "Not Found".
string reason = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for reason. |
getStatus()
public abstract int getStatus()The HTTP status code, such as 200 or 404.
int32 status = 1;
| Returns | |
|---|---|
| Type | Description |
int |
The status. |