public static final class TcpRoute.RouteRule.Builder extends GeneratedMessage.Builder<TcpRoute.RouteRule.Builder> implements TcpRoute.RouteRuleOrBuilderSpecifies how to match traffic and how to route traffic when traffic is matched.
Protobuf type google.cloud.networkservices.v1.TcpRoute.RouteRule
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > TcpRoute.RouteRule.BuilderImplements
TcpRoute.RouteRuleOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.networkservices.v1.TcpRoute.RouteMatch> |
| Returns | |
|---|---|
| Type | Description |
TcpRoute.RouteRule.Builder |
|
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.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
TcpRoute.RouteMatch |
| Returns | |
|---|---|
| Type | Description |
TcpRoute.RouteRule.Builder |
|
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.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
TcpRoute.RouteMatch.Builder |
| Returns | |
|---|---|
| Type | Description |
TcpRoute.RouteRule.Builder |
|
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.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
TcpRoute.RouteMatch |
| Returns | |
|---|---|
| Type | Description |
TcpRoute.RouteRule.Builder |
|
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.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
TcpRoute.RouteMatch.Builder |
| Returns | |
|---|---|
| Type | Description |
TcpRoute.RouteRule.Builder |
|
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.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
TcpRoute.RouteMatch.Builder |
|
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.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
TcpRoute.RouteMatch.Builder |
|
build()
public TcpRoute.RouteRule build()| Returns | |
|---|---|
| Type | Description |
TcpRoute.RouteRule |
|
buildPartial()
public TcpRoute.RouteRule buildPartial()| Returns | |
|---|---|
| Type | Description |
TcpRoute.RouteRule |
|
clear()
public TcpRoute.RouteRule.Builder clear()| Returns | |
|---|---|
| Type | Description |
TcpRoute.RouteRule.Builder |
|
clearAction()
public TcpRoute.RouteRule.Builder clearAction()Required. The detailed rule defining how to route matched traffic.
.google.cloud.networkservices.v1.TcpRoute.RouteAction action = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
TcpRoute.RouteRule.Builder |
|
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.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
TcpRoute.RouteRule.Builder |
|
getAction()
public TcpRoute.RouteAction getAction()Required. The detailed rule defining how to route matched traffic.
.google.cloud.networkservices.v1.TcpRoute.RouteAction action = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
TcpRoute.RouteAction |
The action. |
getActionBuilder()
public TcpRoute.RouteAction.Builder getActionBuilder()Required. The detailed rule defining how to route matched traffic.
.google.cloud.networkservices.v1.TcpRoute.RouteAction action = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
TcpRoute.RouteAction.Builder |
|
getActionOrBuilder()
public TcpRoute.RouteActionOrBuilder getActionOrBuilder()Required. The detailed rule defining how to route matched traffic.
.google.cloud.networkservices.v1.TcpRoute.RouteAction action = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
TcpRoute.RouteActionOrBuilder |
|
getDefaultInstanceForType()
public TcpRoute.RouteRule getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
TcpRoute.RouteRule |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
TcpRoute.RouteMatch |
|
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.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
TcpRoute.RouteMatch.Builder |
|
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.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
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.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];
| 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.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<RouteMatch> |
|
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.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
TcpRoute.RouteMatchOrBuilder |
|
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.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.networkservices.v1.TcpRoute.RouteMatchOrBuilder> |
|
hasAction()
public boolean hasAction()Required. The detailed rule defining how to route matched traffic.
.google.cloud.networkservices.v1.TcpRoute.RouteAction action = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the action field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeAction(TcpRoute.RouteAction value)
public TcpRoute.RouteRule.Builder mergeAction(TcpRoute.RouteAction value)Required. The detailed rule defining how to route matched traffic.
.google.cloud.networkservices.v1.TcpRoute.RouteAction action = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
TcpRoute.RouteAction |
| Returns | |
|---|---|
| Type | Description |
TcpRoute.RouteRule.Builder |
|
mergeFrom(TcpRoute.RouteRule other)
public TcpRoute.RouteRule.Builder mergeFrom(TcpRoute.RouteRule other)| Parameter | |
|---|---|
| Name | Description |
other |
TcpRoute.RouteRule |
| Returns | |
|---|---|
| Type | Description |
TcpRoute.RouteRule.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TcpRoute.RouteRule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
TcpRoute.RouteRule.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public TcpRoute.RouteRule.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
TcpRoute.RouteRule.Builder |
|
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.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
TcpRoute.RouteRule.Builder |
|
setAction(TcpRoute.RouteAction value)
public TcpRoute.RouteRule.Builder setAction(TcpRoute.RouteAction value)Required. The detailed rule defining how to route matched traffic.
.google.cloud.networkservices.v1.TcpRoute.RouteAction action = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
TcpRoute.RouteAction |
| Returns | |
|---|---|
| Type | Description |
TcpRoute.RouteRule.Builder |
|
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.cloud.networkservices.v1.TcpRoute.RouteAction action = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
TcpRoute.RouteAction.Builder |
| Returns | |
|---|---|
| Type | Description |
TcpRoute.RouteRule.Builder |
|
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.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
TcpRoute.RouteMatch |
| Returns | |
|---|---|
| Type | Description |
TcpRoute.RouteRule.Builder |
|
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.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
TcpRoute.RouteMatch.Builder |
| Returns | |
|---|---|
| Type | Description |
TcpRoute.RouteRule.Builder |
|