class Gapic::Schema::Enum
Wrapper for a protobuf enum.
@!attribute [r] values
@ return [EnumValue] the EnumValues contained in this file.
Attributes
values[R]
Public Class Methods
new(descriptor, address, docs, values)
click to toggle source
Initializes a message object. @param descriptor [Google::Protobuf::DescriptorProto] the protobuf
representation of this service.
@param address [Enumerable<String>] The address of the proto. See
#address for more info.
@param docs [Google::Protobuf::SourceCodeInfo::Location] The docs
of the proto. See #docs for more info.
@param values [Enumerable<EnumValue>] The EnumValues of this enum.
Calls superclass method
Gapic::Schema::Proto::new
# File lib/gapic/schema/wrappers.rb, line 485 def initialize descriptor, address, docs, values super descriptor, address, docs @values = values || [] @values.each { |v| v.parent = self } end