Interface HttpBodyOrBuilder (2.48.0)

public interface HttpBodyOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getContentType()

public abstract String getContentType()

The HTTP Content-Type header value specifying the content type of the body.

string content_type = 1;

Returns
Type Description
String

The contentType.

getContentTypeBytes()

public abstract ByteString getContentTypeBytes()

The HTTP Content-Type header value specifying the content type of the body.

string content_type = 1;

Returns
Type Description
ByteString

The bytes for contentType.

getData()

public abstract ByteString getData()

The HTTP request/response body as raw binary.

bytes data = 2;

Returns
Type Description
ByteString

The data.

getExtensions(int index)

public abstract Any getExtensions(int index)

Application specific response metadata. Must be set in the first response for streaming APIs.

repeated .google.protobuf.Any extensions = 3;

Parameter
Name Description
index int
Returns
Type Description
Any

getExtensionsCount()

public abstract int getExtensionsCount()

Application specific response metadata. Must be set in the first response for streaming APIs.

repeated .google.protobuf.Any extensions = 3;

Returns
Type Description
int

getExtensionsList()

public abstract List<Any> getExtensionsList()

Application specific response metadata. Must be set in the first response for streaming APIs.

repeated .google.protobuf.Any extensions = 3;

Returns
Type Description
List<Any>

getExtensionsOrBuilder(int index)

public abstract AnyOrBuilder getExtensionsOrBuilder(int index)

Application specific response metadata. Must be set in the first response for streaming APIs.

repeated .google.protobuf.Any extensions = 3;

Parameter
Name Description
index int
Returns
Type Description
AnyOrBuilder

getExtensionsOrBuilderList()

public abstract List<? extends AnyOrBuilder> getExtensionsOrBuilderList()

Application specific response metadata. Must be set in the first response for streaming APIs.

repeated .google.protobuf.Any extensions = 3;

Returns
Type Description
List<? extends com.google.protobuf.AnyOrBuilder>