# Network Management V1 API - Class Google::Api::TypeReference (v2.11.0)

2.11.0 (latest) 2.10.1 2.9.0 2.8.0 2.7.0 2.6.0 2.5.1 2.4.0 2.3.0 2.2.0 2.1.1 2.0.1 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.2 0.14.0 0.13.0 0.12.0 0.11.0 0.10.2 0.9.0 0.8.0 0.7.0 0.6.1 0.5.1 0.4.0 0.3.0 0.2.0 0.1.3 Reference documentation and code samples for the Network Management V1 API class Google::Api::TypeReference.

A reference to a message type, for use in [FieldInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_management-v1/latest/Google-Api-FieldInfo "Google::Api::FieldInfo (class)").

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #type_name

    def type_name() -> ::String

**Returns**

- (::String) --- The name of the type that the annotated, generic field may represent. If the type is in the same protobuf package, the value can be the simple message name e.g., `"MyMessage"`. Otherwise, the value must be the fully-qualified message name e.g., `"google.library.v1.Book"`.


  If the type(s) are unknown to the service (e.g. the field accepts generic
  user input), use the wildcard `"*"` to denote this behavior.

  See [AIP-202](https://google.aip.dev/202#type-references) for more details.

### #type_name=

    def type_name=(value) -> ::String

**Parameter**

- **value** (::String) --- The name of the type that the annotated, generic field may represent. If the type is in the same protobuf package, the value can be the simple message name e.g., `"MyMessage"`. Otherwise, the value must be the fully-qualified message name e.g., `"google.library.v1.Book"`.


  If the type(s) are unknown to the service (e.g. the field accepts generic
  user input), use the wildcard `"*"` to denote this behavior.

  See [AIP-202](https://google.aip.dev/202#type-references) for more details.
**Returns**

- (::String) --- The name of the type that the annotated, generic field may represent. If the type is in the same protobuf package, the value can be the simple message name e.g., `"MyMessage"`. Otherwise, the value must be the fully-qualified message name e.g., `"google.library.v1.Book"`.


  If the type(s) are unknown to the service (e.g. the field accepts generic
  user input), use the wildcard `"*"` to denote this behavior.

  See [AIP-202](https://google.aip.dev/202#type-references) for more details.