Class EndpointMatcher (0.3.0)

public final class EndpointMatcher extends GeneratedMessageV3 implements EndpointMatcherOrBuilder

A definition of a matcher that selects endpoints to which the policies should be applied.

Protobuf type google.cloud.networkservices.v1.EndpointMatcher

Static Fields

METADATA_LABEL_MATCHER_FIELD_NUMBER

public static final int METADATA_LABEL_MATCHER_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static EndpointMatcher getDefaultInstance()
Returns
Type Description
EndpointMatcher

getDescriptor()

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

newBuilder()

public static EndpointMatcher.Builder newBuilder()
Returns
Type Description
EndpointMatcher.Builder

newBuilder(EndpointMatcher prototype)

public static EndpointMatcher.Builder newBuilder(EndpointMatcher prototype)
Parameter
Name Description
prototype EndpointMatcher
Returns
Type Description
EndpointMatcher.Builder

parseDelimitedFrom(InputStream input)

public static EndpointMatcher parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
EndpointMatcher
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static EndpointMatcher parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EndpointMatcher
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static EndpointMatcher parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
EndpointMatcher
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static EndpointMatcher parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EndpointMatcher
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static EndpointMatcher parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
EndpointMatcher
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static EndpointMatcher parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EndpointMatcher
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static EndpointMatcher parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
EndpointMatcher
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static EndpointMatcher parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EndpointMatcher
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static EndpointMatcher parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
EndpointMatcher
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static EndpointMatcher parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EndpointMatcher
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static EndpointMatcher parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
EndpointMatcher
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static EndpointMatcher parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EndpointMatcher
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<EndpointMatcher> parser()
Returns
Type Description
Parser<EndpointMatcher>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public EndpointMatcher getDefaultInstanceForType()
Returns
Type Description
EndpointMatcher

getMatcherTypeCase()

public EndpointMatcher.MatcherTypeCase getMatcherTypeCase()
Returns
Type Description
EndpointMatcher.MatcherTypeCase

getMetadataLabelMatcher()

public EndpointMatcher.MetadataLabelMatcher getMetadataLabelMatcher()

The matcher is based on node metadata presented by xDS clients.

.google.cloud.networkservices.v1.EndpointMatcher.MetadataLabelMatcher metadata_label_matcher = 1;

Returns
Type Description
EndpointMatcher.MetadataLabelMatcher

The metadataLabelMatcher.

getMetadataLabelMatcherOrBuilder()

public EndpointMatcher.MetadataLabelMatcherOrBuilder getMetadataLabelMatcherOrBuilder()

The matcher is based on node metadata presented by xDS clients.

.google.cloud.networkservices.v1.EndpointMatcher.MetadataLabelMatcher metadata_label_matcher = 1;

Returns
Type Description
EndpointMatcher.MetadataLabelMatcherOrBuilder

getParserForType()

public Parser<EndpointMatcher> getParserForType()
Returns
Type Description
Parser<EndpointMatcher>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasMetadataLabelMatcher()

public boolean hasMetadataLabelMatcher()

The matcher is based on node metadata presented by xDS clients.

.google.cloud.networkservices.v1.EndpointMatcher.MetadataLabelMatcher metadata_label_matcher = 1;

Returns
Type Description
boolean

Whether the metadataLabelMatcher field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public EndpointMatcher.Builder newBuilderForType()
Returns
Type Description
EndpointMatcher.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected EndpointMatcher.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
EndpointMatcher.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public EndpointMatcher.Builder toBuilder()
Returns
Type Description
EndpointMatcher.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException