Class HttpRequest.Builder (2.37.0)

public static final class HttpRequest.Builder extends GeneratedMessageV3.Builder<HttpRequest.Builder> implements HttpRequestOrBuilder

The proto definition of http request.

Protobuf type google.cloud.apigeeconnect.v1.HttpRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllHeaders(Iterable<? extends Header> values)

public HttpRequest.Builder addAllHeaders(Iterable<? extends Header> values)

The HTTP request headers.

repeated .google.cloud.apigeeconnect.v1.Header headers = 4;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.apigeeconnect.v1.Header>
Returns
TypeDescription
HttpRequest.Builder

addHeaders(Header value)

public HttpRequest.Builder addHeaders(Header value)

The HTTP request headers.

repeated .google.cloud.apigeeconnect.v1.Header headers = 4;

Parameter
NameDescription
valueHeader
Returns
TypeDescription
HttpRequest.Builder

addHeaders(Header.Builder builderForValue)

public HttpRequest.Builder addHeaders(Header.Builder builderForValue)

The HTTP request headers.

repeated .google.cloud.apigeeconnect.v1.Header headers = 4;

Parameter
NameDescription
builderForValueHeader.Builder
Returns
TypeDescription
HttpRequest.Builder

addHeaders(int index, Header value)

public HttpRequest.Builder addHeaders(int index, Header value)

The HTTP request headers.

repeated .google.cloud.apigeeconnect.v1.Header headers = 4;

Parameters
NameDescription
indexint
valueHeader
Returns
TypeDescription
HttpRequest.Builder

addHeaders(int index, Header.Builder builderForValue)

public HttpRequest.Builder addHeaders(int index, Header.Builder builderForValue)

The HTTP request headers.

repeated .google.cloud.apigeeconnect.v1.Header headers = 4;

Parameters
NameDescription
indexint
builderForValueHeader.Builder
Returns
TypeDescription
HttpRequest.Builder

addHeadersBuilder()

public Header.Builder addHeadersBuilder()

The HTTP request headers.

repeated .google.cloud.apigeeconnect.v1.Header headers = 4;

Returns
TypeDescription
Header.Builder

addHeadersBuilder(int index)

public Header.Builder addHeadersBuilder(int index)

The HTTP request headers.

repeated .google.cloud.apigeeconnect.v1.Header headers = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
Header.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public HttpRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
HttpRequest.Builder
Overrides

build()

public HttpRequest build()
Returns
TypeDescription
HttpRequest

buildPartial()

public HttpRequest buildPartial()
Returns
TypeDescription
HttpRequest

clear()

public HttpRequest.Builder clear()
Returns
TypeDescription
HttpRequest.Builder
Overrides

clearBody()

public HttpRequest.Builder clearBody()

HTTP request body.

bytes body = 5;

Returns
TypeDescription
HttpRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public HttpRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
HttpRequest.Builder
Overrides

clearHeaders()

public HttpRequest.Builder clearHeaders()

The HTTP request headers.

repeated .google.cloud.apigeeconnect.v1.Header headers = 4;

Returns
TypeDescription
HttpRequest.Builder

clearId()

public HttpRequest.Builder clearId()

A unique identifier for the request.

string id = 1;

Returns
TypeDescription
HttpRequest.Builder

This builder for chaining.

clearMethod()

public HttpRequest.Builder clearMethod()

The HTTP request method. Valid methods: "GET", "HEAD", "POST", "PUT", "PATCH","DELETE".

string method = 2;

Returns
TypeDescription
HttpRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public HttpRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
HttpRequest.Builder
Overrides

clearUrl()

public HttpRequest.Builder clearUrl()

The HTTP request URL.

.google.cloud.apigeeconnect.v1.Url url = 3;

Returns
TypeDescription
HttpRequest.Builder

clone()

public HttpRequest.Builder clone()
Returns
TypeDescription
HttpRequest.Builder
Overrides

getBody()

public ByteString getBody()

HTTP request body.

bytes body = 5;

Returns
TypeDescription
ByteString

The body.

getDefaultInstanceForType()

public HttpRequest getDefaultInstanceForType()
Returns
TypeDescription
HttpRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getHeaders(int index)

public Header getHeaders(int index)

The HTTP request headers.

repeated .google.cloud.apigeeconnect.v1.Header headers = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
Header

getHeadersBuilder(int index)

public Header.Builder getHeadersBuilder(int index)

The HTTP request headers.

repeated .google.cloud.apigeeconnect.v1.Header headers = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
Header.Builder

getHeadersBuilderList()

public List<Header.Builder> getHeadersBuilderList()

The HTTP request headers.

repeated .google.cloud.apigeeconnect.v1.Header headers = 4;

Returns
TypeDescription
List<Builder>

getHeadersCount()

public int getHeadersCount()

The HTTP request headers.

repeated .google.cloud.apigeeconnect.v1.Header headers = 4;

Returns
TypeDescription
int

getHeadersList()

public List<Header> getHeadersList()

The HTTP request headers.

repeated .google.cloud.apigeeconnect.v1.Header headers = 4;

Returns
TypeDescription
List<Header>

getHeadersOrBuilder(int index)

public HeaderOrBuilder getHeadersOrBuilder(int index)

The HTTP request headers.

repeated .google.cloud.apigeeconnect.v1.Header headers = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
HeaderOrBuilder

getHeadersOrBuilderList()

