public final class Http extends GeneratedMessageV3 implements HttpOrBuilder
Defines the HTTP configuration for an API service. It contains a list of HttpRule, each specifying the mapping of an RPC method to one or more HTTP REST API methods.
Protobuf type google.api.Http
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > HttpImplements
HttpOrBuilderStatic Fields
FULLY_DECODE_RESERVED_EXPANSION_FIELD_NUMBER
public static final int FULLY_DECODE_RESERVED_EXPANSION_FIELD_NUMBER
Type | Description |
int |
RULES_FIELD_NUMBER
public static final int RULES_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static Http getDefaultInstance()
Type | Description |
Http |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static Http.Builder newBuilder()
Type | Description |
Http.Builder |
newBuilder(Http prototype)
public static Http.Builder newBuilder(Http prototype)
Name | Description |
prototype | Http |
Type | Description |
Http.Builder |
parseDelimitedFrom(InputStream input)
public static Http parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
Http |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Http parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Http |
Type | Description |
IOException |
parseFrom(byte[] data)
public static Http parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
Http |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Http parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Http |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static Http parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
Http |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Http parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Http |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static Http parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
Http |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Http parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Http |
Type | Description |
IOException |
parseFrom(InputStream input)
public static Http parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
Http |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Http parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Http |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static Http parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
Http |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Http parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Http |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<Http> parser()
Type | Description |
Parser<Http> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstanceForType()
public Http getDefaultInstanceForType()
Type | Description |
Http |
getFullyDecodeReservedExpansion()
public boolean getFullyDecodeReservedExpansion()
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;
Type | Description |
boolean | The fullyDecodeReservedExpansion. |
getParserForType()
public Parser<Http> getParserForType()
Type | Description |
Parser<Http> |
getRules(int index)
public HttpRule getRules(int index)
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;
Name | Description |
index | int |
Type | Description |
HttpRule |
getRulesCount()
public int getRulesCount()
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;
Type | Description |
int |
getRulesList()
public List<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;
Type | Description |
List<HttpRule> |
getRulesOrBuilder(int index)
public HttpRuleOrBuilder getRulesOrBuilder(int index)
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;
Name | Description |
index | int |
Type | Description |
HttpRuleOrBuilder |
getRulesOrBuilderList()
public List<? extends HttpRuleOrBuilder> 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;
Type | Description |
List<? extends com.google.api.HttpRuleOrBuilder> |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public Http.Builder newBuilderForType()
Type | Description |
Http.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Http.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
Http.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public Http.Builder toBuilder()
Type | Description |
Http.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |