Class TcpRoute.RouteMatch.Builder (0.16.0)

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TcpRoute.RouteMatch.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TcpRoute.RouteMatch.Builder
Overrides

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;

Returns
Type Description
TcpRoute.RouteMatch.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public TcpRoute.RouteMatch.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
TcpRoute.RouteMatch.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public TcpRoute.RouteMatch.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
TcpRoute.RouteMatch.Builder
Overrides

clearPort()

public TcpRoute.RouteMatch.Builder clearPort()

Required. Specifies the destination port to match against.

string port = 2;

Returns
Type Description
TcpRoute.RouteMatch.Builder

This builder for chaining.

clone()

public TcpRoute.RouteMatch.Builder clone()
Returns
Type Description
TcpRoute.RouteMatch.Builder
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()
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;

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()
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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TcpRoute.RouteMatch.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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;

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;

Parameter
Name Description
value ByteString

The bytes for address to set.

Returns
Type Description
TcpRoute.RouteMatch.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public TcpRoute.RouteMatch.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TcpRoute.RouteMatch.Builder
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.

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;

Parameter
Name Description
value ByteString

The bytes for port to set.

Returns
Type Description
TcpRoute.RouteMatch.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public TcpRoute.RouteMatch.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
TcpRoute.RouteMatch.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final TcpRoute.RouteMatch.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TcpRoute.RouteMatch.Builder
Overrides