Class Backend.Builder (2.39.1)

public static final class Backend.Builder extends GeneratedMessageV3.Builder<Backend.Builder> implements BackendOrBuilder

Backend defines the backend configuration for a service.

Protobuf type google.api.Backend

Implements

BackendOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllRules(Iterable<? extends BackendRule> values)

public Backend.Builder addAllRules(Iterable<? extends BackendRule> values)

A list of API backend rules that apply to individual API methods.

NOTE: All service configuration rules follow "last one wins" order.

repeated .google.api.BackendRule rules = 1;

Parameter
Name Description
values Iterable<? extends com.google.api.BackendRule>
Returns
Type Description
Backend.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Backend.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Backend.Builder
Overrides

addRules(BackendRule value)

public Backend.Builder addRules(BackendRule value)

A list of API backend rules that apply to individual API methods.

NOTE: All service configuration rules follow "last one wins" order.

repeated .google.api.BackendRule rules = 1;

Parameter
Name Description
value BackendRule
Returns
Type Description
Backend.Builder

addRules(BackendRule.Builder builderForValue)

public Backend.Builder addRules(BackendRule.Builder builderForValue)

A list of API backend rules that apply to individual API methods.

NOTE: All service configuration rules follow "last one wins" order.

repeated .google.api.BackendRule rules = 1;

Parameter
Name Description
builderForValue BackendRule.Builder
Returns
Type Description
Backend.Builder

addRules(int index, BackendRule value)

public Backend.Builder addRules(int index, BackendRule value)

A list of API backend rules that apply to individual API methods.

NOTE: All service configuration rules follow "last one wins" order.

repeated .google.api.BackendRule rules = 1;

Parameters
Name Description
index int
value BackendRule
Returns
Type Description
Backend.Builder

addRules(int index, BackendRule.Builder builderForValue)

public Backend.Builder addRules(int index, BackendRule.Builder builderForValue)

A list of API backend rules that apply to individual API methods.

NOTE: All service configuration rules follow "last one wins" order.

repeated .google.api.BackendRule rules = 1;

Parameters
Name Description
index int
builderForValue BackendRule.Builder
Returns
Type Description
Backend.Builder

addRulesBuilder()

public BackendRule.Builder addRulesBuilder()

A list of API backend rules that apply to individual API methods.

NOTE: All service configuration rules follow "last one wins" order.

repeated .google.api.BackendRule rules = 1;

Returns
Type Description
BackendRule.Builder

addRulesBuilder(int index)

public BackendRule.Builder addRulesBuilder(int index)

A list of API backend rules that apply to individual API methods.

NOTE: All service configuration rules follow "last one wins" order.

repeated .google.api.BackendRule rules = 1;

Parameter
Name Description
index int
Returns
Type Description
BackendRule.Builder

build()

public Backend build()
Returns
Type Description
Backend

buildPartial()

public Backend buildPartial()
Returns
Type Description
Backend

clear()

public Backend.Builder clear()
Returns
Type Description
Backend.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Backend.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Backend.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Backend.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Backend.Builder
Overrides

clearRules()

public Backend.Builder clearRules()

A list of API backend rules that apply to individual API methods.

NOTE: All service configuration rules follow "last one wins" order.

repeated .google.api.BackendRule rules = 1;

Returns
Type Description
Backend.Builder

clone()

public Backend.Builder clone()
Returns
Type Description
Backend.Builder
Overrides

getDefaultInstanceForType()

public Backend getDefaultInstanceForType()
Returns
Type Description
Backend

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getRules(int index)

public BackendRule getRules(int index)

A list of API backend rules that apply to individual API methods.

NOTE: All service configuration rules follow "last one wins" order.

repeated .google.api.BackendRule rules = 1;

Parameter
Name Description
index int
Returns
Type Description
BackendRule

getRulesBuilder(int index)

public BackendRule.Builder getRulesBuilder(int index)

A list of API backend rules that apply to individual API methods.

NOTE: All service configuration rules follow "last one wins" order.

repeated .google.api.BackendRule rules = 1;

Parameter
Name Description
index int
Returns
Type Description
BackendRule.Builder

getRulesBuilderList()

public List<BackendRule.Builder> getRulesBuilderList()

A list of API backend rules that apply to individual API methods.

NOTE: All service configuration rules follow "last one wins" order.

repeated .google.api.BackendRule rules = 1;

Returns
Type Description
List<Builder>

getRulesCount()

public int getRulesCount()

A list of API backend rules that apply to individual API methods.

NOTE: All service configuration rules follow "last one wins" order.

repeated .google.api.BackendRule rules = 1;

Returns
Type Description
int

getRulesList()

public List<BackendRule> getRulesList()

A list of API backend rules that apply to individual API methods.

NOTE: All service configuration rules follow "last one wins" order.

repeated .google.api.BackendRule rules = 1;

Returns
Type Description
List<BackendRule>

getRulesOrBuilder(int index)

public BackendRuleOrBuilder getRulesOrBuilder(int index)

A list of API backend rules that apply to individual API methods.

NOTE: All service configuration rules follow "last one wins" order.

repeated .google.api.BackendRule rules = 1;

Parameter
Name Description
index int
Returns
Type Description
BackendRuleOrBuilder

getRulesOrBuilderList()

public List<? extends BackendRuleOrBuilder> getRulesOrBuilderList()

A list of API backend rules that apply to individual API methods.

NOTE: All service configuration rules follow "last one wins" order.

repeated .google.api.BackendRule rules = 1;

Returns
Type Description
List<? extends com.google.api.BackendRuleOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Backend other)

public Backend.Builder mergeFrom(Backend other)
Parameter
Name Description
other Backend
Returns
Type Description
Backend.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Backend.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Backend.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Backend.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Backend.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Backend.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Backend.Builder
Overrides

removeRules(int index)

public Backend.Builder removeRules(int index)

A list of API backend rules that apply to individual API methods.

NOTE: All service configuration rules follow "last one wins" order.

repeated .google.api.BackendRule rules = 1;

Parameter
Name Description
index int
Returns
Type Description
Backend.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Backend.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Backend.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Backend.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Backend.Builder
Overrides

setRules(int index, BackendRule value)

public Backend.Builder setRules(int index, BackendRule value)

A list of API backend rules that apply to individual API methods.

NOTE: All service configuration rules follow "last one wins" order.

repeated .google.api.BackendRule rules = 1;

Parameters
Name Description
index int
value BackendRule
Returns
Type Description
Backend.Builder

setRules(int index, BackendRule.Builder builderForValue)

public Backend.Builder setRules(int index, BackendRule.Builder builderForValue)

A list of API backend rules that apply to individual API methods.

NOTE: All service configuration rules follow "last one wins" order.

repeated .google.api.BackendRule rules = 1;

Parameters
Name Description
index int
builderForValue BackendRule.Builder
Returns
Type Description
Backend.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Backend.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Backend.Builder
Overrides