public List<? extends HeaderOrBuilder> getHeadersOrBuilderList()

The HTTP request headers.

repeated .google.cloud.apigeeconnect.v1.Header headers = 4;

Returns
TypeDescription
List<? extends com.google.cloud.apigeeconnect.v1.HeaderOrBuilder>

getId()

public String getId()

A unique identifier for the request.

string id = 1;

Returns
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

A unique identifier for the request.

string id = 1;

Returns
TypeDescription
ByteString

The bytes for id.

getMethod()

public String getMethod()

The HTTP request method. Valid methods: "GET", "HEAD", "POST", "PUT", "PATCH","DELETE".

string method = 2;

Returns
TypeDescription
String

The method.

getMethodBytes()

public ByteString getMethodBytes()

The HTTP request method. Valid methods: "GET", "HEAD", "POST", "PUT", "PATCH","DELETE".

string method = 2;

Returns
TypeDescription
ByteString

The bytes for method.

getUrl()

public Url getUrl()

The HTTP request URL.

.google.cloud.apigeeconnect.v1.Url url = 3;

Returns
TypeDescription
Url

The url.

getUrlBuilder()

public Url.Builder getUrlBuilder()

The HTTP request URL.

.google.cloud.apigeeconnect.v1.Url url = 3;

Returns
TypeDescription
Url.Builder

getUrlOrBuilder()

public UrlOrBuilder getUrlOrBuilder()

The HTTP request URL.

.google.cloud.apigeeconnect.v1.Url url = 3;

Returns
TypeDescription
UrlOrBuilder

hasUrl()

public boolean hasUrl()

The HTTP request URL.

.google.cloud.apigeeconnect.v1.Url url = 3;

Returns
TypeDescription
boolean

Whether the url field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(HttpRequest other)

public HttpRequest.Builder mergeFrom(HttpRequest other)
Parameter
NameDescription
otherHttpRequest
Returns
TypeDescription
HttpRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public HttpRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HttpRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public HttpRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
HttpRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final HttpRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
HttpRequest.Builder
Overrides

mergeUrl(Url value)

public HttpRequest.Builder mergeUrl(Url value)

The HTTP request URL.

.google.cloud.apigeeconnect.v1.Url url = 3;

Parameter
NameDescription
valueUrl
Returns
TypeDescription
HttpRequest.Builder

removeHeaders(int index)

public HttpRequest.Builder removeHeaders(int index)

The HTTP request headers.

repeated .google.cloud.apigeeconnect.v1.Header headers = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
HttpRequest.Builder

setBody(ByteString value)

public HttpRequest.Builder setBody(ByteString value)

HTTP request body.

bytes body = 5;

Parameter
NameDescription
valueByteString

The body to set.

Returns
TypeDescription
HttpRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public HttpRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
HttpRequest.Builder
Overrides

setHeaders(int index, Header value)

public HttpRequest.Builder setHeaders(int index, Header value)

The HTTP request headers.

repeated .google.cloud.apigeeconnect.v1.Header headers = 4;

Parameters
NameDescription
indexint
valueHeader
Returns
TypeDescription
HttpRequest.Builder

setHeaders(int index, Header.Builder builderForValue)

public HttpRequest.Builder setHeaders(int index, Header.Builder builderForValue)

The HTTP request headers.

repeated .google.cloud.apigeeconnect.v1.Header headers = 4;

Parameters
NameDescription
indexint
builderForValueHeader.Builder
Returns
TypeDescription
HttpRequest.Builder

setId(String value)

public HttpRequest.Builder setId(String value)

A unique identifier for the request.

string id = 1;

Parameter
NameDescription
valueString

The id to set.

Returns
TypeDescription
HttpRequest.Builder

This builder for chaining.

setIdBytes(ByteString value)

public HttpRequest.Builder setIdBytes(ByteString value)

A unique identifier for the request.

string id = 1;

Parameter
NameDescription
valueByteString

The bytes for id to set.

Returns
TypeDescription
HttpRequest.Builder

This builder for chaining.

setMethod(String value)

public HttpRequest.Builder setMethod(String value)

The HTTP request method. Valid methods: "GET", "HEAD", "POST", "PUT", "PATCH","DELETE".

string method = 2;

Parameter
NameDescription
valueString

The method to set.

Returns
TypeDescription
HttpRequest.Builder

This builder for chaining.

setMethodBytes(ByteString value)

public HttpRequest.Builder setMethodBytes(ByteString value)

The HTTP request method. Valid methods: "GET", "HEAD", "POST", "PUT", "PATCH","DELETE".

string method = 2;

Parameter
NameDescription
valueByteString

The bytes for method to set.

Returns
TypeDescription
HttpRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public HttpRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
HttpRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final HttpRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
HttpRequest.Builder
Overrides

setUrl(Url value)

public HttpRequest.Builder setUrl(Url value)

The HTTP request URL.

.google.cloud.apigeeconnect.v1.Url url = 3;

Parameter
NameDescription
valueUrl
Returns
TypeDescription
HttpRequest.Builder

setUrl(Url.Builder builderForValue)

public HttpRequest.Builder setUrl(Url.Builder builderForValue)

The HTTP request URL.

.google.cloud.apigeeconnect.v1.Url url = 3;

Parameter
NameDescription
builderForValueUrl.Builder
Returns
TypeDescription
HttpRequest.Builder