Package com.google.api
Class Http.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Http,Http.Builder>
com.google.api.Http.Builder
- All Implemented Interfaces:
HttpOrBuilder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,Cloneable
- Enclosing class:
- Http
public static final class Http.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Http,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-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionaddAllRules(Iterable<? extends HttpRule> values) A list of HTTP configuration rules that apply to individual API methods.A list of HTTP configuration rules that apply to individual API methods.addRules(int index, HttpRule.Builder builderForValue) A list of HTTP configuration rules that apply to individual API methods.A list of HTTP configuration rules that apply to individual API methods.addRules(HttpRule.Builder builderForValue) A list of HTTP configuration rules that apply to individual API methods.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.A list of HTTP configuration rules that apply to individual API methods.booleanWhen 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.getRules(int index) A list of HTTP configuration rules that apply to individual API methods.intA list of HTTP configuration rules that apply to individual API methods.A list of HTTP configuration rules that apply to individual API methods.removeRules(int index) A list of HTTP configuration rules that apply to individual API methods.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.A list of HTTP configuration rules that apply to individual API methods.setRules(int index, HttpRule.Builder builderForValue) A list of HTTP configuration rules that apply to individual API methods.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
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"];- Specified by:
getRulesListin interfaceHttpOrBuilder
-
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 [json_name = "rules"];- Specified by:
getRulesCountin interfaceHttpOrBuilder
-
getRules
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"];- Specified by:
getRulesin interfaceHttpOrBuilder
-
setRules
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"]; -
setRules
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"]; -
addRules
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"]; -
addRules
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"]; -
addRules
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"]; -
addRules
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"]; -
addAllRules
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"]; -
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"]; -
removeRules
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"]; -
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 [json_name = "fullyDecodeReservedExpansion"];- Specified by:
getFullyDecodeReservedExpansionin interfaceHttpOrBuilder- Returns:
- The fullyDecodeReservedExpansion.
-
setFullyDecodeReservedExpansion
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"];- Parameters:
value- The fullyDecodeReservedExpansion to set.- Returns:
- This builder for chaining.
-
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"];- Returns:
- This builder for chaining.
-