Interface ResponseMetadataOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ResponseMetadata,ResponseMetadata.Builder
public interface ResponseMetadataOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetBody()The body of the response.com.google.protobuf.ByteStringgetBodyBytes()The body of the response.com.google.protobuf.DurationgetDuration()Total time elapsed for the response.com.google.protobuf.DurationOrBuildergetDurationOrBuilder()Total time elapsed for the response.StringgetError()Error message received when making the ad request.com.google.protobuf.ByteStringgetErrorBytes()Error message received when making the ad request.com.google.protobuf.StructgetHeaders()Headers from the response.com.google.protobuf.StructOrBuildergetHeadersOrBuilder()Headers from the response.intgetSizeBytes()Size in bytes of the response.StringgetStatusCode()Status code for the response.com.google.protobuf.ByteStringgetStatusCodeBytes()Status code for the response.booleanhasDuration()Total time elapsed for the response.booleanhasHeaders()Headers from the response.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getError
String getError()
Error message received when making the ad request.
string error = 1;- Returns:
- The error.
-
getErrorBytes
com.google.protobuf.ByteString getErrorBytes()
Error message received when making the ad request.
string error = 1;- Returns:
- The bytes for error.
-
hasHeaders
boolean hasHeaders()
Headers from the response.
.google.protobuf.Struct headers = 2;- Returns:
- Whether the headers field is set.
-
getHeaders
com.google.protobuf.Struct getHeaders()
Headers from the response.
.google.protobuf.Struct headers = 2;- Returns:
- The headers.
-
getHeadersOrBuilder
com.google.protobuf.StructOrBuilder getHeadersOrBuilder()
Headers from the response.
.google.protobuf.Struct headers = 2;
-
getStatusCode
String getStatusCode()
Status code for the response.
string status_code = 3;- Returns:
- The statusCode.
-
getStatusCodeBytes
com.google.protobuf.ByteString getStatusCodeBytes()
Status code for the response.
string status_code = 3;- Returns:
- The bytes for statusCode.
-
getSizeBytes
int getSizeBytes()
Size in bytes of the response.
int32 size_bytes = 4;- Returns:
- The sizeBytes.
-
hasDuration
boolean hasDuration()
Total time elapsed for the response.
.google.protobuf.Duration duration = 5;- Returns:
- Whether the duration field is set.
-
getDuration
com.google.protobuf.Duration getDuration()
Total time elapsed for the response.
.google.protobuf.Duration duration = 5;- Returns:
- The duration.
-
getDurationOrBuilder
com.google.protobuf.DurationOrBuilder getDurationOrBuilder()
Total time elapsed for the response.
.google.protobuf.Duration duration = 5;
-
getBody
String getBody()
The body of the response.
string body = 6;- Returns:
- The body.
-
getBodyBytes
com.google.protobuf.ByteString getBodyBytes()
The body of the response.
string body = 6;- Returns:
- The bytes for body.
-
-