Package com.buildless.telemetry
Interface HttpResponseInfoOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
HttpResponseInfo,HttpResponseInfo.Builder
public interface HttpResponseInfoOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsHeaders(String key) Specifies headers which were present on this request.booleancontainsTrailers(String key) Specifies trailers which were present on this request.Deprecated.intSpecifies headers which were present on this request.Specifies headers which were present on this request.getHeadersOrDefault(String key, HttpMetadata defaultValue) Specifies headers which were present on this request.getHeadersOrThrow(String key) Specifies headers which were present on this request.getHttp()HTTP protocol versioning and information.HTTP protocol versioning and information.booleangetOk()Whether the response was "okay" or "successful." If `false`, the response represents an error.intgetSize()Specifies the payload size for this request, if applicable; if no payload is or was present, this is set to `0`.intStatus code for this HTTP response.Optional status text enclosed with the response.com.google.protobuf.ByteStringOptional status text enclosed with the response.Deprecated.intSpecifies trailers which were present on this request.Specifies trailers which were present on this request.getTrailersOrDefault(String key, HttpMetadata defaultValue) Specifies trailers which were present on this request.getTrailersOrThrow(String key) Specifies trailers which were present on this request.booleanhasHttp()HTTP protocol versioning and information.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
-
hasHttp
boolean hasHttp()HTTP protocol versioning and information.
.buildless.telemetry.HttpInfo http = 1 [json_name = "http"];- Returns:
- Whether the http field is set.
-
getHttp
HttpInfo getHttp()HTTP protocol versioning and information.
.buildless.telemetry.HttpInfo http = 1 [json_name = "http"];- Returns:
- The http.
-
getHttpOrBuilder
HttpInfoOrBuilder getHttpOrBuilder()HTTP protocol versioning and information.
.buildless.telemetry.HttpInfo http = 1 [json_name = "http"]; -
getStatus
int getStatus()Status code for this HTTP response.
uint32 status = 2 [json_name = "status"];- Returns:
- The status.
-
getOk
boolean getOk()Whether the response was "okay" or "successful." If `false`, the response represents an error.
bool ok = 3 [json_name = "ok"];- Returns:
- The ok.
-
getHeadersCount
int getHeadersCount()Specifies headers which were present on this request.
map<string, .buildless.telemetry.HttpMetadata> headers = 5 [json_name = "headers"]; -
containsHeaders
Specifies headers which were present on this request.
map<string, .buildless.telemetry.HttpMetadata> headers = 5 [json_name = "headers"]; -
getHeaders
Deprecated.UsegetHeadersMap()instead. -
getHeadersMap
Map<String,HttpMetadata> getHeadersMap()Specifies headers which were present on this request.
map<string, .buildless.telemetry.HttpMetadata> headers = 5 [json_name = "headers"]; -
getHeadersOrDefault
Specifies headers which were present on this request.
map<string, .buildless.telemetry.HttpMetadata> headers = 5 [json_name = "headers"]; -
getHeadersOrThrow
Specifies headers which were present on this request.
map<string, .buildless.telemetry.HttpMetadata> headers = 5 [json_name = "headers"]; -
getTrailersCount
int getTrailersCount()Specifies trailers which were present on this request.
map<string, .buildless.telemetry.HttpMetadata> trailers = 6 [json_name = "trailers"]; -
containsTrailers
Specifies trailers which were present on this request.
map<string, .buildless.telemetry.HttpMetadata> trailers = 6 [json_name = "trailers"]; -
getTrailers
Deprecated.UsegetTrailersMap()instead. -
getTrailersMap
Map<String,HttpMetadata> getTrailersMap()Specifies trailers which were present on this request.
map<string, .buildless.telemetry.HttpMetadata> trailers = 6 [json_name = "trailers"]; -
getTrailersOrDefault
Specifies trailers which were present on this request.
map<string, .buildless.telemetry.HttpMetadata> trailers = 6 [json_name = "trailers"]; -
getTrailersOrThrow
Specifies trailers which were present on this request.
map<string, .buildless.telemetry.HttpMetadata> trailers = 6 [json_name = "trailers"]; -
getSize
int getSize()Specifies the payload size for this request, if applicable; if no payload is or was present, this is set to `0`.
uint32 size = 7 [json_name = "size"];- Returns:
- The size.
-
getStatusText
String getStatusText()Optional status text enclosed with the response.
string status_text = 8 [json_name = "statusText"];- Returns:
- The statusText.
-
getStatusTextBytes
com.google.protobuf.ByteString getStatusTextBytes()Optional status text enclosed with the response.
string status_text = 8 [json_name = "statusText"];- Returns:
- The bytes for statusText.
-