# Network Services V1 API - Class Google::Cloud::NetworkServices::V1::EndpointMatcher::MetadataLabelMatcher::MetadataLabels (v2.10.1)

2.10.1 (latest) 2.10.0 2.9.0 2.8.0 2.7.0 2.6.1 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.1 1.2.0 1.1.0 1.0.1 0.2.0 0.1.0 Reference documentation and code samples for the Network Services V1 API class Google::Cloud::NetworkServices::V1::EndpointMatcher::MetadataLabelMatcher::MetadataLabels.

Defines a name-pair value for a single label.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #label_name

    def label_name() -> ::String

**Returns**

- (::String) --- Required. Label name presented as key in xDS Node Metadata.

### #label_name=

    def label_name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Label name presented as key in xDS Node Metadata.
**Returns**

- (::String) --- Required. Label name presented as key in xDS Node Metadata.

### #label_value

    def label_value() -> ::String

**Returns**

- (::String) --- Required. Label value presented as value corresponding to the above key, in xDS Node Metadata.

### #label_value=

    def label_value=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Label value presented as value corresponding to the above key, in xDS Node Metadata.
**Returns**

- (::String) --- Required. Label value presented as value corresponding to the above key, in xDS Node Metadata.