Class TcpRoute.RouteMatch.Builder (0.39.0)

public static final class TcpRoute.RouteMatch.Builder extends GeneratedMessage.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.cloud.networkservices.v1.TcpRoute.RouteMatch

Static Methods

getDescriptor()

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

Methods

build()

public TcpRoute.RouteMatch build()
Returns
Type Description
TcpRoute.RouteMatch

buildPartial()

public TcpRoute.RouteMatch buildPartial()
Returns
Type Description
TcpRoute.RouteMatch

clear()

public TcpRoute.RouteMatch.Builder clear()
Returns
Type Description
TcpRoute.RouteMatch.Builder
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 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TcpRoute.RouteMatch.Builder

This builder for chaining.

clearPort()

public TcpRoute.RouteMatch.Builder clearPort()

Required. Specifies the destination port to match against.

string port = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TcpRoute.RouteMatch.Builder

This builder for chaining.

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 [(.google.api.field_behavior) = REQUIRED];

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 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for address.

getDefaultInstanceForType()

public TcpRoute.RouteMatch getDefaultInstanceForType()
Returns
Type Description
TcpRoute.RouteMatch

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPort()

public String getPort()

Required. Specifies the destination port to match against.

string port = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The port.

getPortBytes()

public ByteString getPortBytes()

Required. Specifies the destination port to match against.

string port = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for port.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TcpRoute.RouteMatch other)

public TcpRoute.RouteMatch.Builder mergeFrom(TcpRoute.RouteMatch other)
Parameter
Name Description
other TcpRoute.RouteMatch
Returns
Type Description
TcpRoute.RouteMatch.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TcpRoute.RouteMatch.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TcpRoute.RouteMatch.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public TcpRoute.RouteMatch.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
TcpRoute.RouteMatch.Builder
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 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The address to set.

Returns
Type Description
TcpRoute.RouteMatch.Builder

This builder for chaining.

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 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for address to set.

Returns
Type Description
TcpRoute.RouteMatch.Builder

This builder for chaining.

setPort(String value)

public TcpRoute.RouteMatch.Builder setPort(String value)

Required. Specifies the destination port to match against.

string port = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The port to set.

Returns
Type Description
TcpRoute.RouteMatch.Builder

This builder for chaining.

setPortBytes(ByteString value)

public TcpRoute.RouteMatch.Builder setPortBytes(ByteString value)

Required. Specifies the destination port to match against.

string port = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for port to set.

Returns
Type Description
TcpRoute.RouteMatch.Builder

This builder for chaining.