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 Type
    Method
    Description
    com.google.protobuf.ByteString
    The HTTP response body.
    getHeaders(int index)
    The HTTP response headers.
    int
    The HTTP response headers.
    The HTTP response headers.
    The HTTP response headers.
    The HTTP response headers.
    The HTTP reason phrase, such as "OK" or "Not Found".
    com.google.protobuf.ByteString
    The HTTP reason phrase, such as "OK" or "Not Found".
    int
    The HTTP status code, such as 200 or 404.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods 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

      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

      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.