Class GrpcRoute.RouteRule (0.15.0)

public static final class GrpcRoute.RouteRule extends GeneratedMessageV3 implements GrpcRoute.RouteRuleOrBuilder

Describes how to route traffic.

Protobuf type google.events.cloud.networkservices.v1.GrpcRoute.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 GrpcRoute.RouteRule getDefaultInstance()
Returns
Type Description
GrpcRoute.RouteRule

getDescriptor()

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

newBuilder()

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

newBuilder(GrpcRoute.RouteRule prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<GrpcRoute.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 GrpcRoute.RouteAction getAction()

Required. A detailed rule defining how to route traffic. This field is required.

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

Returns
Type Description
GrpcRoute.RouteAction

The action.

getActionOrBuilder()

public GrpcRoute.RouteActionOrBuilder getActionOrBuilder()

Required. A detailed rule defining how to route traffic. This field is required.

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

Returns
Type Description
GrpcRoute.RouteActionOrBuilder

getDefaultInstanceForType()

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

getMatches(int index)

public GrpcRoute.RouteMatch getMatches(int index)

Optional. Matches define conditions used for matching the rule against incoming gRPC 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.

repeated .google.events.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1;

Parameter
Name Description
index int
Returns
Type Description
GrpcRoute.RouteMatch

getMatchesCount()

public int getMatchesCount()

Optional. Matches define conditions used for matching the rule against incoming gRPC 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.

repeated .google.events.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1;

Returns
Type Description
int

getMatchesList()

public List<GrpcRoute.RouteMatch> getMatchesList()

Optional. Matches define conditions used for matching the rule against incoming gRPC 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.

repeated .google.events.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1;

Returns
Type Description
List<RouteMatch>

getMatchesOrBuilder(int index)

public GrpcRoute.RouteMatchOrBuilder getMatchesOrBuilder(int index)

Optional. Matches define conditions used for matching the rule against incoming gRPC 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.

repeated .google.events.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1;

Parameter
Name Description
index int
Returns
Type Description
GrpcRoute.RouteMatchOrBuilder

getMatchesOrBuilderList()

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

Optional. Matches define conditions used for matching the rule against incoming gRPC 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.

repeated .google.events.cloud.networkservices.v1.GrpcRoute.RouteMatch matches = 1;

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

getParserForType()

public Parser<GrpcRoute.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()

Required. A detailed rule defining how to route traffic. This field is required.

.google.events.cloud.networkservices.v1.GrpcRoute.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 GrpcRoute.RouteRule.Builder newBuilderForType()
Returns
Type Description
GrpcRoute.RouteRule.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected GrpcRoute.RouteRule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
GrpcRoute.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 GrpcRoute.RouteRule.Builder toBuilder()
Returns
Type Description
GrpcRoute.RouteRule.Builder

writeTo(CodedOutputStream output)

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