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
TypeDescription
int

MATCHES_FIELD_NUMBER

public static final int MATCHES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static GrpcRoute.RouteRule getDefaultInstance()
Returns
TypeDescription
GrpcRoute.RouteRule

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static GrpcRoute.RouteRule.Builder newBuilder()
Returns
TypeDescription
GrpcRoute.RouteRule.Builder

newBuilder(GrpcRoute.RouteRule prototype)

public static GrpcRoute.RouteRule.Builder newBuilder(GrpcRoute.RouteRule prototype)
Parameter
NameDescription
prototypeGrpcRoute.RouteRule
Returns
TypeDescription
GrpcRoute.RouteRule.Builder

parseDelimitedFrom(InputStream input)

public static GrpcRoute.RouteRule parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GrpcRoute.RouteRule
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GrpcRoute.RouteRule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GrpcRoute.RouteRule
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static GrpcRoute.RouteRule parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
GrpcRoute.RouteRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static GrpcRoute.RouteRule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GrpcRoute.RouteRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static GrpcRoute.RouteRule parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
GrpcRoute.RouteRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static GrpcRoute.RouteRule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GrpcRoute.RouteRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static GrpcRoute.RouteRule parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
GrpcRoute.RouteRule
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static GrpcRoute.RouteRule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GrpcRoute.RouteRule
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static GrpcRoute.RouteRule parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GrpcRoute.RouteRule
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GrpcRoute.RouteRule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GrpcRoute.RouteRule
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static GrpcRoute.RouteRule parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
GrpcRoute.RouteRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static GrpcRoute.RouteRule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GrpcRoute.RouteRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<GrpcRoute.RouteRule> parser()
Returns
TypeDescription
Parser<RouteRule>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
GrpcRoute.RouteActionOrBuilder

getDefaultInstanceForType()

public GrpcRoute.RouteRule getDefaultInstanceForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.events.cloud.networkservices.v1.GrpcRoute.RouteMatchOrBuilder>

getParserForType()

public Parser<GrpcRoute.RouteRule> getParserForType()
Returns
TypeDescription
Parser<RouteRule>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
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
TypeDescription
boolean

Whether the action field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public GrpcRoute.RouteRule.Builder newBuilderForType()
Returns
TypeDescription
GrpcRoute.RouteRule.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected GrpcRoute.RouteRule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
GrpcRoute.RouteRule.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public GrpcRoute.RouteRule.Builder toBuilder()
Returns
TypeDescription
GrpcRoute.RouteRule.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException