Class HttpRequest.Builder (2.41.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
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.apigeeconnect.v1.Header>
Returns
Type Description
HttpRequest.Builder

addHeaders(Header value)

public HttpRequest.Builder addHeaders(Header value)

The HTTP request headers.

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

Parameter
Name Description
value Header
Returns
Type Description
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
Name Description
builderForValue Header.Builder
Returns
Type Description
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
Name Description
index int
value Header
Returns
Type Description
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
Name Description
index int
builderForValue Header.Builder
Returns
Type Description
HttpRequest.Builder

addHeadersBuilder()

public Header.Builder addHeadersBuilder()

The HTTP request headers.

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

Returns
Type Description
Header.Builder

addHeadersBuilder(int index)

public Header.Builder addHeadersBuilder(int index)

The HTTP request headers.

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

Parameter
Name Description
index int
Returns
Type Description
Header.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public HttpRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
HttpRequest.Builder
Overrides

build()

public HttpRequest build()
Returns
Type Description
HttpRequest

buildPartial()

public HttpRequest buildPartial()
Returns
Type Description
HttpRequest

clear()

public HttpRequest.Builder clear()
Returns
Type Description
HttpRequest.Builder
Overrides

clearBody()

public HttpRequest.Builder clearBody()

HTTP request body.

bytes body = 5;

Returns
Type Description
HttpRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public HttpRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
HttpRequest.Builder
Overrides

clearHeaders()

public HttpRequest.Builder clearHeaders()

The HTTP request headers.

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

Returns
Type Description
HttpRequest.Builder

clearId()

public HttpRequest.Builder clearId()

A unique identifier for the request.

string id = 1;

Returns
Type Description
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
Type Description
HttpRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public HttpRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
HttpRequest.Builder
Overrides

clearUrl()

public HttpRequest.Builder clearUrl()

The HTTP request URL.

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

Returns
Type Description
HttpRequest.Builder

clone()

public HttpRequest.Builder clone()
Returns
Type Description
HttpRequest.Builder
Overrides

getBody()

public ByteString getBody()

HTTP request body.

bytes body = 5;

Returns
Type Description
ByteString

The body.

getDefaultInstanceForType()

public HttpRequest getDefaultInstanceForType()
Returns
Type Description
HttpRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getHeaders(int index)

public Header getHeaders(int index)

The HTTP request headers.

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

Parameter
Name Description
index int
Returns
Type Description
Header

getHeadersBuilder(int index)

public Header.Builder getHeadersBuilder(int index)

The HTTP request headers.

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

Parameter
Name Description
index int
Returns
Type Description
Header.Builder

getHeadersBuilderList()

public List<Header.Builder> getHeadersBuilderList()

The HTTP request headers.

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

Returns
Type Description
List<Builder>

getHeadersCount()

public int getHeadersCount()

The HTTP request headers.

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

Returns
Type Description
int

getHeadersList()

public List<Header> getHeadersList()

The HTTP request headers.

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

Returns
Type Description
List<Header>

getHeadersOrBuilder(int index)

public HeaderOrBuilder getHeadersOrBuilder(int index)

The HTTP request headers.

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

Parameter
Name Description
index int
Returns
Type Description
HeaderOrBuilder

getHeadersOrBuilderList()

public List<? extends HeaderOrBuilder> getHeadersOrBuilderList()

The HTTP request headers.

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

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

getId()

public String getId()

A unique identifier for the request.

string id = 1;

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

A unique identifier for the request.

string id = 1;

Returns
Type Description
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
Type Description
String

The method.

getMethodBytes()

public ByteString getMethodBytes()

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

string method = 2;

Returns
Type Description
ByteString

The bytes for method.

getUrl()

public Url getUrl()

The HTTP request URL.

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

Returns
Type Description
Url

The url.

getUrlBuilder()

public Url.Builder getUrlBuilder()

The HTTP request URL.

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

Returns
Type Description
Url.Builder

getUrlOrBuilder()

public UrlOrBuilder getUrlOrBuilder()

The HTTP request URL.

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

Returns
Type Description
UrlOrBuilder

hasUrl()

public boolean hasUrl()

The HTTP request URL.

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

Returns
Type Description
boolean

Whether the url field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(HttpRequest other)

public HttpRequest.Builder mergeFrom(HttpRequest other)
Parameter
Name Description
other HttpRequest
Returns
Type Description
HttpRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public HttpRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public HttpRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
HttpRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final HttpRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
HttpRequest.Builder
Overrides

mergeUrl(Url value)

public HttpRequest.Builder mergeUrl(Url value)

The HTTP request URL.

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

Parameter
Name Description
value Url
Returns
Type Description
HttpRequest.Builder

removeHeaders(int index)

public HttpRequest.Builder removeHeaders(int index)

The HTTP request headers.

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

Parameter
Name Description
index int
Returns
Type Description
HttpRequest.Builder

setBody(ByteString value)

public HttpRequest.Builder setBody(ByteString value)

HTTP request body.

bytes body = 5;

Parameter
Name Description
value ByteString

The body to set.

Returns
Type Description
HttpRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public HttpRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
index int
value Header
Returns
Type Description
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
Name Description
index int
builderForValue Header.Builder
Returns
Type Description
HttpRequest.Builder

setId(String value)

public HttpRequest.Builder setId(String value)

A unique identifier for the request.

string id = 1;

Parameter
Name Description
value String

The id to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
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
Name Description
value String

The method to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for method to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
HttpRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final HttpRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
HttpRequest.Builder
Overrides

setUrl(Url value)

public HttpRequest.Builder setUrl(Url value)

The HTTP request URL.

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

Parameter
Name Description
value Url
Returns
Type Description
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
Name Description
builderForValue Url.Builder
Returns
Type Description
HttpRequest.Builder