Class: Google::Protobuf::ServiceDescriptorProto

Inherits:
Object
  • Object
show all
Defined in:
lib/twirp/protoc_plugin/descriptor_ext/service_descriptor_proto_ext.rb

Instance Method Summary collapse

Instance Method Details

#client_class_nameObject



14
15
16
# File 'lib/twirp/protoc_plugin/descriptor_ext/service_descriptor_proto_ext.rb', line 14

def client_class_name
  class_name_without_service_suffix + "Client"
end

#service_class_nameObject



7
8
9
10
11
12
# File 'lib/twirp/protoc_plugin/descriptor_ext/service_descriptor_proto_ext.rb', line 7

def service_class_name
  # The generated service class name should end in "Service"; A well-named
  # service may already end with "Service" but we can't guarantee it. Use
  # class_name_without_service_suffix to #avoid "ServiceService"
  class_name_without_service_suffix + "Service"
end