Class TcpRoute.RouteRule.Builder (0.1.0)

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.cloud.networkservices.v1.TcpRoute.RouteRule

Static 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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public TcpRoute.RouteRule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
TcpRoute.RouteRule.Builder
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.cloud.networkservices.v1.TcpRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TcpRoute.RouteRule.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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
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.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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
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
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TcpRoute.RouteRule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TcpRoute.RouteRule.Builder
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.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

setField(Descriptors.FieldDescriptor field, Object value)

public TcpRoute.RouteRule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TcpRoute.RouteRule.Builder
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.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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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