private ServiceDescriptor(Builder b) { this.name = b.name; validateMethodNames(name, b.methods); this.methods = Collections.unmodifiableList(new ArrayList<MethodDescriptor<?, ?>>(b.methods)); this.schemaDescriptor = b.schemaDescriptor; }
private ServiceDescriptor(Builder b) { this.name = b.name; validateMethodNames(name, b.methods); this.methods = Collections.unmodifiableList(new ArrayList<MethodDescriptor<?, ?>>(b.methods)); this.schemaDescriptor = b.schemaDescriptor; }