Class HttpRequest (2.3.7)

public final class HttpRequest extends GeneratedMessageV3 implements HttpRequestOrBuilder

The proto definition of http request.

Protobuf type google.cloud.apigeeconnect.v1.HttpRequest

Static Fields

BODY_FIELD_NUMBER

public static final int BODY_FIELD_NUMBER
Field Value
TypeDescription
int

HEADERS_FIELD_NUMBER

public static final int HEADERS_FIELD_NUMBER
Field Value
TypeDescription
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
TypeDescription
int

METHOD_FIELD_NUMBER

public static final int METHOD_FIELD_NUMBER
Field Value
TypeDescription
int

URL_FIELD_NUMBER

public static final int URL_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static HttpRequest getDefaultInstance()
Returns
TypeDescription
HttpRequest

getDescriptor()

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

newBuilder()

public static HttpRequest.Builder newBuilder()
Returns
TypeDescription
HttpRequest.Builder

newBuilder(HttpRequest prototype)

public static HttpRequest.Builder newBuilder(HttpRequest prototype)
Parameter
NameDescription
prototypeHttpRequest
Returns
TypeDescription
HttpRequest.Builder

parseDelimitedFrom(InputStream input)

public static HttpRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
HttpRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HttpRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HttpRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static HttpRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
HttpRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static HttpRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HttpRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static HttpRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
HttpRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static HttpRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HttpRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static HttpRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
HttpRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static HttpRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HttpRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static HttpRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
HttpRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HttpRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HttpRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static HttpRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
HttpRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static HttpRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HttpRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<HttpRequest> parser()
Returns
TypeDescription
Parser<HttpRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getBody()

public ByteString getBody()

HTTP request body.

bytes body = 5;

Returns
TypeDescription
ByteString

The body.

getDefaultInstanceForType()

public HttpRequest getDefaultInstanceForType()
Returns
TypeDescription
HttpRequest

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

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.

getParserForType()

public Parser<HttpRequest> getParserForType()
Returns
TypeDescription
Parser<HttpRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getUrl()

public Url getUrl()

The HTTP request URL.

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

Returns
TypeDescription
Url

The url.

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public HttpRequest.Builder newBuilderForType()
Returns
TypeDescription
HttpRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected HttpRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
HttpRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public HttpRequest.Builder toBuilder()
Returns
TypeDescription
HttpRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException