# Database Center V1BETA API - Class Google::Cloud::DatabaseCenter::V1beta::Label (v0.7.0)

0.7.0 (latest) 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Database Center V1BETA API class Google::Cloud::DatabaseCenter::V1beta::Label.

Label is a key value pair applied to a resource.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #key

    def key() -> ::String

**Returns**

- (::String) --- The key part of the label.

### #key=

    def key=(value) -> ::String

**Parameter**

- **value** (::String) --- The key part of the label.
**Returns**

- (::String) --- The key part of the label.

### #source

    def source() -> ::String

**Returns**

- (::String) --- The source of the Label. Source is empty if the label is directly attached to the resource and not inherited.

### #source=

    def source=(value) -> ::String

**Parameter**

- **value** (::String) --- The source of the Label. Source is empty if the label is directly attached to the resource and not inherited.
**Returns**

- (::String) --- The source of the Label. Source is empty if the label is directly attached to the resource and not inherited.

### #value

    def value() -> ::String

**Returns**

- (::String) --- The value part of the label.

### #value=

    def value=(value) -> ::String

**Parameter**

- **value** (::String) --- The value part of the label.
**Returns**

- (::String) --- The value part of the label.