Class HttpRoute.RouteRule.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<HttpRoute.RouteRule.Builder>
com.google.cloud.networkservices.v1.HttpRoute.RouteRule.Builder
- All Implemented Interfaces:
HttpRoute.RouteRuleOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- HttpRoute.RouteRule
public static final class HttpRoute.RouteRule.Builder
extends com.google.protobuf.GeneratedMessage.Builder<HttpRoute.RouteRule.Builder>
implements HttpRoute.RouteRuleOrBuilder
Specifies how to match traffic and how to route traffic when traffic is matched.Protobuf type
google.cloud.networkservices.v1.HttpRoute.RouteRule-
Method Summary
Modifier and TypeMethodDescriptionaddAllMatches(Iterable<? extends HttpRoute.RouteMatch> values) A list of matches define conditions used for matching the rule against incoming HTTP requests.addMatches(int index, HttpRoute.RouteMatch value) A list of matches define conditions used for matching the rule against incoming HTTP requests.addMatches(int index, HttpRoute.RouteMatch.Builder builderForValue) A list of matches define conditions used for matching the rule against incoming HTTP requests.addMatches(HttpRoute.RouteMatch value) A list of matches define conditions used for matching the rule against incoming HTTP requests.addMatches(HttpRoute.RouteMatch.Builder builderForValue) A list of matches define conditions used for matching the rule against incoming HTTP requests.A list of matches define conditions used for matching the rule against incoming HTTP requests.addMatchesBuilder(int index) A list of matches define conditions used for matching the rule against incoming HTTP requests.build()clear()The detailed rule defining how to route matched traffic.A list of matches define conditions used for matching the rule against incoming HTTP requests.The detailed rule defining how to route matched traffic.The detailed rule defining how to route matched traffic.The detailed rule defining how to route matched traffic.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetMatches(int index) A list of matches define conditions used for matching the rule against incoming HTTP requests.getMatchesBuilder(int index) A list of matches define conditions used for matching the rule against incoming HTTP requests.A list of matches define conditions used for matching the rule against incoming HTTP requests.intA list of matches define conditions used for matching the rule against incoming HTTP requests.A list of matches define conditions used for matching the rule against incoming HTTP requests.getMatchesOrBuilder(int index) A list of matches define conditions used for matching the rule against incoming HTTP requests.List<? extends HttpRoute.RouteMatchOrBuilder>A list of matches define conditions used for matching the rule against incoming HTTP requests.booleanThe detailed rule defining how to route matched traffic.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeAction(HttpRoute.RouteAction value) The detailed rule defining how to route matched traffic.mergeFrom(HttpRoute.RouteRule other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeMatches(int index) A list of matches define conditions used for matching the rule against incoming HTTP requests.setAction(HttpRoute.RouteAction value) The detailed rule defining how to route matched traffic.setAction(HttpRoute.RouteAction.Builder builderForValue) The detailed rule defining how to route matched traffic.setMatches(int index, HttpRoute.RouteMatch value) A list of matches define conditions used for matching the rule against incoming HTTP requests.setMatches(int index, HttpRoute.RouteMatch.Builder builderForValue) A list of matches define conditions used for matching the rule against incoming HTTP requests.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<HttpRoute.RouteRule.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<HttpRoute.RouteRule.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<HttpRoute.RouteRule.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HttpRoute.RouteRule.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<HttpRoute.RouteRule.Builder>
-
mergeFrom
public HttpRoute.RouteRule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HttpRoute.RouteRule.Builder>- Throws:
IOException
-
getMatchesList
A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic. If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.
repeated .google.cloud.networkservices.v1.HttpRoute.RouteMatch matches = 1;- Specified by:
getMatchesListin interfaceHttpRoute.RouteRuleOrBuilder
-
getMatchesCount
public int getMatchesCount()A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic. If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.
repeated .google.cloud.networkservices.v1.HttpRoute.RouteMatch matches = 1;- Specified by:
getMatchesCountin interfaceHttpRoute.RouteRuleOrBuilder
-
getMatches
A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic. If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.
repeated .google.cloud.networkservices.v1.HttpRoute.RouteMatch matches = 1;- Specified by:
getMatchesin interfaceHttpRoute.RouteRuleOrBuilder
-
setMatches
A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic. If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.
repeated .google.cloud.networkservices.v1.HttpRoute.RouteMatch matches = 1; -
setMatches
public HttpRoute.RouteRule.Builder setMatches(int index, HttpRoute.RouteMatch.Builder builderForValue) A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic. If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.
repeated .google.cloud.networkservices.v1.HttpRoute.RouteMatch matches = 1; -
addMatches
A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic. If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.
repeated .google.cloud.networkservices.v1.HttpRoute.RouteMatch matches = 1; -
addMatches
A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic. If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.
repeated .google.cloud.networkservices.v1.HttpRoute.RouteMatch matches = 1; -
addMatches
A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic. If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.
repeated .google.cloud.networkservices.v1.HttpRoute.RouteMatch matches = 1; -
addMatches
public HttpRoute.RouteRule.Builder addMatches(int index, HttpRoute.RouteMatch.Builder builderForValue) A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic. If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.
repeated .google.cloud.networkservices.v1.HttpRoute.RouteMatch matches = 1; -
addAllMatches
A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic. If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.
repeated .google.cloud.networkservices.v1.HttpRoute.RouteMatch matches = 1; -
clearMatches
A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic. If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.
repeated .google.cloud.networkservices.v1.HttpRoute.RouteMatch matches = 1; -
removeMatches
A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic. If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.
repeated .google.cloud.networkservices.v1.HttpRoute.RouteMatch matches = 1; -
getMatchesBuilder
A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic. If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.
repeated .google.cloud.networkservices.v1.HttpRoute.RouteMatch matches = 1; -
getMatchesOrBuilder
A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic. If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.
repeated .google.cloud.networkservices.v1.HttpRoute.RouteMatch matches = 1;- Specified by:
getMatchesOrBuilderin interfaceHttpRoute.RouteRuleOrBuilder
-
getMatchesOrBuilderList
A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic. If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.
repeated .google.cloud.networkservices.v1.HttpRoute.RouteMatch matches = 1;- Specified by:
getMatchesOrBuilderListin interfaceHttpRoute.RouteRuleOrBuilder
-
addMatchesBuilder
A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic. If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.
repeated .google.cloud.networkservices.v1.HttpRoute.RouteMatch matches = 1; -
addMatchesBuilder
A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic. If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.
repeated .google.cloud.networkservices.v1.HttpRoute.RouteMatch matches = 1; -
getMatchesBuilderList
A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic. If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.
repeated .google.cloud.networkservices.v1.HttpRoute.RouteMatch matches = 1; -
hasAction
public boolean hasAction()The detailed rule defining how to route matched traffic.
.google.cloud.networkservices.v1.HttpRoute.RouteAction action = 2;- Specified by:
hasActionin interfaceHttpRoute.RouteRuleOrBuilder- Returns:
- Whether the action field is set.
-
getAction
The detailed rule defining how to route matched traffic.
.google.cloud.networkservices.v1.HttpRoute.RouteAction action = 2;- Specified by:
getActionin interfaceHttpRoute.RouteRuleOrBuilder- Returns:
- The action.
-
setAction
The detailed rule defining how to route matched traffic.
.google.cloud.networkservices.v1.HttpRoute.RouteAction action = 2; -
setAction
The detailed rule defining how to route matched traffic.
.google.cloud.networkservices.v1.HttpRoute.RouteAction action = 2; -
mergeAction
The detailed rule defining how to route matched traffic.
.google.cloud.networkservices.v1.HttpRoute.RouteAction action = 2; -
clearAction
The detailed rule defining how to route matched traffic.
.google.cloud.networkservices.v1.HttpRoute.RouteAction action = 2; -
getActionBuilder
The detailed rule defining how to route matched traffic.
.google.cloud.networkservices.v1.HttpRoute.RouteAction action = 2; -
getActionOrBuilder
The detailed rule defining how to route matched traffic.
.google.cloud.networkservices.v1.HttpRoute.RouteAction action = 2;- Specified by:
getActionOrBuilderin interfaceHttpRoute.RouteRuleOrBuilder
-