Interface HttpRoute.HttpDirectResponseOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
HttpRoute.HttpDirectResponse,HttpRoute.HttpDirectResponse.Builder
- Enclosing class:
- HttpRoute
public static interface HttpRoute.HttpDirectResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.ByteStringOptional.intRequired.Optional.com.google.protobuf.ByteStringOptional.booleanOptional.booleanOptional.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
-
hasStringBody
boolean hasStringBody()Optional. Response body as a string. Maximum body length is 1024 characters.
string string_body = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- Whether the stringBody field is set.
-
getStringBody
String getStringBody()Optional. Response body as a string. Maximum body length is 1024 characters.
string string_body = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The stringBody.
-
getStringBodyBytes
com.google.protobuf.ByteString getStringBodyBytes()Optional. Response body as a string. Maximum body length is 1024 characters.
string string_body = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The bytes for stringBody.
-
hasBytesBody
boolean hasBytesBody()Optional. Response body as bytes. Maximum body size is 4096B.
bytes bytes_body = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- Whether the bytesBody field is set.
-
getBytesBody
com.google.protobuf.ByteString getBytesBody()Optional. Response body as bytes. Maximum body size is 4096B.
bytes bytes_body = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The bytesBody.
-
getStatus
int getStatus()Required. Status to return as part of HTTP Response. Must be a positive integer.
int32 status = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The status.
-
getHttpBodyCase
HttpRoute.HttpDirectResponse.HttpBodyCase getHttpBodyCase()
-