# Service Usage V1 API - Class Google::Protobuf::Enum (v1.8.0)

1.8.0 (latest) 1.7.1 1.6.0 1.5.1 1.4.0 1.3.0 1.2.1 1.1.0 1.0.1 0.7.0 0.6.2 0.5.0 0.4.0 0.3.1 0.2.1 0.1.4 Reference documentation and code samples for the Service Usage V1 API class Google::Protobuf::Enum.

Enum type definition.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #edition

    def edition() -> ::String

**Returns**

- (::String) --- The source edition string, only valid when syntax is SYNTAX_EDITIONS.

### #edition=

    def edition=(value) -> ::String

**Parameter**

- **value** (::String) --- The source edition string, only valid when syntax is SYNTAX_EDITIONS.
**Returns**

- (::String) --- The source edition string, only valid when syntax is SYNTAX_EDITIONS.

### #enumvalue

    def enumvalue() -> ::Array<::Google::Protobuf::EnumValue>

**Returns**

- (::Array\<[::Google::Protobuf::EnumValue](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_usage-v1/latest/Google-Protobuf-EnumValue)\>) --- Enum value definitions.

### #enumvalue=

    def enumvalue=(value) -> ::Array<::Google::Protobuf::EnumValue>

**Parameter**

- **value** (::Array\<[::Google::Protobuf::EnumValue](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_usage-v1/latest/Google-Protobuf-EnumValue)\>) --- Enum value definitions.
**Returns**

- (::Array\<[::Google::Protobuf::EnumValue](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_usage-v1/latest/Google-Protobuf-EnumValue)\>) --- Enum value definitions.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Enum type name.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Enum type name.
**Returns**

- (::String) --- Enum type name.

### #options

    def options() -> ::Array<::Google::Protobuf::Option>

**Returns**

- (::Array\<[::Google::Protobuf::Option](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_usage-v1/latest/Google-Protobuf-Option)\>) --- Protocol buffer options.

### #options=

    def options=(value) -> ::Array<::Google::Protobuf::Option>

**Parameter**

- **value** (::Array\<[::Google::Protobuf::Option](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_usage-v1/latest/Google-Protobuf-Option)\>) --- Protocol buffer options.
**Returns**

- (::Array\<[::Google::Protobuf::Option](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_usage-v1/latest/Google-Protobuf-Option)\>) --- Protocol buffer options.

### #source_context

    def source_context() -> ::Google::Protobuf::SourceContext

**Returns**

- ([::Google::Protobuf::SourceContext](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_usage-v1/latest/Google-Protobuf-SourceContext)) --- The source context.

### #source_context=

    def source_context=(value) -> ::Google::Protobuf::SourceContext

**Parameter**

- **value** ([::Google::Protobuf::SourceContext](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_usage-v1/latest/Google-Protobuf-SourceContext)) --- The source context.
**Returns**

- ([::Google::Protobuf::SourceContext](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_usage-v1/latest/Google-Protobuf-SourceContext)) --- The source context.

### #syntax

    def syntax() -> ::Google::Protobuf::Syntax

**Returns**

- ([::Google::Protobuf::Syntax](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_usage-v1/latest/Google-Protobuf-Syntax)) --- The source syntax.

### #syntax=

    def syntax=(value) -> ::Google::Protobuf::Syntax

**Parameter**

- **value** ([::Google::Protobuf::Syntax](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_usage-v1/latest/Google-Protobuf-Syntax)) --- The source syntax.
**Returns**

- ([::Google::Protobuf::Syntax](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_usage-v1/latest/Google-Protobuf-Syntax)) --- The source syntax.