Class HttpRoute.RouteRule (0.16.0)

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

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()
Returns
Type Description
HttpRoute.RouteRule

getDescriptor()

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

newBuilder()

public static HttpRoute.RouteRule.Builder newBuilder()
Returns
Type Description
HttpRoute.RouteRule.Builder

newBuilder(HttpRoute.RouteRule prototype)

public static HttpRoute.RouteRule.Builder newBuilder(HttpRoute.RouteRule prototype)
Parameter
Name Description
prototype HttpRoute.RouteRule
Returns
Type Description
HttpRoute.RouteRule.Builder

parseDelimitedFrom(InputStream input)

public static HttpRoute.RouteRule parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
HttpRoute.RouteRule
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HttpRoute.RouteRule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpRoute.RouteRule
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static HttpRoute.RouteRule parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
HttpRoute.RouteRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static HttpRoute.RouteRule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpRoute.RouteRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static HttpRoute.RouteRule parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
HttpRoute.RouteRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static HttpRoute.RouteRule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpRoute.RouteRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static HttpRoute.RouteRule parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
HttpRoute.RouteRule
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static HttpRoute.RouteRule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpRoute.RouteRule
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static HttpRoute.RouteRule parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
HttpRoute.RouteRule
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HttpRoute.RouteRule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpRoute.RouteRule
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static HttpRoute.RouteRule parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
HttpRoute.RouteRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static HttpRoute.RouteRule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpRoute.RouteRule
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<HttpRoute.RouteRule> parser()
Returns
Type Description
Parser<RouteRule>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAction()

public HttpRoute.RouteAction getAction()

The detailed rule defining how to route matched traffic.

.google.events.cloud.networkservices.v1.HttpRoute.RouteAction action = 2;

Returns
Type Description
HttpRoute.RouteAction

The action.

getActionOrBuilder()

public HttpRoute.RouteActionOrBuilder getActionOrBuilder()

The detailed rule defining how to route matched traffic.

.google.events.cloud.networkservices.v1.HttpRoute.RouteAction action = 2;

Returns
Type Description
HttpRoute.RouteActionOrBuilder

getDefaultInstanceForType()

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

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
Returns
Type Description
HttpRoute.RouteMatch

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;

Returns
Type Description
List<RouteMatch>

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
Returns
Type Description
HttpRoute.RouteMatchOrBuilder

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()
Returns
Type Description
Parser<RouteRule>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
Type Description
UnknownFieldSet
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()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public HttpRoute.RouteRule.Builder newBuilderForType()
Returns
Type Description
HttpRoute.RouteRule.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected HttpRoute.RouteRule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
HttpRoute.RouteRule.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public HttpRoute.RouteRule.Builder toBuilder()
Returns
Type Description
HttpRoute.RouteRule.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException