public static final class HttpRoute.RouteRule extends GeneratedMessageV3 implements HttpRoute.RouteRuleOrBuilder
Specifies how to match traffic and how to route traffic when traffic is
matched.
Protobuf type google.events.cloud.networkservices.v1.HttpRoute.RouteRule
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
ACTION_FIELD_NUMBER
public static final int ACTION_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
MATCHES_FIELD_NUMBER
public static final int MATCHES_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static HttpRoute.RouteRule getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static HttpRoute.RouteRule.Builder newBuilder()
newBuilder(HttpRoute.RouteRule prototype)
public static HttpRoute.RouteRule.Builder newBuilder(HttpRoute.RouteRule prototype)
public static HttpRoute.RouteRule parseDelimitedFrom(InputStream input)
public static HttpRoute.RouteRule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static HttpRoute.RouteRule parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static HttpRoute.RouteRule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static HttpRoute.RouteRule parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static HttpRoute.RouteRule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static HttpRoute.RouteRule parseFrom(CodedInputStream input)
public static HttpRoute.RouteRule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static HttpRoute.RouteRule parseFrom(InputStream input)
public static HttpRoute.RouteRule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static HttpRoute.RouteRule parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static HttpRoute.RouteRule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<HttpRoute.RouteRule> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getAction()
public HttpRoute.RouteAction getAction()
The detailed rule defining how to route matched traffic.
.google.events.cloud.networkservices.v1.HttpRoute.RouteAction action = 2;
getActionOrBuilder()
public HttpRoute.RouteActionOrBuilder getActionOrBuilder()
The detailed rule defining how to route matched traffic.
.google.events.cloud.networkservices.v1.HttpRoute.RouteAction action = 2;
getDefaultInstanceForType()
public HttpRoute.RouteRule getDefaultInstanceForType()
getMatches(int index)
public HttpRoute.RouteMatch getMatches(int index)
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.events.cloud.networkservices.v1.HttpRoute.RouteMatch matches = 1;
Parameter |
Name |
Description |
index |
int
|
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.events.cloud.networkservices.v1.HttpRoute.RouteMatch matches = 1;
Returns |
Type |
Description |
int |
|
getMatchesList()
public List<HttpRoute.RouteMatch> 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.events.cloud.networkservices.v1.HttpRoute.RouteMatch matches = 1;
getMatchesOrBuilder(int index)
public HttpRoute.RouteMatchOrBuilder getMatchesOrBuilder(int index)
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.events.cloud.networkservices.v1.HttpRoute.RouteMatch matches = 1;
Parameter |
Name |
Description |
index |
int
|
getMatchesOrBuilderList()
public List<? extends HttpRoute.RouteMatchOrBuilder> 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.events.cloud.networkservices.v1.HttpRoute.RouteMatch matches = 1;
Returns |
Type |
Description |
List<? extends com.google.events.cloud.networkservices.v1.HttpRoute.RouteMatchOrBuilder> |
|
getParserForType()
public Parser<HttpRoute.RouteRule> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Overrides
hasAction()
public boolean hasAction()
The detailed rule defining how to route matched traffic.
.google.events.cloud.networkservices.v1.HttpRoute.RouteAction action = 2;
Returns |
Type |
Description |
boolean |
Whether the action field is set.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public HttpRoute.RouteRule.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected HttpRoute.RouteRule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public HttpRoute.RouteRule.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides