Class HttpRoute.RouteRule.Builder (0.15.0)

public static final class HttpRoute.RouteRule.Builder extends GeneratedMessageV3.Builder<HttpRoute.RouteRule.Builder> implements HttpRoute.RouteRuleOrBuilder

Specifies how to match traffic and how to route traffic when traffic is matched.

Protobuf type google.events.cloud.networkservices.v1.HttpRoute.RouteRule

Static Methods

getDescriptor()

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

Methods

addAllMatches(Iterable<? extends HttpRoute.RouteMatch> values)

public HttpRoute.RouteRule.Builder addAllMatches(Iterable<? extends HttpRoute.RouteMatch> values)

A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic. If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.

repeated .google.events.cloud.networkservices.v1.HttpRoute.RouteMatch matches = 1;

Parameter
Name Description
values Iterable<? extends com.google.events.cloud.networkservices.v1.HttpRoute.RouteMatch>
Returns
Type Description
HttpRoute.RouteRule.Builder

addMatches(HttpRoute.RouteMatch value)

public HttpRoute.RouteRule.Builder addMatches(HttpRoute.RouteMatch value)

A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic. If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.

repeated .google.events.cloud.networkservices.v1.HttpRoute.RouteMatch matches = 1;

Parameter
Name Description
value HttpRoute.RouteMatch
Returns
Type Description
HttpRoute.RouteRule.Builder

addMatches(HttpRoute.RouteMatch.Builder builderForValue)

public HttpRoute.RouteRule.Builder addMatches(HttpRoute.RouteMatch.Builder builderForValue)

A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic. If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.

repeated .google.events.cloud.networkservices.v1.HttpRoute.RouteMatch matches = 1;

Parameter
Name Description
builderForValue HttpRoute.RouteMatch.Builder
Returns
Type Description
HttpRoute.RouteRule.Builder

addMatches(int index, HttpRoute.RouteMatch value)

public HttpRoute.RouteRule.Builder addMatches(int index, HttpRoute.RouteMatch value)

A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic. If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.

repeated .google.events.cloud.networkservices.v1.HttpRoute.RouteMatch matches = 1;

Parameters
Name Description
index int
value HttpRoute.RouteMatch
Returns
Type Description
HttpRoute.RouteRule.Builder

addMatches(int index, HttpRoute.RouteMatch.Builder builderForValue)

public HttpRoute.RouteRule.Builder addMatches(int index, HttpRoute.RouteMatch.Builder builderForValue)

A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic. If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.

repeated .google.events.cloud.networkservices.v1.HttpRoute.RouteMatch matches = 1;

Parameters
Name Description
index int
builderForValue HttpRoute.RouteMatch.Builder
Returns
Type Description
HttpRoute.RouteRule.Builder

addMatchesBuilder()

public HttpRoute.RouteMatch.Builder addMatchesBuilder()

A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic. If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.

repeated .google.events.cloud.networkservices.v1.HttpRoute.RouteMatch matches = 1;

Returns
Type Description
HttpRoute.RouteMatch.Builder

addMatchesBuilder(int index)

public HttpRoute.RouteMatch.Builder addMatchesBuilder(int index)

A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic. If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.

repeated .google.events.cloud.networkservices.v1.HttpRoute.RouteMatch matches = 1;

Parameter
Name Description
index int
Returns
Type Description
HttpRoute.RouteMatch.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public HttpRoute.RouteRule build()
Returns
Type Description
HttpRoute.RouteRule

buildPartial()

public HttpRoute.RouteRule buildPartial()
Returns
Type Description
HttpRoute.RouteRule

clear()

public HttpRoute.RouteRule.Builder clear()
Returns
Type Description
HttpRoute.RouteRule.Builder
Overrides

clearAction()

public HttpRoute.RouteRule.Builder clearAction()

The detailed rule defining how to route matched traffic.

.google.events.cloud.networkservices.v1.HttpRoute.RouteAction action = 2;

Returns
Type Description
HttpRoute.RouteRule.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearMatches()

public HttpRoute.RouteRule.Builder clearMatches()

A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic. If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.

repeated .google.events.cloud.networkservices.v1.HttpRoute.RouteMatch matches = 1;

Returns
Type Description
HttpRoute.RouteRule.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public HttpRoute.RouteRule.Builder clone()
Returns
Type Description
HttpRoute.RouteRule.Builder
Overrides

getAction()

public HttpRoute.RouteAction getAction()

The detailed rule defining how to route matched traffic.

.google.events.cloud.networkservices.v1.HttpRoute.RouteAction action = 2;

Returns
Type Description
HttpRoute.RouteAction

The action.

getActionBuilder()

public HttpRoute.RouteAction.Builder getActionBuilder()

The detailed rule defining how to route matched traffic.

.google.events.cloud.networkservices.v1.HttpRoute.RouteAction action = 2;

Returns
Type Description
HttpRoute.RouteAction.Builder

getActionOrBuilder()

public HttpRoute.RouteActionOrBuilder getActionOrBuilder()

The detailed rule defining how to route matched traffic.

.google.events.cloud.networkservices.v1.HttpRoute.RouteAction action = 2;

Returns
Type Description
HttpRoute.RouteActionOrBuilder

getDefaultInstanceForType()

public HttpRoute.RouteRule getDefaultInstanceForType()
Returns
Type Description
HttpRoute.RouteRule

getDescriptorForType()

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

getMatches(int index)

public HttpRoute.RouteMatch getMatches(int index)

A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic. If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.

repeated .google.events.cloud.networkservices.v1.HttpRoute.RouteMatch matches = 1;

Parameter
Name Description
index int
Returns
Type Description
HttpRoute.RouteMatch

getMatchesBuilder(int index)

public HttpRoute.RouteMatch.Builder getMatchesBuilder(int index)

A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic. If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.

repeated .google.events.cloud.networkservices.v1.HttpRoute.RouteMatch matches = 1;

Parameter
Name Description
index int
Returns
Type Description
HttpRoute.RouteMatch.Builder

getMatchesBuilderList()

public List<HttpRoute.RouteMatch.Builder> getMatchesBuilderList()

A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic. If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.

repeated .google.events.cloud.networkservices.v1.HttpRoute.RouteMatch matches = 1;

Returns
Type Description
List<Builder>

getMatchesCount()

public int getMatchesCount()

A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic. If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.

repeated .google.events.cloud.networkservices.v1.HttpRoute.RouteMatch matches = 1;

Returns
Type Description
int

getMatchesList()

public List<HttpRoute.RouteMatch> getMatchesList()

A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic. If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.

repeated .google.events.cloud.networkservices.v1.HttpRoute.RouteMatch matches = 1;

Returns
Type Description
List<RouteMatch>

getMatchesOrBuilder(int index)

public HttpRoute.RouteMatchOrBuilder getMatchesOrBuilder(int index)

A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic. If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.

repeated .google.events.cloud.networkservices.v1.HttpRoute.RouteMatch matches = 1;

Parameter
Name Description
index int
Returns
Type Description
HttpRoute.RouteMatchOrBuilder

getMatchesOrBuilderList()

public List<? extends HttpRoute.RouteMatchOrBuilder> getMatchesOrBuilderList()

A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic. If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.

repeated .google.events.cloud.networkservices.v1.HttpRoute.RouteMatch matches = 1;

Returns
Type Description
List<? extends com.google.events.cloud.networkservices.v1.HttpRoute.RouteMatchOrBuilder>

hasAction()

public boolean hasAction()

The detailed rule defining how to route matched traffic.

.google.events.cloud.networkservices.v1.HttpRoute.RouteAction action = 2;

Returns
Type Description
boolean

Whether the action field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAction(HttpRoute.RouteAction value)

public HttpRoute.RouteRule.Builder mergeAction(HttpRoute.RouteAction value)

The detailed rule defining how to route matched traffic.

.google.events.cloud.networkservices.v1.HttpRoute.RouteAction action = 2;

Parameter
Name Description
value HttpRoute.RouteAction
Returns
Type Description
HttpRoute.RouteRule.Builder

mergeFrom(HttpRoute.RouteRule other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeMatches(int index)

public HttpRoute.RouteRule.Builder removeMatches(int index)

A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic. If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.

repeated .google.events.cloud.networkservices.v1.HttpRoute.RouteMatch matches = 1;

Parameter
Name Description
index int
Returns
Type Description
HttpRoute.RouteRule.Builder

setAction(HttpRoute.RouteAction value)

public HttpRoute.RouteRule.Builder setAction(HttpRoute.RouteAction value)

The detailed rule defining how to route matched traffic.

.google.events.cloud.networkservices.v1.HttpRoute.RouteAction action = 2;

Parameter
Name Description
value HttpRoute.RouteAction
Returns
Type Description
HttpRoute.RouteRule.Builder

setAction(HttpRoute.RouteAction.Builder builderForValue)

public HttpRoute.RouteRule.Builder setAction(HttpRoute.RouteAction.Builder builderForValue)

The detailed rule defining how to route matched traffic.

.google.events.cloud.networkservices.v1.HttpRoute.RouteAction action = 2;

Parameter
Name Description
builderForValue HttpRoute.RouteAction.Builder
Returns
Type Description
HttpRoute.RouteRule.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMatches(int index, HttpRoute.RouteMatch value)

public HttpRoute.RouteRule.Builder setMatches(int index, HttpRoute.RouteMatch value)

A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic. If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.

repeated .google.events.cloud.networkservices.v1.HttpRoute.RouteMatch matches = 1;

Parameters
Name Description
index int
value HttpRoute.RouteMatch
Returns
Type Description
HttpRoute.RouteRule.Builder

setMatches(int index, HttpRoute.RouteMatch.Builder builderForValue)

public HttpRoute.RouteRule.Builder setMatches(int index, HttpRoute.RouteMatch.Builder builderForValue)

A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic. If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.

repeated .google.events.cloud.networkservices.v1.HttpRoute.RouteMatch matches = 1;

Parameters
Name Description
index int
builderForValue HttpRoute.RouteMatch.Builder
Returns
Type Description
HttpRoute.RouteRule.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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