public static final class TlsRoute.RouteRule extends GeneratedMessageV3 implements TlsRoute.RouteRuleOrBuilder
Specifies how to match traffic and how to route traffic when traffic is matched.
Protobuf type google.events.cloud.networkservices.v1.TlsRoute.RouteRule
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > TlsRoute.RouteRuleImplements
TlsRoute.RouteRuleOrBuilderStatic 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 TlsRoute.RouteRule getDefaultInstance()
Returns | |
---|---|
Type | Description |
TlsRoute.RouteRule |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
newBuilder()
public static TlsRoute.RouteRule.Builder newBuilder()
Returns | |
---|---|
Type | Description |
TlsRoute.RouteRule.Builder |
newBuilder(TlsRoute.RouteRule prototype)
public static TlsRoute.RouteRule.Builder newBuilder(TlsRoute.RouteRule prototype)
Parameter | |
---|---|
Name | Description |
prototype |
TlsRoute.RouteRule |
Returns | |
---|---|
Type | Description |
TlsRoute.RouteRule.Builder |
parseDelimitedFrom(InputStream input)
public static TlsRoute.RouteRule parseDelimitedFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
TlsRoute.RouteRule |
Exceptions | |
---|---|
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static TlsRoute.RouteRule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
TlsRoute.RouteRule |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(byte[] data)
public static TlsRoute.RouteRule parseFrom(byte[] data)
Parameter | |
---|---|
Name | Description |
data |
byte[] |
Returns | |
---|---|
Type | Description |
TlsRoute.RouteRule |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static TlsRoute.RouteRule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
TlsRoute.RouteRule |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static TlsRoute.RouteRule parseFrom(ByteString data)
Parameter | |
---|---|
Name | Description |
data |
ByteString |
Returns | |
---|---|
Type | Description |
TlsRoute.RouteRule |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static TlsRoute.RouteRule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
TlsRoute.RouteRule |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static TlsRoute.RouteRule parseFrom(CodedInputStream input)
Parameter | |
---|---|
Name | Description |
input |
CodedInputStream |
Returns | |
---|---|
Type | Description |
TlsRoute.RouteRule |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static TlsRoute.RouteRule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
TlsRoute.RouteRule |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input)
public static TlsRoute.RouteRule parseFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
TlsRoute.RouteRule |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static TlsRoute.RouteRule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
TlsRoute.RouteRule |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static TlsRoute.RouteRule parseFrom(ByteBuffer data)
Parameter | |
---|---|
Name | Description |
data |
ByteBuffer |
Returns | |
---|---|
Type | Description |
TlsRoute.RouteRule |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static TlsRoute.RouteRule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
TlsRoute.RouteRule |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<TlsRoute.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 |
getAction()
public TlsRoute.RouteAction getAction()
Required. The detailed rule defining how to route matched traffic.
.google.events.cloud.networkservices.v1.TlsRoute.RouteAction action = 2;
Returns | |
---|---|
Type | Description |
TlsRoute.RouteAction |
The action. |
getActionOrBuilder()
public TlsRoute.RouteActionOrBuilder getActionOrBuilder()
Required. The detailed rule defining how to route matched traffic.
.google.events.cloud.networkservices.v1.TlsRoute.RouteAction action = 2;
Returns | |
---|---|
Type | Description |
TlsRoute.RouteActionOrBuilder |
getDefaultInstanceForType()
public TlsRoute.RouteRule getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
TlsRoute.RouteRule |
getMatches(int index)
public TlsRoute.RouteMatch getMatches(int index)
Required. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation.
repeated .google.events.cloud.networkservices.v1.TlsRoute.RouteMatch matches = 1;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
TlsRoute.RouteMatch |
getMatchesCount()
public int getMatchesCount()
Required. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation.
repeated .google.events.cloud.networkservices.v1.TlsRoute.RouteMatch matches = 1;
Returns | |
---|---|
Type | Description |
int |
getMatchesList()
public List<TlsRoute.RouteMatch> getMatchesList()
Required. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation.
repeated .google.events.cloud.networkservices.v1.TlsRoute.RouteMatch matches = 1;
Returns | |
---|---|
Type | Description |
List<RouteMatch> |
getMatchesOrBuilder(int index)
public TlsRoute.RouteMatchOrBuilder getMatchesOrBuilder(int index)
Required. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation.
repeated .google.events.cloud.networkservices.v1.TlsRoute.RouteMatch matches = 1;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
TlsRoute.RouteMatchOrBuilder |
getMatchesOrBuilderList()
public List<? extends TlsRoute.RouteMatchOrBuilder> getMatchesOrBuilderList()
Required. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation.
repeated .google.events.cloud.networkservices.v1.TlsRoute.RouteMatch matches = 1;
Returns | |
---|---|
Type | Description |
List<? extends com.google.events.cloud.networkservices.v1.TlsRoute.RouteMatchOrBuilder> |
getParserForType()
public Parser<TlsRoute.RouteRule> getParserForType()
Returns | |
---|---|
Type | Description |
Parser<RouteRule> |
getSerializedSize()
public int getSerializedSize()
Returns | |
---|---|
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns | |
---|---|
Type | Description |
UnknownFieldSet |
hasAction()
public boolean hasAction()
Required. The detailed rule defining how to route matched traffic.
.google.events.cloud.networkservices.v1.TlsRoute.RouteAction action = 2;
Returns | |
---|---|
Type | Description |
boolean |
Whether the action field is set. |
hashCode()
public int hashCode()
Returns | |
---|---|
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
newBuilderForType()
public TlsRoute.RouteRule.Builder newBuilderForType()
Returns | |
---|---|
Type | Description |
TlsRoute.RouteRule.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected TlsRoute.RouteRule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter | |
---|---|
Name | Description |
parent |
BuilderParent |
Returns | |
---|---|
Type | Description |
TlsRoute.RouteRule.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter | |
---|---|
Name | Description |
unused |
UnusedPrivateParameter |
Returns | |
---|---|
Type | Description |
Object |
toBuilder()
public TlsRoute.RouteRule.Builder toBuilder()
Returns | |
---|---|
Type | Description |
TlsRoute.RouteRule.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter | |
---|---|
Name | Description |
output |
CodedOutputStream |
Exceptions | |
---|---|
Type | Description |
IOException |