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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.events.cloud.networkservices.v1.HttpRoute.RouteMatch>
Returns
TypeDescription
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
NameDescription
valueHttpRoute.RouteMatch
Returns
TypeDescription
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
NameDescription
builderForValueHttpRoute.RouteMatch.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueHttpRoute.RouteMatch
Returns
TypeDescription
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
NameDescription
indexint
builderForValueHttpRoute.RouteMatch.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
HttpRoute.RouteMatch.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public HttpRoute.RouteRule build()
Returns
TypeDescription
HttpRoute.RouteRule

buildPartial()

public HttpRoute.RouteRule buildPartial()
Returns
TypeDescription
HttpRoute.RouteRule

clear()

public HttpRoute.RouteRule.Builder clear()
Returns
TypeDescription
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
TypeDescription
HttpRoute.RouteRule.Builder

clearField(Descriptors.FieldDescriptor field)

public HttpRoute.RouteRule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
HttpRoute.RouteRule.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public HttpRoute.RouteRule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
HttpRoute.RouteRule.Builder
Overrides

clone()

public HttpRoute.RouteRule.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
HttpRoute.RouteActionOrBuilder

getDefaultInstanceForType()

public HttpRoute.RouteRule getDefaultInstanceForType()
Returns
TypeDescription
HttpRoute.RouteRule

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the action field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueHttpRoute.RouteAction
Returns
TypeDescription
HttpRoute.RouteRule.Builder

mergeFrom(HttpRoute.RouteRule other)

public HttpRoute.RouteRule.Builder mergeFrom(HttpRoute.RouteRule other)
Parameter
NameDescription
otherHttpRoute.RouteRule
Returns
TypeDescription
HttpRoute.RouteRule.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final HttpRoute.RouteRule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueHttpRoute.RouteAction
Returns
TypeDescription
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
NameDescription
builderForValueHttpRoute.RouteAction.Builder
Returns
TypeDescription
HttpRoute.RouteRule.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public HttpRoute.RouteRule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueHttpRoute.RouteMatch
Returns
TypeDescription
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
NameDescription
indexint
builderForValueHttpRoute.RouteMatch.Builder
Returns
TypeDescription
HttpRoute.RouteRule.Builder

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

public HttpRoute.RouteRule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
HttpRoute.RouteRule.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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