程序包 com.google.api

# 类 Http.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<Http.Builder>
com.google.api.Http.Builder

所有已实现的接口:
  `HttpOrBuilder`, `com.google.protobuf.Message.Builder`, `com.google.protobuf.MessageLite.Builder`, `com.google.protobuf.MessageLiteOrBuilder`, `com.google.protobuf.MessageOrBuilder`, `Cloneable`

封闭类:
  Http

public static final class Http.Builder extends com.google.protobuf.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`

- ## 方法概要

  修饰符和类型
  方法
  说明
  `Http.Builder`
  `addAllRules​(Iterable<? extends HttpRule> values)`
  A list of HTTP configuration rules that apply to individual API methods.
  `Http.Builder`
  `addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)`
  `Http.Builder`
  `addRules​(int index, 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​(HttpRule value)`
  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.
  `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​(com.google.protobuf.Descriptors.FieldDescriptor field)`
  `Http.Builder`
  `clearFullyDecodeReservedExpansion()`
  When set to true, URL path parmeters will be fully URI-decoded except in cases of single segment matches in reserved expansion, where "%2F" will be left encoded.
  `Http.Builder`
  `clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)`
  `Http.Builder`
  `clearRules()`
  A list of HTTP configuration rules that apply to individual API methods.
  `Http.Builder`
  `clone()`
  `Http`
  `getDefaultInstanceForType()`
  `static com.google.protobuf.Descriptors.Descriptor`
  `getDescriptor()`
  `com.google.protobuf.Descriptors.Descriptor`
  `getDescriptorForType()`
  `boolean`
  `getFullyDecodeReservedExpansion()`
  When set to true, URL path parmeters 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.
  `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.
  `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.
  `List<? extends HttpRuleOrBuilder>`
  `getRulesOrBuilderList()`
  A list of HTTP configuration rules that apply to individual API methods.
  `protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable`
  `internalGetFieldAccessorTable()`
  `boolean`
  `isInitialized()`
  `Http.Builder`
  `mergeFrom​(Http other)`
  `Http.Builder`
  `mergeFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)`
  `Http.Builder`
  `mergeFrom​(com.google.protobuf.Message other)`
  `Http.Builder`
  `mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)`
  `Http.Builder`
  `removeRules​(int index)`
  A list of HTTP configuration rules that apply to individual API methods.
  `Http.Builder`
  `setField​(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)`
  `Http.Builder`
  `setFullyDecodeReservedExpansion​(boolean value)`
  When set to true, URL path parmeters will be fully URI-decoded except in cases of single segment matches in reserved expansion, where "%2F" will be left encoded.
  `Http.Builder`
  `setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)`
  `Http.Builder`
  `setRules​(int index, HttpRule value)`
  A list of HTTP configuration rules that apply to individual API methods.
  `Http.Builder`
  `setRules​(int index, HttpRule.Builder builderForValue)`
  A list of HTTP configuration rules that apply to individual API methods.
  `Http.Builder`
  `setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)`

  ### 从类继承的方法 com.google.protobuf.GeneratedMessageV3.Builder

  `getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3`

  ### 从类继承的方法 com.google.protobuf.AbstractMessage.Builder

  `findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString`

  ### 从类继承的方法 com.google.protobuf.AbstractMessageLite.Builder

  `addAll, addAll, mergeFrom, newUninitializedMessageException`

  ### 从类继承的方法 java.lang.Object

  `equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

  ### 从接口继承的方法 com.google.protobuf.MessageLite.Builder

  `mergeFrom`

  ### 从接口继承的方法 com.google.protobuf.MessageOrBuilder

  `findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof`

