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
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 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>
|
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];
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];
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];
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];
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];
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
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TlsRoute.RouteRule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public TlsRoute.RouteRule build()
buildPartial()
public TlsRoute.RouteRule buildPartial()
clear()
public TlsRoute.RouteRule.Builder clear()
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];
clearField(Descriptors.FieldDescriptor field)
public TlsRoute.RouteRule.Builder clearField(Descriptors.FieldDescriptor field)
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];
clearOneof(Descriptors.OneofDescriptor oneof)
public TlsRoute.RouteRule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public TlsRoute.RouteRule.Builder clone()
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];
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];
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];
getDefaultInstanceForType()
public TlsRoute.RouteRule getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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
|
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
|
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];
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];
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
|
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()
Overrides
isInitialized()
public final boolean isInitialized()
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];
mergeFrom(TlsRoute.RouteRule other)
public TlsRoute.RouteRule.Builder mergeFrom(TlsRoute.RouteRule other)
public TlsRoute.RouteRule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public TlsRoute.RouteRule.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TlsRoute.RouteRule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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
|
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];
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];
setField(Descriptors.FieldDescriptor field, Object value)
public TlsRoute.RouteRule.Builder setField(Descriptors.FieldDescriptor field, Object value)
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];
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];
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TlsRoute.RouteRule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final TlsRoute.RouteRule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides