public static final class TcpRoute.RouteRule.Builder extends GeneratedMessageV3.Builder<TcpRoute.RouteRule.Builder> implements TcpRoute.RouteRuleOrBuilder
Specifies how to match traffic and how to route traffic when traffic is
matched.
Protobuf type google.events.cloud.networkservices.v1.TcpRoute.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 TcpRoute.RouteMatch> values)
public TcpRoute.RouteRule.Builder addAllMatches(Iterable<? extends TcpRoute.RouteMatch> values)
Optional. RouteMatch defines the predicate used to match requests to a
given action. Multiple match types are "OR"ed for evaluation. If no
routeMatch field is specified, this rule will unconditionally match
traffic.
repeated .google.events.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.events.cloud.networkservices.v1.TcpRoute.RouteMatch>
|
addMatches(TcpRoute.RouteMatch value)
public TcpRoute.RouteRule.Builder addMatches(TcpRoute.RouteMatch value)
Optional. RouteMatch defines the predicate used to match requests to a
given action. Multiple match types are "OR"ed for evaluation. If no
routeMatch field is specified, this rule will unconditionally match
traffic.
repeated .google.events.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1;
addMatches(TcpRoute.RouteMatch.Builder builderForValue)
public TcpRoute.RouteRule.Builder addMatches(TcpRoute.RouteMatch.Builder builderForValue)
Optional. RouteMatch defines the predicate used to match requests to a
given action. Multiple match types are "OR"ed for evaluation. If no
routeMatch field is specified, this rule will unconditionally match
traffic.
repeated .google.events.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1;
addMatches(int index, TcpRoute.RouteMatch value)
public TcpRoute.RouteRule.Builder addMatches(int index, TcpRoute.RouteMatch value)
Optional. RouteMatch defines the predicate used to match requests to a
given action. Multiple match types are "OR"ed for evaluation. If no
routeMatch field is specified, this rule will unconditionally match
traffic.
repeated .google.events.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1;
addMatches(int index, TcpRoute.RouteMatch.Builder builderForValue)
public TcpRoute.RouteRule.Builder addMatches(int index, TcpRoute.RouteMatch.Builder builderForValue)
Optional. RouteMatch defines the predicate used to match requests to a
given action. Multiple match types are "OR"ed for evaluation. If no
routeMatch field is specified, this rule will unconditionally match
traffic.
repeated .google.events.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1;
addMatchesBuilder()
public TcpRoute.RouteMatch.Builder addMatchesBuilder()
Optional. RouteMatch defines the predicate used to match requests to a
given action. Multiple match types are "OR"ed for evaluation. If no
routeMatch field is specified, this rule will unconditionally match
traffic.
repeated .google.events.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1;
addMatchesBuilder(int index)
public TcpRoute.RouteMatch.Builder addMatchesBuilder(int index)
Optional. RouteMatch defines the predicate used to match requests to a
given action. Multiple match types are "OR"ed for evaluation. If no
routeMatch field is specified, this rule will unconditionally match
traffic.
repeated .google.events.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1;
Parameter |
Name |
Description |
index |
int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TcpRoute.RouteRule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public TcpRoute.RouteRule build()
buildPartial()
public TcpRoute.RouteRule buildPartial()
clear()
public TcpRoute.RouteRule.Builder clear()
Overrides
clearAction()
public TcpRoute.RouteRule.Builder clearAction()
Required. The detailed rule defining how to route matched traffic.
.google.events.cloud.networkservices.v1.TcpRoute.RouteAction action = 2;
clearField(Descriptors.FieldDescriptor field)
public TcpRoute.RouteRule.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearMatches()
public TcpRoute.RouteRule.Builder clearMatches()
Optional. RouteMatch defines the predicate used to match requests to a
given action. Multiple match types are "OR"ed for evaluation. If no
routeMatch field is specified, this rule will unconditionally match
traffic.
repeated .google.events.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public TcpRoute.RouteRule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public TcpRoute.RouteRule.Builder clone()
Overrides
getAction()
public TcpRoute.RouteAction getAction()
Required. The detailed rule defining how to route matched traffic.
.google.events.cloud.networkservices.v1.TcpRoute.RouteAction action = 2;
getActionBuilder()
public TcpRoute.RouteAction.Builder getActionBuilder()
Required. The detailed rule defining how to route matched traffic.
.google.events.cloud.networkservices.v1.TcpRoute.RouteAction action = 2;
getActionOrBuilder()
public TcpRoute.RouteActionOrBuilder getActionOrBuilder()
Required. The detailed rule defining how to route matched traffic.
.google.events.cloud.networkservices.v1.TcpRoute.RouteAction action = 2;
getDefaultInstanceForType()
public TcpRoute.RouteRule getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getMatches(int index)
public TcpRoute.RouteMatch getMatches(int index)
Optional. RouteMatch defines the predicate used to match requests to a
given action. Multiple match types are "OR"ed for evaluation. If no
routeMatch field is specified, this rule will unconditionally match
traffic.
repeated .google.events.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1;
Parameter |
Name |
Description |
index |
int
|
getMatchesBuilder(int index)
public TcpRoute.RouteMatch.Builder getMatchesBuilder(int index)
Optional. RouteMatch defines the predicate used to match requests to a
given action. Multiple match types are "OR"ed for evaluation. If no
routeMatch field is specified, this rule will unconditionally match
traffic.
repeated .google.events.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1;
Parameter |
Name |
Description |
index |
int
|
getMatchesBuilderList()
public List<TcpRoute.RouteMatch.Builder> getMatchesBuilderList()
Optional. RouteMatch defines the predicate used to match requests to a
given action. Multiple match types are "OR"ed for evaluation. If no
routeMatch field is specified, this rule will unconditionally match
traffic.
repeated .google.events.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1;
getMatchesCount()
public int getMatchesCount()
Optional. RouteMatch defines the predicate used to match requests to a
given action. Multiple match types are "OR"ed for evaluation. If no
routeMatch field is specified, this rule will unconditionally match
traffic.
repeated .google.events.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1;
Returns |
Type |
Description |
int |
|
getMatchesList()
public List<TcpRoute.RouteMatch> getMatchesList()
Optional. RouteMatch defines the predicate used to match requests to a
given action. Multiple match types are "OR"ed for evaluation. If no
routeMatch field is specified, this rule will unconditionally match
traffic.
repeated .google.events.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1;
getMatchesOrBuilder(int index)
public TcpRoute.RouteMatchOrBuilder getMatchesOrBuilder(int index)
Optional. RouteMatch defines the predicate used to match requests to a
given action. Multiple match types are "OR"ed for evaluation. If no
routeMatch field is specified, this rule will unconditionally match
traffic.
repeated .google.events.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1;
Parameter |
Name |
Description |
index |
int
|
getMatchesOrBuilderList()
public List<? extends TcpRoute.RouteMatchOrBuilder> getMatchesOrBuilderList()
Optional. RouteMatch defines the predicate used to match requests to a
given action. Multiple match types are "OR"ed for evaluation. If no
routeMatch field is specified, this rule will unconditionally match
traffic.
repeated .google.events.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1;
Returns |
Type |
Description |
List<? extends com.google.events.cloud.networkservices.v1.TcpRoute.RouteMatchOrBuilder> |
|
hasAction()
public boolean hasAction()
Required. The detailed rule defining how to route matched traffic.
.google.events.cloud.networkservices.v1.TcpRoute.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(TcpRoute.RouteAction value)
public TcpRoute.RouteRule.Builder mergeAction(TcpRoute.RouteAction value)
Required. The detailed rule defining how to route matched traffic.
.google.events.cloud.networkservices.v1.TcpRoute.RouteAction action = 2;
mergeFrom(TcpRoute.RouteRule other)
public TcpRoute.RouteRule.Builder mergeFrom(TcpRoute.RouteRule other)
public TcpRoute.RouteRule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public TcpRoute.RouteRule.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TcpRoute.RouteRule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeMatches(int index)
public TcpRoute.RouteRule.Builder removeMatches(int index)
Optional. RouteMatch defines the predicate used to match requests to a
given action. Multiple match types are "OR"ed for evaluation. If no
routeMatch field is specified, this rule will unconditionally match
traffic.
repeated .google.events.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1;
Parameter |
Name |
Description |
index |
int
|
setAction(TcpRoute.RouteAction value)
public TcpRoute.RouteRule.Builder setAction(TcpRoute.RouteAction value)
Required. The detailed rule defining how to route matched traffic.
.google.events.cloud.networkservices.v1.TcpRoute.RouteAction action = 2;
setAction(TcpRoute.RouteAction.Builder builderForValue)
public TcpRoute.RouteRule.Builder setAction(TcpRoute.RouteAction.Builder builderForValue)
Required. The detailed rule defining how to route matched traffic.
.google.events.cloud.networkservices.v1.TcpRoute.RouteAction action = 2;
setField(Descriptors.FieldDescriptor field, Object value)
public TcpRoute.RouteRule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setMatches(int index, TcpRoute.RouteMatch value)
public TcpRoute.RouteRule.Builder setMatches(int index, TcpRoute.RouteMatch value)
Optional. RouteMatch defines the predicate used to match requests to a
given action. Multiple match types are "OR"ed for evaluation. If no
routeMatch field is specified, this rule will unconditionally match
traffic.
repeated .google.events.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1;
setMatches(int index, TcpRoute.RouteMatch.Builder builderForValue)
public TcpRoute.RouteRule.Builder setMatches(int index, TcpRoute.RouteMatch.Builder builderForValue)
Optional. RouteMatch defines the predicate used to match requests to a
given action. Multiple match types are "OR"ed for evaluation. If no
routeMatch field is specified, this rule will unconditionally match
traffic.
repeated .google.events.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TcpRoute.RouteRule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final TcpRoute.RouteRule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides