public static final class HttpRoute.HttpDirectResponse.Builder extends GeneratedMessage.Builder<HttpRoute.HttpDirectResponse.Builder> implements HttpRoute.HttpDirectResponseOrBuilderStatic HTTP response object to be returned.
Protobuf type google.cloud.networkservices.v1.HttpRoute.HttpDirectResponse
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > HttpRoute.HttpDirectResponse.BuilderImplements
HttpRoute.HttpDirectResponseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public HttpRoute.HttpDirectResponse build()| Returns | |
|---|---|
| Type | Description |
HttpRoute.HttpDirectResponse |
|
buildPartial()
public HttpRoute.HttpDirectResponse buildPartial()| Returns | |
|---|---|
| Type | Description |
HttpRoute.HttpDirectResponse |
|
clear()
public HttpRoute.HttpDirectResponse.Builder clear()| Returns | |
|---|---|
| Type | Description |
HttpRoute.HttpDirectResponse.Builder |
|
clearBytesBody()
public HttpRoute.HttpDirectResponse.Builder clearBytesBody()Optional. Response body as bytes. Maximum body size is 4096B.
bytes bytes_body = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
HttpRoute.HttpDirectResponse.Builder |
This builder for chaining. |
clearHttpBody()
public HttpRoute.HttpDirectResponse.Builder clearHttpBody()| Returns | |
|---|---|
| Type | Description |
HttpRoute.HttpDirectResponse.Builder |
|
clearStatus()
public HttpRoute.HttpDirectResponse.Builder clearStatus()Required. Status to return as part of HTTP Response. Must be a positive integer.
int32 status = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
HttpRoute.HttpDirectResponse.Builder |
This builder for chaining. |
clearStringBody()
public HttpRoute.HttpDirectResponse.Builder clearStringBody()Optional. Response body as a string. Maximum body length is 1024 characters.
string string_body = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
HttpRoute.HttpDirectResponse.Builder |
This builder for chaining. |
getBytesBody()
public ByteString getBytesBody()Optional. Response body as bytes. Maximum body size is 4096B.
bytes bytes_body = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytesBody. |
getDefaultInstanceForType()
public HttpRoute.HttpDirectResponse getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
HttpRoute.HttpDirectResponse |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getHttpBodyCase()
public HttpRoute.HttpDirectResponse.HttpBodyCase getHttpBodyCase()| Returns | |
|---|---|
| Type | Description |
HttpRoute.HttpDirectResponse.HttpBodyCase |
|
getStatus()
public 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 | |
|---|---|
| Type | Description |
int |
The status. |
getStringBody()
public String getStringBody()Optional. Response body as a string. Maximum body length is 1024 characters.
string string_body = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The stringBody. |
getStringBodyBytes()
public ByteString getStringBodyBytes()Optional. Response body as a string. Maximum body length is 1024 characters.
string string_body = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for stringBody. |
hasBytesBody()
public boolean hasBytesBody()Optional. Response body as bytes. Maximum body size is 4096B.
bytes bytes_body = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the bytesBody field is set. |
hasStringBody()
public boolean hasStringBody()Optional. Response body as a string. Maximum body length is 1024 characters.
string string_body = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the stringBody field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(HttpRoute.HttpDirectResponse other)
public HttpRoute.HttpDirectResponse.Builder mergeFrom(HttpRoute.HttpDirectResponse other)| Parameter | |
|---|---|
| Name | Description |
other |
HttpRoute.HttpDirectResponse |
| Returns | |
|---|---|
| Type | Description |
HttpRoute.HttpDirectResponse.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public HttpRoute.HttpDirectResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
HttpRoute.HttpDirectResponse.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public HttpRoute.HttpDirectResponse.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
HttpRoute.HttpDirectResponse.Builder |
|
setBytesBody(ByteString value)
public HttpRoute.HttpDirectResponse.Builder setBytesBody(ByteString value)Optional. Response body as bytes. Maximum body size is 4096B.
bytes bytes_body = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytesBody to set. |
| Returns | |
|---|---|
| Type | Description |
HttpRoute.HttpDirectResponse.Builder |
This builder for chaining. |
setStatus(int value)
public HttpRoute.HttpDirectResponse.Builder setStatus(int value)Required. Status to return as part of HTTP Response. Must be a positive integer.
int32 status = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe status to set. |
| Returns | |
|---|---|
| Type | Description |
HttpRoute.HttpDirectResponse.Builder |
This builder for chaining. |
setStringBody(String value)
public HttpRoute.HttpDirectResponse.Builder setStringBody(String value)Optional. Response body as a string. Maximum body length is 1024 characters.
string string_body = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe stringBody to set. |
| Returns | |
|---|---|
| Type | Description |
HttpRoute.HttpDirectResponse.Builder |
This builder for chaining. |
setStringBodyBytes(ByteString value)
public HttpRoute.HttpDirectResponse.Builder setStringBodyBytes(ByteString value)Optional. Response body as a string. Maximum body length is 1024 characters.
string string_body = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for stringBody to set. |
| Returns | |
|---|---|
| Type | Description |
HttpRoute.HttpDirectResponse.Builder |
This builder for chaining. |