Package com.google.rpc
Interface HttpResponseOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
HttpResponse,HttpResponse.Builder
@Generated
public interface HttpResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.ByteStringgetBody()The HTTP response body.getHeaders(int index) The HTTP response headers.intThe HTTP response headers.The HTTP response headers.getHeadersOrBuilder(int index) The HTTP response headers.List<? extends HttpHeaderOrBuilder>The HTTP response headers.The HTTP reason phrase, such as "OK" or "Not Found".com.google.protobuf.ByteStringThe HTTP reason phrase, such as "OK" or "Not Found".intThe HTTP status code, such as 200 or 404.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getStatus
int getStatus()The HTTP status code, such as 200 or 404.
int32 status = 1;- Returns:
- The status.
-
getReason
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
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
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
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
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.
-