Class: Google::Protobuf::Enum

Inherits:
Object
  • Object
show all
Extended by:
MessageExts::ClassMethods
Includes:
MessageExts
Defined in:
proto_docs/google/protobuf/type.rb

Overview

Enum type definition.

Instance Attribute Summary collapse

Instance Attribute Details

#edition::String

Returns The source edition string, only valid when syntax is SYNTAX_EDITIONS.

Returns:

  • (::String)

    The source edition string, only valid when syntax is SYNTAX_EDITIONS.



181
182
183
184
# File 'proto_docs/google/protobuf/type.rb', line 181

class Enum
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#enumvalue::Array<::Google::Protobuf::EnumValue>

Returns Enum value definitions.

Returns:



181
182
183
184
# File 'proto_docs/google/protobuf/type.rb', line 181

class Enum
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#name::String

Returns Enum type name.

Returns:

  • (::String)

    Enum type name.



181
182
183
184
# File 'proto_docs/google/protobuf/type.rb', line 181

class Enum
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#options::Array<::Google::Protobuf::Option>

Returns Protocol buffer options.

Returns:



181
182
183
184
# File 'proto_docs/google/protobuf/type.rb', line 181

class Enum
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#source_context::Google::Protobuf::SourceContext

Returns The source context.

Returns:



181
182
183
184
# File 'proto_docs/google/protobuf/type.rb', line 181

class Enum
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#syntax::Google::Protobuf::Syntax

Returns The source syntax.

Returns:



181
182
183
184
# File 'proto_docs/google/protobuf/type.rb', line 181

class Enum
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end