Class TlsRoute.RouteRule.Builder (0.7.0)

public static final class TlsRoute.RouteRule.Builder extends GeneratedMessageV3.Builder<TlsRoute.RouteRule.Builder> implements TlsRoute.RouteRuleOrBuilder

Specifies how to match traffic and how to route traffic when traffic is matched.

Protobuf type google.cloud.networkservices.v1.TlsRoute.RouteRule

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllMatches(Iterable<? extends TlsRoute.RouteMatch> values)

public TlsRoute.RouteRule.Builder addAllMatches(Iterable<? extends TlsRoute.RouteMatch> values)

Required. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation.

repeated .google.cloud.networkservices.v1.TlsRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.networkservices.v1.TlsRoute.RouteMatch>
Returns
Type Description
TlsRoute.RouteRule.Builder

addMatches(TlsRoute.RouteMatch value)

public TlsRoute.RouteRule.Builder addMatches(TlsRoute.RouteMatch value)

Required. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation.

repeated .google.cloud.networkservices.v1.TlsRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value TlsRoute.RouteMatch
Returns
Type Description
TlsRoute.RouteRule.Builder

addMatches(TlsRoute.RouteMatch.Builder builderForValue)

public TlsRoute.RouteRule.Builder addMatches(TlsRoute.RouteMatch.Builder builderForValue)

Required. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation.

repeated .google.cloud.networkservices.v1.TlsRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue TlsRoute.RouteMatch.Builder
Returns
Type Description
TlsRoute.RouteRule.Builder

addMatches(int index, TlsRoute.RouteMatch value)

public TlsRoute.RouteRule.Builder addMatches(int index, TlsRoute.RouteMatch value)

Required. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation.

repeated .google.cloud.networkservices.v1.TlsRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value TlsRoute.RouteMatch
Returns
Type Description
TlsRoute.RouteRule.Builder

addMatches(int index, TlsRoute.RouteMatch.Builder builderForValue)

public TlsRoute.RouteRule.Builder addMatches(int index, TlsRoute.RouteMatch.Builder builderForValue)

Required. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation.

repeated .google.cloud.networkservices.v1.TlsRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue TlsRoute.RouteMatch.Builder
Returns
Type Description
TlsRoute.RouteRule.Builder

addMatchesBuilder()

public TlsRoute.RouteMatch.Builder addMatchesBuilder()

Required. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation.

repeated .google.cloud.networkservices.v1.TlsRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TlsRoute.RouteMatch.Builder

addMatchesBuilder(int index)

public TlsRoute.RouteMatch.Builder addMatchesBuilder(int index)

Required. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation.

repeated .google.cloud.networkservices.v1.TlsRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
TlsRoute.RouteMatch.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TlsRoute.RouteRule build()
Returns
Type Description
TlsRoute.RouteRule

buildPartial()

public TlsRoute.RouteRule buildPartial()
Returns
Type Description
TlsRoute.RouteRule

clear()

public TlsRoute.RouteRule.Builder clear()
Returns
Type Description
TlsRoute.RouteRule.Builder
Overrides

clearAction()

public TlsRoute.RouteRule.Builder clearAction()

Required. The detailed rule defining how to route matched traffic.

.google.cloud.networkservices.v1.TlsRoute.RouteAction action = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TlsRoute.RouteRule.Builder

clearField(Descriptors.FieldDescriptor field)

public TlsRoute.RouteRule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
TlsRoute.RouteRule.Builder
Overrides

clearMatches()

public TlsRoute.RouteRule.Builder clearMatches()

Required. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation.

repeated .google.cloud.networkservices.v1.TlsRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TlsRoute.RouteRule.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAction()

public TlsRoute.RouteAction getAction()

Required. The detailed rule defining how to route matched traffic.

.google.cloud.networkservices.v1.TlsRoute.RouteAction action = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TlsRoute.RouteAction

The action.

getActionBuilder()

public TlsRoute.RouteAction.Builder getActionBuilder()

Required. The detailed rule defining how to route matched traffic.

.google.cloud.networkservices.v1.TlsRoute.RouteAction action = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TlsRoute.RouteAction.Builder

getActionOrBuilder()

public TlsRoute.RouteActionOrBuilder getActionOrBuilder()

Required. The detailed rule defining how to route matched traffic.

.google.cloud.networkservices.v1.TlsRoute.RouteAction action = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TlsRoute.RouteActionOrBuilder

