Class Http (2.63.2)

publicfinalclassHttpextendsGeneratedMessageV3implementsHttpOrBuilder

Defines the HTTP configuration for an API service. It contains a list ofHttpRule, each specifying the mapping of an RPC method to one or more HTTP REST API methods.

Protobuf typegoogle.api.Http

Implements

HttpOrBuilder

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

FULLY_DECODE_RESERVED_EXPANSION_FIELD_NUMBER

publicstaticfinalintFULLY_DECODE_RESERVED_EXPANSION_FIELD_NUMBER
Field Value
TypeDescription
int

RULES_FIELD_NUMBER

publicstaticfinalintRULES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

publicstaticHttpgetDefaultInstance()
Returns
TypeDescription
Http

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

publicstaticHttp.BuildernewBuilder()
Returns
TypeDescription
Http.Builder

newBuilder(Http prototype)

publicstaticHttp.BuildernewBuilder(Httpprototype)
Parameter
NameDescription
prototypeHttp
Returns
TypeDescription
Http.Builder

parseDelimitedFrom(InputStream input)

publicstaticHttpparseDelimitedFrom(InputStreaminput)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Http
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticHttpparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Http
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

publicstaticHttpparseFrom(byte[]data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Http
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticHttpparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Http
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticHttpparseFrom(ByteStringdata)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Http
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticHttpparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Http
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticHttpparseFrom(CodedInputStreaminput)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Http
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticHttpparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Http
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

publicstaticHttpparseFrom(InputStreaminput)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Http
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticHttpparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Http
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

publicstaticHttpparseFrom(ByteBufferdata)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Http
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticHttpparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Http
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

publicstaticParser<Http>parser()
Returns
TypeDescription
Parser<Http>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

publicHttpgetDefaultInstanceForType()
Returns
TypeDescription
Http

getFullyDecodeReservedExpansion()

publicbooleangetFullyDecodeReservedExpansion()

When set to true, URL path parameters will be fully URI-decoded except in cases of single segment matches in reserved expansion, where "%2F" will be left encoded.

The default behavior is to not decode RFC 6570 reserved characters in multi segment matches.

bool fully_decode_reserved_expansion = 2;

Returns
TypeDescription
boolean

The fullyDecodeReservedExpansion.

getParserForType()

publicParser<Http>getParserForType()
Returns
TypeDescription
Parser<Http>
Overrides

getRules(int index)

publicHttpRulegetRules(intindex)

A list of HTTP configuration rules that apply to individual API methods.

NOTE: All service configuration rules follow "last one wins" order.

repeated .google.api.HttpRule rules = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
HttpRule

getRulesCount()

publicintgetRulesCount()

A list of HTTP configuration rules that apply to individual API methods.

NOTE: All service configuration rules follow "last one wins" order.

repeated .google.api.HttpRule rules = 1;

Returns
TypeDescription
int

getRulesList()

publicList<HttpRule>getRulesList()

A list of HTTP configuration rules that apply to individual API methods.

NOTE: All service configuration rules follow "last one wins" order.

repeated .google.api.HttpRule rules = 1;

Returns
TypeDescription
List<HttpRule>

getRulesOrBuilder(int index)

publicHttpRuleOrBuildergetRulesOrBuilder(intindex)

A list of HTTP configuration rules that apply to individual API methods.

NOTE: All service configuration rules follow "last one wins" order.

repeated .google.api.HttpRule rules = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
HttpRuleOrBuilder

getRulesOrBuilderList()

publicList<?extendsHttpRuleOrBuilder>getRulesOrBuilderList()

A list of HTTP configuration rules that apply to individual API methods.

NOTE: All service configuration rules follow "last one wins" order.

repeated .google.api.HttpRule rules = 1;

Returns
TypeDescription
List<? extends com.google.api.HttpRuleOrBuilder>

getSerializedSize()

publicintgetSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

publicinthashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

publicHttp.BuildernewBuilderForType()
Returns
TypeDescription
Http.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedHttp.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Http.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

publicHttp.BuildertoBuilder()
Returns
TypeDescription
Http.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-17 UTC.