code: func (p *printer) Service(service *descriptor.ServiceDescriptorProto, methodIndex int) {
  	p.MaybeLeadingComments(service)
  	defer p.open("service %s", service.GetName())()
  
  	if methodIndex < 0 {
  		for i := range service.Method {
  			p.Method(service.Method[i])
  		}
  	} else {
  		p.Method(service.Method[methodIndex])
  		if len(service.Method) > 1 {
  			p.Printf("// other methods were omitted.\n")
  		}
  	}
  }
docs: // Service prints a service definition.
  // If methodIndex != -1, only one method is printed.
  // If serviceIndex != -1, leading comments are printed if found.