- 2.53.0 (latest)
- 2.52.0
- 2.51.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.7
- 2.2.1
- 2.1.5
public static final class HttpResponse.Builder extends GeneratedMessageV3.Builder<HttpResponse.Builder> implements HttpResponseOrBuilder
The proto definition of http response.
Protobuf type google.cloud.apigeeconnect.v1.HttpResponse
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > HttpResponse.BuilderImplements
HttpResponseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllHeaders(Iterable<? extends Header> values)
public HttpResponse.Builder addAllHeaders(Iterable<? extends Header> values)
The HTTP response headers.
repeated .google.cloud.apigeeconnect.v1.Header headers = 5;
Name | Description |
values | Iterable<? extends com.google.cloud.apigeeconnect.v1.Header> |
Type | Description |
HttpResponse.Builder |
addHeaders(Header value)
public HttpResponse.Builder addHeaders(Header value)
The HTTP response headers.
repeated .google.cloud.apigeeconnect.v1.Header headers = 5;
Name | Description |
value | Header |
Type | Description |
HttpResponse.Builder |
addHeaders(Header.Builder builderForValue)
public HttpResponse.Builder addHeaders(Header.Builder builderForValue)
The HTTP response headers.
repeated .google.cloud.apigeeconnect.v1.Header headers = 5;
Name | Description |
builderForValue | Header.Builder |
Type | Description |
HttpResponse.Builder |
addHeaders(int index, Header value)
public HttpResponse.Builder addHeaders(int index, Header value)
The HTTP response headers.
repeated .google.cloud.apigeeconnect.v1.Header headers = 5;
Name | Description |
index | int |
value | Header |
Type | Description |
HttpResponse.Builder |
addHeaders(int index, Header.Builder builderForValue)
public HttpResponse.Builder addHeaders(int index, Header.Builder builderForValue)
The HTTP response headers.
repeated .google.cloud.apigeeconnect.v1.Header headers = 5;
Name | Description |
index | int |
builderForValue | Header.Builder |
Type | Description |
HttpResponse.Builder |
addHeadersBuilder()
public Header.Builder addHeadersBuilder()
The HTTP response headers.
repeated .google.cloud.apigeeconnect.v1.Header headers = 5;
Type | Description |
Header.Builder |
addHeadersBuilder(int index)
public Header.Builder addHeadersBuilder(int index)
The HTTP response headers.
repeated .google.cloud.apigeeconnect.v1.Header headers = 5;
Name | Description |
index | int |
Type | Description |
Header.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public HttpResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
HttpResponse.Builder |
build()
public HttpResponse build()
Type | Description |
HttpResponse |
buildPartial()
public HttpResponse buildPartial()
Type | Description |
HttpResponse |
clear()
public HttpResponse.Builder clear()
Type | Description |
HttpResponse.Builder |
clearBody()
public HttpResponse.Builder clearBody()
The HTTP 1.1 response body.
bytes body = 4;
Type | Description |
HttpResponse.Builder | This builder for chaining. |
clearContentLength()
public HttpResponse.Builder clearContentLength()
Content length records the length of the associated content. The value -1 indicates that the length is unknown. Unless http method is "HEAD", values >= 0 indicate that the given number of bytes may be read from Body.
int64 content_length = 6;
Type | Description |
HttpResponse.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public HttpResponse.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
HttpResponse.Builder |
clearHeaders()
public HttpResponse.Builder clearHeaders()
The HTTP response headers.
repeated .google.cloud.apigeeconnect.v1.Header headers = 5;
Type | Description |
HttpResponse.Builder |
clearId()
public HttpResponse.Builder clearId()
A unique identifier that matches the request ID.
string id = 1;
Type | Description |
HttpResponse.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public HttpResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
HttpResponse.Builder |
clearStatus()
public HttpResponse.Builder clearStatus()
Status of http response, e.g. "200 OK".
string status = 2;
Type | Description |
HttpResponse.Builder | This builder for chaining. |
clearStatusCode()
public HttpResponse.Builder clearStatusCode()
Status code of http response, e.g. 200.
int32 status_code = 3;
Type | Description |
HttpResponse.Builder | This builder for chaining. |
clone()
public HttpResponse.Builder clone()
Type | Description |
HttpResponse.Builder |
getBody()
public ByteString getBody()
The HTTP 1.1 response body.
bytes body = 4;
Type | Description |
ByteString | The body. |
getContentLength()
public long getContentLength()
Content length records the length of the associated content. The value -1 indicates that the length is unknown. Unless http method is "HEAD", values >= 0 indicate that the given number of bytes may be read from Body.
int64 content_length = 6;
Type | Description |
long | The contentLength. |
getDefaultInstanceForType()
public HttpResponse getDefaultInstanceForType()
Type | Description |
HttpResponse |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getHeaders(int index)
public Header getHeaders(int index)
The HTTP response headers.
repeated .google.cloud.apigeeconnect.v1.Header headers = 5;
Name | Description |
index | int |
Type | Description |
Header |
getHeadersBuilder(int index)
public Header.Builder getHeadersBuilder(int index)
The HTTP response headers.
repeated .google.cloud.apigeeconnect.v1.Header headers = 5;
Name | Description |
index | int |
Type | Description |
Header.Builder |
getHeadersBuilderList()
public List<Header.Builder> getHeadersBuilderList()
The HTTP response headers.
repeated .google.cloud.apigeeconnect.v1.Header headers = 5;
Type | Description |
List<Builder> |
getHeadersCount()
public int getHeadersCount()
The HTTP response headers.
repeated .google.cloud.apigeeconnect.v1.Header headers = 5;
Type | Description |
int |
getHeadersList()
public List<Header> getHeadersList()
The HTTP response headers.
repeated .google.cloud.apigeeconnect.v1.Header headers = 5;
Type | Description |
List<Header> |
getHeadersOrBuilder(int index)
public HeaderOrBuilder getHeadersOrBuilder(int index)
The HTTP response headers.
repeated .google.cloud.apigeeconnect.v1.Header headers = 5;
Name | Description |
index | int |
Type | Description |
HeaderOrBuilder |
getHeadersOrBuilderList()
public List<? extends HeaderOrBuilder> getHeadersOrBuilderList()
The HTTP response headers.
repeated .google.cloud.apigeeconnect.v1.Header headers = 5;
Type | Description |
List<? extends com.google.cloud.apigeeconnect.v1.HeaderOrBuilder> |
getId()
public String getId()
A unique identifier that matches the request ID.
string id = 1;
Type | Description |
String | The id. |
getIdBytes()
public ByteString getIdBytes()
A unique identifier that matches the request ID.
string id = 1;
Type | Description |
ByteString | The bytes for id. |
getStatus()
public String getStatus()
Status of http response, e.g. "200 OK".
string status = 2;
Type | Description |
String | The status. |
getStatusBytes()
public ByteString getStatusBytes()
Status of http response, e.g. "200 OK".
string status = 2;
Type | Description |
ByteString | The bytes for status. |
getStatusCode()
public int getStatusCode()
Status code of http response, e.g. 200.
int32 status_code = 3;
Type | Description |
int | The statusCode. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(HttpResponse other)
public HttpResponse.Builder mergeFrom(HttpResponse other)
Name | Description |
other | HttpResponse |
Type | Description |
HttpResponse.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public HttpResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
HttpResponse.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public HttpResponse.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
HttpResponse.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final HttpResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
HttpResponse.Builder |
removeHeaders(int index)
public HttpResponse.Builder removeHeaders(int index)
The HTTP response headers.
repeated .google.cloud.apigeeconnect.v1.Header headers = 5;
Name | Description |
index | int |
Type | Description |
HttpResponse.Builder |
setBody(ByteString value)
public HttpResponse.Builder setBody(ByteString value)
The HTTP 1.1 response body.
bytes body = 4;
Name | Description |
value | ByteString The body to set. |
Type | Description |
HttpResponse.Builder | This builder for chaining. |
setContentLength(long value)
public HttpResponse.Builder setContentLength(long value)
Content length records the length of the associated content. The value -1 indicates that the length is unknown. Unless http method is "HEAD", values >= 0 indicate that the given number of bytes may be read from Body.
int64 content_length = 6;
Name | Description |
value | long The contentLength to set. |
Type | Description |
HttpResponse.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public HttpResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
HttpResponse.Builder |
setHeaders(int index, Header value)
public HttpResponse.Builder setHeaders(int index, Header value)
The HTTP response headers.
repeated .google.cloud.apigeeconnect.v1.Header headers = 5;
Name | Description |
index | int |
value | Header |
Type | Description |
HttpResponse.Builder |
setHeaders(int index, Header.Builder builderForValue)
public HttpResponse.Builder setHeaders(int index, Header.Builder builderForValue)
The HTTP response headers.
repeated .google.cloud.apigeeconnect.v1.Header headers = 5;
Name | Description |
index | int |
builderForValue | Header.Builder |
Type | Description |
HttpResponse.Builder |
setId(String value)
public HttpResponse.Builder setId(String value)
A unique identifier that matches the request ID.
string id = 1;
Name | Description |
value | String The id to set. |
Type | Description |
HttpResponse.Builder | This builder for chaining. |
setIdBytes(ByteString value)
public HttpResponse.Builder setIdBytes(ByteString value)
A unique identifier that matches the request ID.
string id = 1;
Name | Description |
value | ByteString The bytes for id to set. |
Type | Description |
HttpResponse.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public HttpResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
HttpResponse.Builder |
setStatus(String value)
public HttpResponse.Builder setStatus(String value)
Status of http response, e.g. "200 OK".
string status = 2;
Name | Description |
value | String The status to set. |
Type | Description |
HttpResponse.Builder | This builder for chaining. |
setStatusBytes(ByteString value)
public HttpResponse.Builder setStatusBytes(ByteString value)
Status of http response, e.g. "200 OK".
string status = 2;
Name | Description |
value | ByteString The bytes for status to set. |
Type | Description |
HttpResponse.Builder | This builder for chaining. |
setStatusCode(int value)
public HttpResponse.Builder setStatusCode(int value)
Status code of http response, e.g. 200.
int32 status_code = 3;
Name | Description |
value | int The statusCode to set. |
Type | Description |
HttpResponse.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final HttpResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
HttpResponse.Builder |