Class Backend.Builder (2.8.4)

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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.api.BackendRule>
Returns
TypeDescription
Backend.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Backend.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueBackendRule
Returns
TypeDescription
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
NameDescription
builderForValueBackendRule.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueBackendRule
Returns
TypeDescription
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
NameDescription
indexint
builderForValueBackendRule.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
BackendRule.Builder

build()

public Backend build()
Returns
TypeDescription
Backend

buildPartial()

public Backend buildPartial()
Returns
TypeDescription
Backend

clear()

public Backend.Builder clear()
Returns
TypeDescription
Backend.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Backend.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Backend.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Backend.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
Backend.Builder

clone()

public Backend.Builder clone()
Returns
TypeDescription
Backend.Builder
Overrides

getDefaultInstanceForType()

public Backend getDefaultInstanceForType()
Returns
TypeDescription
Backend

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.api.BackendRuleOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Backend other)

public Backend.Builder mergeFrom(Backend other)
Parameter
NameDescription
otherBackend
Returns
TypeDescription
Backend.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Backend.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Backend.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Backend.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Backend.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Backend.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Backend.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public Backend.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueBackendRule
Returns
TypeDescription
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
NameDescription
indexint
builderForValueBackendRule.Builder
Returns
TypeDescription
Backend.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Backend.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Backend.Builder
Overrides