Package com.google.rpc
Interface HttpResponseOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
HttpResponse,HttpResponse.Builder
public interface HttpResponseOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.google.protobuf.ByteStringgetBody()The HTTP response body.HttpHeadergetHeaders(int index)The HTTP response headers.intgetHeadersCount()The HTTP response headers.java.util.List<HttpHeader>getHeadersList()The HTTP response headers.HttpHeaderOrBuildergetHeadersOrBuilder(int index)The HTTP response headers.java.util.List<? extends HttpHeaderOrBuilder>getHeadersOrBuilderList()The HTTP response headers.java.lang.StringgetReason()The HTTP reason phrase, such as "OK" or "Not Found".com.google.protobuf.ByteStringgetReasonBytes()The HTTP reason phrase, such as "OK" or "Not Found".intgetStatus()The HTTP status code, such as 200 or 404.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getStatus
int getStatus()
The HTTP status code, such as 200 or 404.
int32 status = 1;- Returns:
- The status.
-
getReason
java.lang.String getReason()
The HTTP reason phrase, such as "OK" or "Not Found".
string reason = 2;- Returns:
- The reason.
-
getReasonBytes
com.google.protobuf.ByteString getReasonBytes()
The HTTP reason phrase, such as "OK" or "Not Found".
string reason = 2;- Returns:
- The bytes for reason.
-
getHeadersList
java.util.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;
-
getHeaders
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;
-
getHeadersCount
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;
-
getHeadersOrBuilderList
java.util.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;
-
getHeadersOrBuilder
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;
-
getBody
com.google.protobuf.ByteString getBody()
The HTTP response body. If the body is not expected, it should be empty.
bytes body = 4;- Returns:
- The body.
-
-