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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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>
|
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;
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;
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;
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;
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;
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
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public HttpRoute.RouteRule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public HttpRoute.RouteRule build()
buildPartial()
public HttpRoute.RouteRule buildPartial()
clear()
public HttpRoute.RouteRule.Builder clear()
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;
clearField(Descriptors.FieldDescriptor field)
public HttpRoute.RouteRule.Builder clearField(Descriptors.FieldDescriptor field)
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public HttpRoute.RouteRule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public HttpRoute.RouteRule.Builder clone()
Overrides
getAction()
public HttpRoute.RouteAction getAction()
The detailed rule defining how to route matched traffic.
.google.events.cloud.networkservices.v1.HttpRoute.RouteAction action = 2;
getActionBuilder()
public HttpRoute.RouteAction.Builder getActionBuilder()
The detailed rule defining how to route matched traffic.
.google.events.cloud.networkservices.v1.HttpRoute.RouteAction action = 2;
getActionOrBuilder()
public HttpRoute.RouteActionOrBuilder getActionOrBuilder()
The detailed rule defining how to route matched traffic.
.google.events.cloud.networkservices.v1.HttpRoute.RouteAction action = 2;
getDefaultInstanceForType()
public HttpRoute.RouteRule getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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
|
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
|
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;
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;
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
|
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()
Overrides
isInitialized()
public final boolean isInitialized()
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;
mergeFrom(HttpRoute.RouteRule other)
public HttpRoute.RouteRule.Builder mergeFrom(HttpRoute.RouteRule other)
public HttpRoute.RouteRule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public HttpRoute.RouteRule.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final HttpRoute.RouteRule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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
|
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;
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;
setField(Descriptors.FieldDescriptor field, Object value)
public HttpRoute.RouteRule.Builder setField(Descriptors.FieldDescriptor field, Object value)
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;
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;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public HttpRoute.RouteRule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final HttpRoute.RouteRule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides