# Service Management V1 API - Class Google::Protobuf::Type (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.2 0.11.0 0.10.2 0.9.0 0.8.0 0.7.0 0.6.1 0.5.0 0.4.1 0.3.10 Reference documentation and code samples for the Service Management V1 API class Google::Protobuf::Type.

A protocol buffer message type.

## 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.

### #fields

    def fields() -> ::Array<::Google::Protobuf::Field>

**Returns**

- (::Array\<[::Google::Protobuf::Field](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_management-v1/latest/Google-Protobuf-Field)\>) --- The list of fields.

### #fields=

    def fields=(value) -> ::Array<::Google::Protobuf::Field>

**Parameter**

- **value** (::Array\<[::Google::Protobuf::Field](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_management-v1/latest/Google-Protobuf-Field)\>) --- The list of fields.
**Returns**

- (::Array\<[::Google::Protobuf::Field](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_management-v1/latest/Google-Protobuf-Field)\>) --- The list of fields.

### #name

    def name() -> ::String

**Returns**

- (::String) --- The fully qualified message name.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- The fully qualified message name.
**Returns**

- (::String) --- The fully qualified message name.

### #oneofs

    def oneofs() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- The list of types appearing in `oneof` definitions in this type.

### #oneofs=

    def oneofs=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- The list of types appearing in `oneof` definitions in this type.
**Returns**

- (::Array\<::String\>) --- The list of types appearing in `oneof` definitions in this type.

### #options

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

**Returns**

- (::Array\<[::Google::Protobuf::Option](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_management-v1/latest/Google-Protobuf-Option)\>) --- The 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_management-v1/latest/Google-Protobuf-Option)\>) --- The protocol buffer options.
**Returns**

- (::Array\<[::Google::Protobuf::Option](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_management-v1/latest/Google-Protobuf-Option)\>) --- The 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_management-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_management-v1/latest/Google-Protobuf-SourceContext)) --- The source context.
**Returns**

- ([::Google::Protobuf::SourceContext](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_management-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_management-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_management-v1/latest/Google-Protobuf-Syntax)) --- The source syntax.
**Returns**

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