getOrCreateNetwork

fun <T : Network<T>> getOrCreateNetwork(type: NetworkType<T>, networkId: UUID = UUID.randomUUID()): ProtoNetwork<T>

Gets or creates a ProtoNetwork with the given type and networkId.

Throws

If a network with the same networkId exists, but is not of the given type.