public static final class Http.Builder extends GeneratedMessageV3.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 |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
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 |
clearField(Descriptors.FieldDescriptor field) |
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 |
clearOneof(Descriptors.OneofDescriptor oneof) |
Http.Builder |
clearRules()
A list of HTTP configuration rules that apply to individual API methods.
|
Http.Builder |
clone() |
Http |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
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 GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Http.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
Http.Builder |
mergeFrom(Http other) |
Http.Builder |
mergeFrom(Message other) |
Http.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
Http.Builder |
removeRules(int index)
A list of HTTP configuration rules that apply to individual API methods.
|
Http.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
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 |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
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.
|
Http.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<Http.Builder>
public Http.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Http.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Http.Builder>
public Http getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Http build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Http buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Http.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Http.Builder>
public Http.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Http.Builder>
public Http.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Http.Builder>
public Http.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<Http.Builder>
public Http.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Http.Builder>
public Http.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Http.Builder>
public Http.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Http.Builder>
public Http.Builder mergeFrom(Http other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Http.Builder>
public Http.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Http.Builder>
java.io.IOException
public 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;
getRulesList
in interface HttpOrBuilder
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;
getRulesCount
in interface HttpOrBuilder
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;
getRules
in interface HttpOrBuilder
public 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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
getRulesOrBuilder
in interface HttpOrBuilder
public 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;
getRulesOrBuilderList
in interface HttpOrBuilder
public 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;
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;
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;
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;
getFullyDecodeReservedExpansion
in interface HttpOrBuilder
public 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;
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;
public final Http.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Http.Builder>
public final Http.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Http.Builder>