class ProtobufDescriptor::ServiceDescriptor

Describes a service.

See ServiceDescriptorProto

Attributes

method[R]

Set of methods contained within this service, as a NamedCollection of {ProtobufDescriptor::ServiceDescriptor::MethodDescriptor MethodDescriptors}

methods[R]

Set of methods contained within this service, as a NamedCollection of {ProtobufDescriptor::ServiceDescriptor::MethodDescriptor MethodDescriptors}

parent[R]

The parent {ProtobufDescriptor::FileDescriptor}

service_descriptor_proto[R]

The ServiceDescriptorProto this ServiceDescriptor is wrapping

Public Class Methods

new(parent, service_descriptor_proto) click to toggle source
# File lib/protobuf_descriptor/service_descriptor.rb, line 25
def initialize(parent, service_descriptor_proto)
  @parent = parent
  @service_descriptor_proto = service_descriptor_proto
  @method = ProtobufDescriptor::NamedCollection.new(
      service_descriptor_proto.method.map { |m|
          ProtobufDescriptor::MethodDescriptor.new(self, m)
      })
end

Public Instance Methods

name() click to toggle source

The name of the service

# File lib/protobuf_descriptor/service_descriptor.rb, line 35
def name; service_descriptor_proto.name; end
options() click to toggle source

The ServiceOptions for this service.

# File lib/protobuf_descriptor/service_descriptor.rb, line 38
def options; service_descriptor_proto.options; end