getDefaultInstanceForType()

public TlsRoute.RouteRule getDefaultInstanceForType()
Returns
Type Description
TlsRoute.RouteRule

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMatches(int index)

public TlsRoute.RouteMatch getMatches(int index)

Required. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation.

repeated .google.cloud.networkservices.v1.TlsRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
TlsRoute.RouteMatch

getMatchesBuilder(int index)

public TlsRoute.RouteMatch.Builder getMatchesBuilder(int index)

Required. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation.

repeated .google.cloud.networkservices.v1.TlsRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
TlsRoute.RouteMatch.Builder

getMatchesBuilderList()

public List<TlsRoute.RouteMatch.Builder> getMatchesBuilderList()

Required. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation.

repeated .google.cloud.networkservices.v1.TlsRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getMatchesCount()

public int getMatchesCount()

Required. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation.

repeated .google.cloud.networkservices.v1.TlsRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getMatchesList()

public List<TlsRoute.RouteMatch> getMatchesList()

Required. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation.

repeated .google.cloud.networkservices.v1.TlsRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<RouteMatch>

getMatchesOrBuilder(int index)

public TlsRoute.RouteMatchOrBuilder getMatchesOrBuilder(int index)

Required. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation.

repeated .google.cloud.networkservices.v1.TlsRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
TlsRoute.RouteMatchOrBuilder

getMatchesOrBuilderList()

public List<? extends TlsRoute.RouteMatchOrBuilder> getMatchesOrBuilderList()

Required. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation.

repeated .google.cloud.networkservices.v1.TlsRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.networkservices.v1.TlsRoute.RouteMatchOrBuilder>

hasAction()

public boolean hasAction()

Required. The detailed rule defining how to route matched traffic.

.google.cloud.networkservices.v1.TlsRoute.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(TlsRoute.RouteAction value)

public TlsRoute.RouteRule.Builder mergeAction(TlsRoute.RouteAction value)

Required. The detailed rule defining how to route matched traffic.

.google.cloud.networkservices.v1.TlsRoute.RouteAction action = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value TlsRoute.RouteAction
Returns
Type Description
TlsRoute.RouteRule.Builder

mergeFrom(TlsRoute.RouteRule other)

public TlsRoute.RouteRule.Builder mergeFrom(TlsRoute.RouteRule other)
Parameter
Name Description
other TlsRoute.RouteRule
Returns
Type Description
TlsRoute.RouteRule.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TlsRoute.RouteRule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TlsRoute.RouteRule.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public TlsRoute.RouteRule.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
TlsRoute.RouteRule.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TlsRoute.RouteRule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TlsRoute.RouteRule.Builder
Overrides

removeMatches(int index)

public TlsRoute.RouteRule.Builder removeMatches(int index)

Required. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation.

repeated .google.cloud.networkservices.v1.TlsRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
TlsRoute.RouteRule.Builder

setAction(TlsRoute.RouteAction value)

public TlsRoute.RouteRule.Builder setAction(TlsRoute.RouteAction value)

Required. The detailed rule defining how to route matched traffic.

.google.cloud.networkservices.v1.TlsRoute.RouteAction action = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value TlsRoute.RouteAction
Returns
Type Description
TlsRoute.RouteRule.Builder

setAction(TlsRoute.RouteAction.Builder builderForValue)

public TlsRoute.RouteRule.Builder setAction(TlsRoute.RouteAction.Builder builderForValue)

Required. The detailed rule defining how to route matched traffic.

.google.cloud.networkservices.v1.TlsRoute.RouteAction action = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue TlsRoute.RouteAction.Builder
Returns
Type Description
TlsRoute.RouteRule.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMatches(int index, TlsRoute.RouteMatch value)

public TlsRoute.RouteRule.Builder setMatches(int index, TlsRoute.RouteMatch value)

Required. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation.

repeated .google.cloud.networkservices.v1.TlsRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value TlsRoute.RouteMatch
Returns
Type Description
TlsRoute.RouteRule.Builder

setMatches(int index, TlsRoute.RouteMatch.Builder builderForValue)

public TlsRoute.RouteRule.Builder setMatches(int index, TlsRoute.RouteMatch.Builder builderForValue)

Required. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation.

repeated .google.cloud.networkservices.v1.TlsRoute.RouteMatch matches = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue TlsRoute.RouteMatch.Builder
Returns
Type Description
TlsRoute.RouteRule.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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