public static final class TcpRoute.RouteMatch.Builder extends GeneratedMessageV3.Builder<TcpRoute.RouteMatch.Builder> implements TcpRoute.RouteMatchOrBuilder
RouteMatch defines the predicate used to match requests to a given action.
Multiple match types are "OR"ed for evaluation.
If no routeMatch field is specified, this rule will unconditionally match
traffic.
Protobuf type google.events.cloud.networkservices.v1.TcpRoute.RouteMatch
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TcpRoute.RouteMatch.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public TcpRoute.RouteMatch build()
buildPartial()
public TcpRoute.RouteMatch buildPartial()
clear()
public TcpRoute.RouteMatch.Builder clear()
Overrides
clearAddress()
public TcpRoute.RouteMatch.Builder clearAddress()
Required. Must be specified in the CIDR range format. A CIDR range
consists of an IP Address and a prefix length to construct the subnet
mask. By default, the prefix length is 32 (i.e. matches a single IP
address). Only IPV4 addresses are supported. Examples: "10.0.0.1" -
matches against this exact IP address. "10.0.0.0/8" - matches against any
IP address within the 10.0.0.0 subnet and 255.255.255.0 mask. "0.0.0.0/0"
- matches against any IP address'.
string address = 1;
clearField(Descriptors.FieldDescriptor field)
public TcpRoute.RouteMatch.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public TcpRoute.RouteMatch.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearPort()
public TcpRoute.RouteMatch.Builder clearPort()
Required. Specifies the destination port to match against.
string port = 2;
clone()
public TcpRoute.RouteMatch.Builder clone()
Overrides
getAddress()
public String getAddress()
Required. Must be specified in the CIDR range format. A CIDR range
consists of an IP Address and a prefix length to construct the subnet
mask. By default, the prefix length is 32 (i.e. matches a single IP
address). Only IPV4 addresses are supported. Examples: "10.0.0.1" -
matches against this exact IP address. "10.0.0.0/8" - matches against any
IP address within the 10.0.0.0 subnet and 255.255.255.0 mask. "0.0.0.0/0"
- matches against any IP address'.
string address = 1;
Returns |
Type |
Description |
String |
The address.
|
getAddressBytes()
public ByteString getAddressBytes()
Required. Must be specified in the CIDR range format. A CIDR range
consists of an IP Address and a prefix length to construct the subnet
mask. By default, the prefix length is 32 (i.e. matches a single IP
address). Only IPV4 addresses are supported. Examples: "10.0.0.1" -
matches against this exact IP address. "10.0.0.0/8" - matches against any
IP address within the 10.0.0.0 subnet and 255.255.255.0 mask. "0.0.0.0/0"
- matches against any IP address'.
string address = 1;
Returns |
Type |
Description |
ByteString |
The bytes for address.
|
getDefaultInstanceForType()
public TcpRoute.RouteMatch getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getPort()
Required. Specifies the destination port to match against.
string port = 2;
Returns |
Type |
Description |
String |
The port.
|
getPortBytes()
public ByteString getPortBytes()
Required. Specifies the destination port to match against.
string port = 2;
Returns |
Type |
Description |
ByteString |
The bytes for port.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(TcpRoute.RouteMatch other)
public TcpRoute.RouteMatch.Builder mergeFrom(TcpRoute.RouteMatch other)
public TcpRoute.RouteMatch.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public TcpRoute.RouteMatch.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TcpRoute.RouteMatch.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setAddress(String value)
public TcpRoute.RouteMatch.Builder setAddress(String value)
Required. Must be specified in the CIDR range format. A CIDR range
consists of an IP Address and a prefix length to construct the subnet
mask. By default, the prefix length is 32 (i.e. matches a single IP
address). Only IPV4 addresses are supported. Examples: "10.0.0.1" -
matches against this exact IP address. "10.0.0.0/8" - matches against any
IP address within the 10.0.0.0 subnet and 255.255.255.0 mask. "0.0.0.0/0"
- matches against any IP address'.
string address = 1;
Parameter |
Name |
Description |
value |
String
The address to set.
|
setAddressBytes(ByteString value)
public TcpRoute.RouteMatch.Builder setAddressBytes(ByteString value)
Required. Must be specified in the CIDR range format. A CIDR range
consists of an IP Address and a prefix length to construct the subnet
mask. By default, the prefix length is 32 (i.e. matches a single IP
address). Only IPV4 addresses are supported. Examples: "10.0.0.1" -
matches against this exact IP address. "10.0.0.0/8" - matches against any
IP address within the 10.0.0.0 subnet and 255.255.255.0 mask. "0.0.0.0/0"
- matches against any IP address'.
string address = 1;
Parameter |
Name |
Description |
value |
ByteString
The bytes for address to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public TcpRoute.RouteMatch.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setPort(String value)
public TcpRoute.RouteMatch.Builder setPort(String value)
Required. Specifies the destination port to match against.
string port = 2;
Parameter |
Name |
Description |
value |
String
The port to set.
|
setPortBytes(ByteString value)
public TcpRoute.RouteMatch.Builder setPortBytes(ByteString value)
Required. Specifies the destination port to match against.
string port = 2;
Parameter |
Name |
Description |
value |
ByteString
The bytes for port to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TcpRoute.RouteMatch.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final TcpRoute.RouteMatch.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides