Class Http.Builder (2.11.0)

Stay organized with collections Save and categorize content based on your preferences.
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, each specifying the mapping of an RPC method to one or more HTTP REST API methods.

Protobuf type google.api.Http

Implements

HttpOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllRules(Iterable<? extends HttpRule> values)

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;

Parameter
NameDescription
valuesIterable<? extends com.google.api.HttpRule>
Returns
TypeDescription
Http.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Http.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Http.Builder
Overrides

addRules(HttpRule value)

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;

Parameter
NameDescription
valueHttpRule
Returns
TypeDescription
Http.Builder

addRules(HttpRule.Builder builderForValue)

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.HttpR