- ## 方法详细资料

  - ### getDescriptor

    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()

  - ### internalGetFieldAccessorTable

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
    指定者:
      `internalGetFieldAccessorTable` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<Http.Builder>`

  - ### clear

    public Http.Builder clear()
    指定者:
      `clear` 在接口中 `com.google.protobuf.Message.Builder`
    指定者:
      `clear` 在接口中 `com.google.protobuf.MessageLite.Builder`
    覆盖:
      `clear` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<Http.Builder>`

  - ### getDescriptorForType

    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
    指定者:
      `getDescriptorForType` 在接口中 `com.google.protobuf.Message.Builder`
    指定者:
      `getDescriptorForType` 在接口中 `com.google.protobuf.MessageOrBuilder`
    覆盖:
      `getDescriptorForType` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<Http.Builder>`

  - ### getDefaultInstanceForType

    public Http getDefaultInstanceForType()
    指定者:
      `getDefaultInstanceForType` 在接口中 `com.google.protobuf.MessageLiteOrBuilder`
    指定者:
      `getDefaultInstanceForType` 在接口中 `com.google.protobuf.MessageOrBuilder`

  - ### build

    public Http build()
    指定者:
      `build` 在接口中 `com.google.protobuf.Message.Builder`
    指定者:
      `build` 在接口中 `com.google.protobuf.MessageLite.Builder`

  - ### buildPartial

    public Http buildPartial()
    指定者:
      `buildPartial` 在接口中 `com.google.protobuf.Message.Builder`
    指定者:
      `buildPartial` 在接口中 `com.google.protobuf.MessageLite.Builder`

  - ### clone

    public Http.Builder clone()
    指定者:
      `clone` 在接口中 `com.google.protobuf.Message.Builder`
    指定者:
      `clone` 在接口中 `com.google.protobuf.MessageLite.Builder`
    覆盖:
      `clone` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<Http.Builder>`

  - ### setField

    public Http.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
    指定者:
      `setField` 在接口中 `com.google.protobuf.Message.Builder`
    覆盖:
      `setField` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<Http.Builder>`

  - ### clearField

    public Http.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
    指定者:
      `clearField` 在接口中 `com.google.protobuf.Message.Builder`
    覆盖:
      `clearField` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<Http.Builder>`

  - ### clearOneof

    public Http.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
    指定者:
      `clearOneof` 在接口中 `com.google.protobuf.Message.Builder`
    覆盖:
      `clearOneof` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<Http.Builder>`

  - ### setRepeatedField

    public Http.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
    指定者:
      `setRepeatedField` 在接口中 `com.google.protobuf.Message.Builder`
    覆盖:
      `setRepeatedField` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<Http.Builder>`

  - ### addRepeatedField

    public Http.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
    指定者:
      `addRepeatedField` 在接口中 `com.google.protobuf.Message.Builder`
    覆盖:
      `addRepeatedField` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<Http.Builder>`

  - ### mergeFrom

    public Http.Builder mergeFrom​(com.google.protobuf.Message other)
    指定者:
      `mergeFrom` 在接口中 `com.google.protobuf.Message.Builder`
    覆盖:
      `mergeFrom` 在类中 `com.google.protobuf.AbstractMessage.Builder<Http.Builder>`

  - ### mergeFrom

    public Http.Builder mergeFrom​(Http other)

  - ### isInitialized

    public final boolean isInitialized()
    指定者:
      `isInitialized` 在接口中 `com.google.protobuf.MessageLiteOrBuilder`
    覆盖:
      `isInitialized` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<Http.Builder>`

  - ### mergeFrom

    public Http.Builder mergeFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
    指定者:
      `mergeFrom` 在接口中 `com.google.protobuf.Message.Builder`
    指定者:
      `mergeFrom` 在接口中 `com.google.protobuf.MessageLite.Builder`
    覆盖:
      `mergeFrom` 在类中 `com.google.protobuf.AbstractMessage.Builder<Http.Builder>`
    抛出:
      `IOException`

  - ### 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;`
    指定者:
      `getRulesList` 在接口中 `HttpOrBuilder`

  - ### 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;`
    指定者:
      `getRulesCount` 在接口中 `HttpOrBuilder`

  - ### getRules

    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` 在接口中 `HttpOrBuilder`

  - ### setRules

    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;`

  - ### setRules

    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;`

  - ### addRules

    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;`

  - ### addRules

    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;`

  - ### addRules

    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;`

  - ### addRules

    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;`

  - ### addAllRules

    public Http.Builder addAllRules​(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;`

  - ### clearRules

    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;`

  - ### removeRules

    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;`

  - ### getRulesBuilder

    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;`

  - ### getRulesOrBuilder

    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` 在接口中 `HttpOrBuilder`

  - ### 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;`
    指定者:
      `getRulesOrBuilderList` 在接口中 `HttpOrBuilder`

  - ### addRulesBuilder

    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;`

  - ### addRulesBuilder

    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;`

  - ### getRulesBuilderList

    public 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;`

  - ### getFullyDecodeReservedExpansion

    public boolean getFullyDecodeReservedExpansion()

         When set to true, URL path parmeters 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` 在接口中 `HttpOrBuilder`
    返回:
      The fullyDecodeReservedExpansion.

  - ### setFullyDecodeReservedExpansion

    public Http.Builder setFullyDecodeReservedExpansion​(boolean value)

         When set to true, URL path parmeters 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;`
    参数:
      `value` - The fullyDecodeReservedExpansion to set.
    返回:
      This builder for chaining.

  - ### clearFullyDecodeReservedExpansion

    public Http.Builder clearFullyDecodeReservedExpansion()

         When set to true, URL path parmeters 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;`
    返回:
      This builder for chaining.

  - ### setUnknownFields

    public final Http.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
    指定者:
      `setUnknownFields` 在接口中 `com.google.protobuf.Message.Builder`
    覆盖:
      `setUnknownFields` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<Http.Builder>`

  - ### mergeUnknownFields

    public final Http.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
    指定者:
      `mergeUnknownFields` 在接口中 `com.google.protobuf.Message.Builder`
    覆盖:
      `mergeUnknownFields` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<Http.Builder>`