public static final class Http.Builder extends com.google.protobuf.GeneratedMessage.Builder<Http.Builder> implements HttpOrBuilder
Defines the HTTP configuration for an API service. It contains a list of [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method to one or more HTTP REST API methods.Protobuf type
google.api.Http| Modifier and Type | Method and Description |
|---|---|
Http.Builder |
addAllRules(java.lang.Iterable<? extends HttpRule> values)
A list of HTTP configuration rules that apply to individual API methods.
|
Http.Builder |
addRules(HttpRule.Builder builderForValue)
A list of HTTP configuration rules that apply to individual API methods.
|
Http.Builder |
addRules(HttpRule value)
A list of HTTP configuration rules that apply to individual API methods.
|
Http.Builder |
addRules(int index,
HttpRule.Builder builderForValue)
A list of HTTP configuration rules that apply to individual API methods.
|
Http.Builder |
addRules(int index,
HttpRule value)
A list of HTTP configuration rules that apply to individual API methods.
|
HttpRule.Builder |
addRulesBuilder()
A list of HTTP configuration rules that apply to individual API methods.
|
HttpRule.Builder |
addRulesBuilder(int index)
A list of HTTP configuration rules that apply to individual API methods.
|
Http |
build() |
Http |
buildPartial() |
Http.Builder |
clear() |
Http.Builder |
clearFullyDecodeReservedExpansion()
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.
|
Http.Builder |
clearRules()
A list of HTTP configuration rules that apply to individual API methods.
|
Http |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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.
|
HttpRule |
getRules(int index)
A list of HTTP configuration rules that apply to individual API methods.
|
HttpRule.Builder |
getRulesBuilder(int index)
A list of HTTP configuration rules that apply to individual API methods.
|
java.util.List<HttpRule.Builder> |
getRulesBuilderList()
A list of HTTP configuration rules that apply to individual API methods.
|
int |
getRulesCount()
A list of HTTP configuration rules that apply to individual API methods.
|
java.util.List<HttpRule> |
getRulesList()
A list of HTTP configuration rules that apply to individual API methods.
|
HttpRuleOrBuilder |
getRulesOrBuilder(int index)
A list of HTTP configuration rules that apply to individual API methods.
|
java.util.List<? extends HttpRuleOrBuilder> |
getRulesOrBuilderList()
A list of HTTP configuration rules that apply to individual API methods.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Http.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Http.Builder |
mergeFrom(Http other) |
Http.Builder |
mergeFrom(com.google.protobuf.Message other) |
Http.Builder |
removeRules(int index)
A list of HTTP configuration rules that apply to individual API methods.
|
Http.Builder |
setFullyDecodeReservedExpansion(boolean value)
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.
|
Http.Builder |
setRules(int index,
HttpRule.Builder builderForValue)
A list of HTTP configuration rules that apply to individual API methods.
|
Http.Builder |
setRules(int index,
HttpRule value)
A list of HTTP configuration rules that apply to individual API methods.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Http.Builder>public Http.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<Http.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Http.Builder>public Http getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Http build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Http buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Http.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Http.Builder>public Http.Builder mergeFrom(Http other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<Http.Builder>public Http.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Http.Builder>java.io.IOExceptionpublic java.util.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 [json_name = "rules"];getRulesList in interface HttpOrBuilderpublic 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 [json_name = "rules"];getRulesCount in interface HttpOrBuilderpublic 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 [json_name = "rules"];getRules in interface HttpOrBuilderpublic Http.Builder setRules(int index, HttpRule value)
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 [json_name = "rules"];public Http.Builder setRules(int index, HttpRule.Builder builderForValue)
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 [json_name = "rules"];public Http.Builder addRules(HttpRule value)
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 [json_name = "rules"];public Http.Builder addRules(int index, HttpRule value)
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 [json_name = "rules"];public Http.Builder addRules(HttpRule.Builder builderForValue)
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 [json_name = "rules"];public Http.Builder addRules(int index, HttpRule.Builder builderForValue)
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 [json_name = "rules"];public Http.Builder addAllRules(java.lang.Iterable<? extends HttpRule> values)
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 [json_name = "rules"];public Http.Builder clearRules()
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 [json_name = "rules"];public Http.Builder removeRules(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 [json_name = "rules"];public HttpRule.Builder getRulesBuilder(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 [json_name = "rules"];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 [json_name = "rules"];getRulesOrBuilder in interface HttpOrBuilderpublic java.util.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 [json_name = "rules"];getRulesOrBuilderList in interface HttpOrBuilderpublic HttpRule.Builder addRulesBuilder()
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 [json_name = "rules"];public HttpRule.Builder addRulesBuilder(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 [json_name = "rules"];public java.util.List<HttpRule.Builder> getRulesBuilderList()
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 [json_name = "rules"];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 [json_name = "fullyDecodeReservedExpansion"];getFullyDecodeReservedExpansion in interface HttpOrBuilderpublic Http.Builder setFullyDecodeReservedExpansion(boolean value)
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 [json_name = "fullyDecodeReservedExpansion"];value - The fullyDecodeReservedExpansion to set.public Http.Builder clearFullyDecodeReservedExpansion()
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 [json_name = "fullyDecodeReservedExpansion"];